|
||
Marker Data/Files
Markers are icons displayed at latitude-longitude locations in a map view.
Google-sourced icons are available via these links:
http://sites.google.com/site/gmapsdevelopment/
http://maps.google.com/mapfiles/kml/pal3/icon61.png
http://maps.google.com/mapfiles/kml/pal4/icon49.png
http://maps.google.com/mapfiles/kml/pal5/icon14.png
Marker File Structure
GMap Marker Files are text files in a CSV structure that contain a set locations that can be mapped/displayed as a set.
Some marker files are provided as examples. More generally, the idea is for GMap users to develop their own marker files.
The marker file mckinneyisd.csv is included with the GMaps setup. This file is comprised of records corresponding to schools in McKinney ISD, TX. To illustrate, the first three records of the file are shown below. Each marker record contains several elements/field values separated by ";" which is the CSV delimiter.
McKinney North HS;33.229161;-96.640579;rc.png;-1;-1;-1;0;-1;4;
Vega ES;33.223965;-96.647386;rc.png;-1;-1;-1;0;-1;4;
Cockrill MS;33.211863;-96.665515;rc.png;-1;-1;-1;0;-1;4;
Each marker record contains these items:
•MarkerTitle
•Latitude
•Longitude
•Icon
•Draggable
•Visible
•Clickable
•Flat
•InitialDropAnimation
•Zindex
•URL
MarkerTitle
Sets the title for the marker. This marker title will be displayed in the hint, when hovering over the marker and in the info window when the marker is clicked.
Latitude
Sets the latitude value of the marker on the map.
Longitude
Sets the longitude value of the marker on the map.
Icon
Allows the use of an image as marker. This can also be a picture when the url to that image is defined. An example can be found in the samples paragraph.
Draggable
When set to true, the marker can be moved around the map when dragged.
Visible
When set to true, the marker is shown on the map.
Clickable
When set to true, enables clicking on the marker. Clicking opens an InfoWindow at the marker containing the text set by MarkerTitle and URL.
Flat
When set to true, the marker is drawn as a flat image on the map. Otherwise the marker is drawn as a 3D image with a shadow.
InitialDropAnimation
When set to True, the marker is dropped with an animation effect on the map when displayed.
Zindex
Zoom Index
URL
URL displayed InfoWindow enabling display of additional information about this entity.