Friday, October 7, 2011

[Google Maps API v2] Re: rollover map?

> ok, I've put this together atwww.meadowlarkco.com/testrollover.html

shows fine for me, too... polygons are all arrays of latitude/
longitude pairs - Mike's, mine, google's examples all work this way...
the only difference with Mike's is that he stores the data in an
external file whereas google and I have it hardcoded into the source.

what you have to do is define your shapes by finding the lat/lng pairs
for the outline of the polygon.

you might find that someone has defined these already, but being that
your regions are a composite of states you might not.

so failing that you're left with two choices - try to modify Mike's
data to lump various states into one shape or use the tool I sent you
the link for to click on the map and generate the shapes (and the
code) yourself.

once you've got the shapes displaying on the map, you can use the
example code I sent to get the rollover functionality happening.

and if you are going with the v3 approach, you might as well start
posting in the v3 group, here:
http://groups.google.com/group/google-maps-js-api-v3?hl=en

--
You received this message because you are subscribed to the Google Groups "Google Maps API V2" group.
To post to this group, send email to google-maps-api@googlegroups.com.
To unsubscribe from this group, send email to google-maps-api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate