Most of these examples have been created by converting my
version 1 example pages.
Examples which have not yet been converted,
or those that I have been unable to convert successfully
are displayed with strike styling.
Example4c Marker click Handling.
This example adds methods to the marker object to open and close the infowindow
and add tool tips to the markers.
(Older versions:
Example4b,
Example4a,
Example4).
Example5 Add controls Click to place markers along a route.
Then press the "Show XML" to show the markers in a div.
Cut and paste to an XML file on your local disk.
You can upload the file to
Nick Fessel's site
display it.
Example6b Load markers from XML
Enhance the previous example by adding an XML loader, use small icons, and edit marker titles.
Put the relative URL of a marker file from my server in the input box beside the "Load XML" button.
Examples include data.xml, data1.xml, data2.xml, m2c.xml, c2m.xml.
(Javascript permissions do not allow loading XML from arbitrary locations
without additional code and/or script signing.)
Then press "recenter" to center the map on the data.
For the Alberta Tour legs, you will need to zoom out to level 10 to see the entire legs.
Press "Route" to show the route line. Press "Hide" to remove route and markers,
and the "Markers" or "Route" to redisplay one or both overlays.
Press "Paths" to show the paths.
Press "Nodes" to show the path nodes.
(Older versions:
Example6a,
Example6.
Example7 large map with with minimaps in the infowindows
Polyline Bug Map default,
forced no SVG,
forced SVG
Illustrates misalignment of long polyline end points in Firefox.
Compare the map, side by side with the same page in Internet Explorer.
The red line connects two distance end points.
The blue line is drawn from the center point marker outward to the end points.
The green line is drawn inward from the end points to the center marker.
The red and blue lines are separated at the center point due to
spherical geometry and projection distortion.
The blue and green lines should overlay exactly.
This page won't make much sense unless you have an SVG enabled browser.