Documentation for Google maps MarkerImage url string in constructor

The first argument to the google.maps.MarkerImage class constructor is a URL string with multiple GET variables.

enter image description here

This is an example of the url string used. The color variable is understandable, but what do other variables do?

+4
source share
2 answers

Yes, what Trott says. Basically the markerimage URL is a relative or absolute URL for an image, no more or less. Therefore, depending on where you get your images from, it may have a request for it (for example, if the marker should be dynamically generated by the server side of the script). Therefore, in this case, you simply use the charting API to get a dynamic image for your marker.

+1
source

The first argument is not necessarily a URL string with multiple GET parameters. This is just a URL string. The Google Maps API uses this URL to retrieve an image. If there are GET parameters, they are used (or ignored) by the server from which the image is extracted.

The example you are linking to contains the URL using the Google Charts API. Parameter definitions are in http://code.google.com/apis/chart/image/docs/chart_params.html .

+1
source

All Articles