Map Icons
Pages 12
-
- https://maps.google.com/mapfiles/ms/icons/
- https://maps.google.com/mapfiles/ms/micons/
- Google Earth/Maps Icons https://maps.google.com/mapfiles/kml/shapes/
- Google Charts Dynamic Icons https://chart.googleapis.com/chart
- Icons Archive https://icons.iconarchive.com/icons/icons-land/vista-map-markers/
- Resources
Clone this wiki locally
The default marker is drawn with the default red pin with a dot, i.e.:
https://mt.googleapis.com/vt/icon/name=icons/spotlight/spotlight-poi.png
This can be changed for each pin by supplying an absolute URL to an icon. The URL may be to an image uploaded in your Static Application Files, on your web server, or from elsewhere. To reduce the volume of data loaded via the query, you may set a single "base path" to be used for all the icons, so that the query only needs to specify the filename.
For more customisation, you may instead supply a JavaScript function that modifies each marker in almost any way you like, using whatever logic you require. For example, you might change the colour, icon image, or opacity of each marker depending on what data it represents. For more details on the structure of the marker icon object, refer to the Google Maps API - Marker Icon.
There is a Google API that generates icons with a number of options that can be adjusted. The url looks like this and you can adjust the parameters to adjust the look and content of the icon:
https://mt.googleapis.com/vt/icon/name=icons/spotlight/spotlight-waypoint-a.png
&text=Z
&psize=11
&font=fonts/Roboto-Regular.ttf
&color=ff333333
&ax=44
&ay=48
&scale=1
https://mt.googleapis.com/vt/icon/name=icons/spotlight/spotlight-waypoint-b.png
https://mt.googleapis.com/vt/icon/name=icons/spotlight/spotlight-waypoint-blue.png
https://mt.googleapis.com/vt/icon/name=icons/spotlight/spotlight-waypoint-a.png&ax=44&ay=48&scale=0.5
https://mt.googleapis.com/vt/icon/name=icons/spotlight/spotlight-waypoint-a.png&ax=44&ay=48&scale=1.5
Note that the plugin gives an easier way of supplying a single letter or number to show in the pin, via the label
column in your query.
The following are some icons useful for maps. Their availability is not guaranteed so if you are relying on a particular icon you should upload it to your instance instead of referring to these sources directly.
Examine the source of this page to see the URLs used for these examples. Make sure to use the URL listed in the
data-canonical-src
attribute, not the img src (because that's just a cache built by github).
https://maps.google.com/mapfiles/ms/icons/
https://maps.google.com/mapfiles/ms/micons/
Google Earth/Maps Icons https://maps.google.com/mapfiles/kml/shapes/
Google Charts Dynamic Icons https://chart.googleapis.com/chart
Icons Archive https://icons.iconarchive.com/icons/icons-land/vista-map-markers/