Google Maps - Family of Elements
A number of Logi Studio elements make up the family used to create Google Maps. Each element, its function, and its attributes are discussed below:
Connection.Google Maps - This special type of Connection element is required for communicating with the web service. Like all Connection elements, it resides in your _Settings definition. See Google Connections for detailed information about getting an API Key and configuring this element. | |
Google Map - The root element for implementing a Google Map in your report. Attributes include:
| |
Map Initial View - Allows you to optionally set the initial Zoom Level and geographic location the map will open to when the page is first displayed. Attributes include:
| |
Map Markers - Map Markers appear on the map to pinpoint a location, based on latitude and longitude positioning values. The graphic image for the marker can consist of an image, chart, or gauge; a default image is provided. Attributes include:
You can add Action elements below this element so that when a user clicks a marker, an information panel appears or another report is shown. | |
Map Marker Image - This optional element is a container for one Image, Gauge, or Chart element that provides the image for the Map Marker element. If this element is not included in the definition, the default marker image is used. The default image is: Data can be used here in interesting ways. For example, an image caption (image file name) and the image size can be data from the datalayer (their values can be @Data tokens), so locations can be differentiated visually based on their data. The marker image can also be an actual gauge or chart which would also immediately differentiate locations based on their data. | |
Map Marker Label - This optional element allows you to define a label that will appear under the marker. The label can be styled most easily by defining a CSS class. Its attributes are Caption and Class. | |
Map Marker Clustering - When present, this optional element will group markers into clusters according to their distance from a cluster's center. When a marker is added, the marker cluster will find a position in all the clusters or, if it fails to find one, will create a new cluster with the marker. The number of markers in a cluster will be displayed on the cluster marker. Clusters will break apart into individual markers when the mapped is zoomed-in sufficiently. This element has no attributes. | |
Map Polygons - Map Polygons are regions plotted onto a map and are optional. They can be semi-transparent and have colors that are based on data values. Polygons are plotted from sets of latitude and longitude points. These typically come from a DataLayer.Gpx File or DataLayer.Kml File element.
You can add Action elements below this element so that when a user clicks a polygon, an information panel appears or another report is shown. | |
Map Polylines - Map Polylines are lines plotted onto a map and are optional. They can be semi-transparent and have colors that are based on data values. Polylines are plotted from sets of latitude and longitude points. These typically come from a DataLayer.Gpx File or DataLayer.Kml File element.
You can add Action elements below this element so that when a user clicks a polygon, an information panel appears or another report is shown. | |
KML Overlay - The KML Overlay element allows display of one or more KML files as overlays on the Google Map and is optional. When an overlay is used, the boundary viewport (location and zoom) are set according to the last KML file in the list.
| |
DataLayer Element - Datalayer elements are used as usual for any data retrieval operation and can have Group Filters, etc. as child elements to shape the data. Any type of datalayer element can be used. The data for this purpose should include at least some combination of the following (see Google Maps - About Mapping Data):
| |
Geocode Columns - This optional element can be used if your data does not already include geographic coordinates. It accepts address data and, via the Google web service, attempts to retrieve latitude and longitude values ("geocoding") for each record in the datalayer. The values are placed into two columns, named "Longitude" and "Latitude", whichare added to the datalayer data. You must either secure a Google Maps API license to use this element or use an alternate geographic data source. Logi Info now includes the Connection.Nominatim element, for connections to a free, public, OpenStreetMap (OSM) Nominatim server for geographic data. For more information, see Datasource Connections. Follow this link for a list of the countries for which Google currently provides geocoding. Other web service brokers also provide geocoding in other countries. Element Attributes include:
| |
Reverse Geocode Columns - This optional element can beused to produce address data from geographic coordinates. Using the Google Maps web service, values returned are put into columns that are added to the datalayer, using these column names: You must secure a Google Maps API license key to use this element. Logi Info now includes the Connection.Nominatim element, for connections to a free, public, OpenStreetMap (OSM) Nominatim server for geographic data. For more information, see Datasource Connections. Attributes include:
| |
Action.Map Marker Info - This optional element adds click event processing to the Map Markers element. When a map marker is clicked, processing flow continues with this element's child elements. Attributes are: | |
Map Marker Info - This optional element represents the pop-up "balloon" that appears over the map when the parent Map Marker is clicked. A wide variety of elements, forming a virtual sub-report, can be placed as children below this element. These can include images, charts, links, data, and more. The data from the row associated with the clicked marker is available to the children of this element. (see the example image below).
|