GoogleMapsPolygon
Content Type: Widget
Categories: User Interface
Overview
Add Polygon and Polyline overlays to a Google Map.
Supports:
- plotting of Polygons and Polylines;
- styling options;
- on click microflow;
- flipping of coordinates;
- drawing / editing since v2.0.0
Not supported yet:
- holes in polygon;
Documentation
Demo urlhttps://googlemapspolygona-sandbox.mxapps.io/index.html?profile=Responsive
There is a newer version of the widget available, based on the React framework. It is best to use the newer version as this version, based on Dojo, will not be upgraded anymore.
Description
Add Polygon and Polyline overlays to a Google Map.
Features and limitations
- plotting of Polygons and Polylines;
- styling options;
- on click microflow;
- flipping of coordinates;
Configuration
For working a example, see: https://googlemapspolygon101.mxapps.io/
Add the Google Maps Polygon widget to your page, see screenshots for Settings in Modeler.
At least configure:
- Objects: the Mendix object containing the Polygon/Polyline data
- CoordinatesArray: required format : ((lat1,long1),(lat2,long2),(lat3,long3),(..))
- Since version 2.4.0 also square brackets can be used.
- Object Color: any simple color (red, green, blue) or hexadecimal (with the #) will suffice;
- Type Attribute: Enum containing values Polygon and Polyline.
Releases
Version: 2.4.0
Framework Version: 8.15.2
Release Notes: Added extra support for coordinate arrays with square brackets in stead of normal brackets. These typically are seen in geoJSON formats.
Version: 2.3.0
Framework Version: 8.2.2
Release Notes: v2.3: Added four new settings:
- opacityAttr: manage (polygon) opacity per object
- lineStrokeWeightAttr: manage polyline stroke weight (thickness)
- lineType: support for two extra linetypes: Dotted and Dashed
- overruleFitBoundsZoom: make the user able to overrule the zoom for a single item which is normally determined by Google. When set to 'No' Google determines the right zoom level to fit the shape in, if set to 'Yes' the zoom level you set at 'Single item zoom level' is used.
Version: 2.2.0
Framework Version: 8.2.2
Release Notes: Only updated the package.xml version to being able to publish the widget in Mendix 8
Version: 2.1.0
Framework Version: 7.13.1
Release Notes: Fix for scenario when a context object is not the polygon object itself but some mapping / clustered object and a list of subscribed polygons associated to the contextobject has changed. Redraw after commit of contextobject was not working properly.
Version: 2.0.0
Framework Version: 7.13.1
Release Notes: Added support to draw and edit polygons and polylines when in single object edit mode, so a DataView of the Polygon / Polyline Mendix object.