Re: how to make a marker a link
I have a system of heirarchical regions in my mod that does exactly
this.
It's open source, so feel free to rip code and ideas :)
Points can be linked to with their location ID, eg a link to the
"America" parent point:
http://www.evilc.com/phpbb/gmaps.php?action=seek&seekmode=location&location_id=57
(Please excuse the large text in infowindows when you get linked to a
location, it's a bug I need to fix...)
Notice the "Zoom through" link for each region. Clicking that will zoom
through the america point and show the states.
I only have 4 states set up on the demo site at the moment, but users
can add more regions and loacations.
When you "Zoom through" a region icon it takes you to the coords of the
icon and adjusts the zoom accordingly.
Also notice the "Connecticut" location. It's a line (because CT is so
small at that zoom) with the icon in the sea. If the "bunch point" (A
location that represents a region) is a line when you "Zoom Through" it
will take you to the end of the line, not the icon's location.
Also see:
http://www.evilc.com/phpbb/gmaps.php?action=seek&seekmode=location&location_id=17
Hover your mouse over the London icon.
Notice the mouseover is a red polygon that shows the area covered by
this region icon.
Hope some of these ideas help you.
0 Comments:
Yorum Gönder
<< Home