How about google map api v2 and v3 which is better

I did a demo using v2 and now I want to use v3.

But I found that v3 has not as many methods as v2, for example:

  • map.enableGoogleBar ();

  • map.enableScrollWheelZoom ();

  • polyline.enableDrawing ()

So, v3 is powerful enough to replace v2 ???

+4
source share
2 answers

In addition to Cannonade's answer, note that the scroll wheel function can be turned on and off in v3, and polygon editing is possible:

I did not find links to the Google bar.

+5
source

NB Three years later, there is obviously no reason not to use the v3 API. Google Maps v2 is now deprecated.

Google Maps v3 is the next iteration of the API, and my initial reaction would be to suggest using it. However, v3 is still a product of Google Labs and not as mature as the API v2.

The initial focus for v3 was optimized performance and user experience on mobile platforms, and as a result, some of the v2 functions did not fall into the v3 library (this gap is getting smaller). However, the performance improvements that were made in v3 are equally applicable on the desktop, so you are faced with a compromise of performance / features.

If there is a specific function that is located in v2, not v3, and you are not developing for a mobile device (and it looks like it is not), you may want to use v2 and switch to v3 after you have the function available.

+7
source

Source: https://habr.com/ru/post/1305278/


All Articles