klikh / bgmaps

3 stars 0 forks source link

Migration to GMap API v3 or Yandex.Maps API #1

Open 4ndrew opened 12 years ago

4ndrew commented 12 years ago

GMap API v2 deprecated, Yandex Maps APIs are better

klikh commented 12 years ago

+1

klikh commented 12 years ago

I suggest to move from GMap API v2 not to GMap v3, but to Yandex API. In this case we'll have an easy way to use compound map layers: http://habrahabr.ru/post/142930/

4ndrew commented 12 years ago

Hm, good point.

klikh commented 12 years ago

We have several non-standard objects: markers with checkpoint numbers and arrowed polylines. Need to find the easiest way to port them into new API.

klikh commented 12 years ago

Placemarks (Markers) is easy: http://api.yandex.ru/maps/doc/jsapi/2.x/examples/markersiconcontent.html

klikh commented 12 years ago

http://habrahabr.ru/post/142930/#comment_4788561 Mithgol says that loading google maps not via google maps api violates their license. Need to check this. However, google maps in Saint-Petersburg are not very valuable.

4ndrew commented 12 years ago

Marker is a common element (all maps have APIs). I expect that porting polyline with arrows will be not so easy.

Placemarks (Markers) is easy: http://api.yandex.ru/maps/doc/jsapi/2.x/examples/markersiconcontent.html

klikh commented 12 years ago

We've got a special class LabeledMarker to display Marker with a checkpoint number inside. I just wanted to point out the fact that in the new YMaps API this can be done much easier, and the class is to be removed.

As per the arrowed polyline, here is an official demo for YMaps API v.1: http://api.yandex.ru/maps/doc/jsapi/1.x/articles/tasks/overlays.xml#how-to-create-polyline-with-arrows Probably will need to adjust this for v.2, but it might be helpful anyway.

4ndrew commented 12 years ago

Wow, good! Seems now we know how to solve all problems =)

klikh commented 12 years ago

And let's add an OSM layer within this fix.