S
S
Sergey Zhuzhgov2013-03-10 13:53:03
Yandex
Sergey Zhuzhgov, 2013-03-10 13:53:03

Displaying an object on a map?

There is such a code for displaying a Yandex map on the site, it displays the map by coordinates ...

<div id="bs-map" class="bs-map"></div>    

<script type="text/javascript">
  function fid_13485848986165892726(ymaps) {
    var map = new ymaps.Map("bs-map", {
      center: [54.601777, 57.673434],
      zoom: 10,
      type: "yandex#map"
    });
    map.controls.add("zoomControl")
    .add("mapTools")
    .add(new ymaps.control.TypeSelector(["yandex#map", "yandex#satellite", "yandex#hybrid", "yandex#publicMap"]));};
</script>
<script type="text/javascript" src="http://api-maps.yandex.ru/2.0/?coordorder=longlat&load=package.full&wizard=constructor〈=ru-RU&onload=fid_13485848986165892726"></script>

How to make it so that to show the object not by coordinates, but by the parameter from the link n.maps.yandex.ru/?oid=33713049 , i.e. choose this parameter 33713049 ???

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question