I did not notice the header which contains the question :-) Alexander, You can use the following to set your own position: var marker = new GMarker(new GLatLng(59.913103,30.32817), markerOptions);
In Russian: Александр, вы можете задать свою позицию заменив map.getCenter() на new GLatLng(59.913103,30.32817): var marker = new GMarker(new GLatLng(59.913103,30.32817), markerOptions); И еще, раньше тут было принято писать по-английски (может что-то поменялось, так как проскакивают сообщения и на других языках). Во всяком случае, если напишите хоть как-то по-английски, то намного больше людей это прочитают и помогут. Boris. 7 июля 2009 г. 16:55 пользователь Andrew Leach < [email protected]> написал: > > On Jul 7, 12:51 pm, Александр <[email protected]> wrote: > > > > Не понимаю как тут грамотно задать координаты: > > > > var marker = new GMarker(map.getCenter(), markerOptions); > > It sets the marker position as the centre of the map. The map is > centred with > map.setCenter(new GLatLng(59.913103,30.32817), 10); so the marker uses > that position. > > Andrew > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Maps-API?hl=en -~----------~----~----~----~------~----~------~--~---
