Open 4ndrew opened 12 years ago
+1
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/
Hm, good point.
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.
Placemarks (Markers) is easy: http://api.yandex.ru/maps/doc/jsapi/2.x/examples/markersiconcontent.html
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.
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
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.
Wow, good! Seems now we know how to solve all problems =)
And let's add an OSM layer within this fix.
GMap API v2 deprecated, Yandex Maps APIs are better