Quote:
Originally Posted by mStyle
I am also looking for a way to display and work with a map; including display and update of current location (scroll map as current location moves) and adding markers/pin at specified locations.
|
Markers and info windows
Not all browsers support the Google API, and not all users run their browsers with Javascript enabled.
So use a <noscript> element to detect the situation where there is no Javascript, and use
GBrowserIsCompatible() to detect a non-compatible browser.
The createMarker() function not only sets up the marker and its event handler,
but it also causes local copies of the "marker" and "html" variables to be preserved for later use when the event gets triggered.
This is a special feature of the Javascript language called "function closure".
You can use almost any valid html in the info window, as long as the browser can work out the required height and width before rendering it.
For more details Visit my Blog
Learn Google Maps: Markers and info windows