Thursday, February 16, 2012

[Google Maps API v2] Re: Maps different between V2 and V3

are all the
> features of v2 now in v3? Can you think of anything that isn't in v3?

Hi Mike. I just changed over to v3. My map is pretty feature-heavy,
imo (http://www.xelawho.com/map/) but the whole process was a lot less
painful than I had been anticipating. What helped was that lots of the
real google maps guns changed over years ago, so the few workarounds
that were needed were easily found on the v3 forum.

Another thing that helped was that my v2 map was based on some of
Mike's tutorials (http://econym.org.uk/gmap/index.htm) which Larry has
kindly translated to v3-speak (http://www.geocodezip.com/).

Being that my original map got pieced together bit by bit, it was also
a good opportunity to reassess the code and get rid of alot of the
chaff that didn't really need to be there.

So, those were the good bits.

In terms of features, as far as I can tell, all the major ones are
supported. The ones that I missed were the dedicated GDownloadUrl
(which is basically just an AJAX request, so no biggie there) and
tabbed infowindows. My page uses jQuery anyway, so I ended up going
with jQuery tabs for that, but there are other non-jQuery tab
functions that you can google easily enough.

Apart from that, there was a bit of nomenclature - no more
Geverything, now its all google.maps.everything. Some of the native
polyline and polygon methods - such as getLength() and getArea() - are
now in the geometry library (under different names), which you have to
bootstrap as you load the API if you are going to use it.

How tough it's going to be really depends on which features you use
and how your map is currently set up - the best thing to do is have a
look in the v3 documentation to see if what you need is there and if
it isn't, search on the v3 forum to see if someone has come up with
something similar.

good luck!

--
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