문제

I have no knowledge of jquery and I would like to change a Yandex map position. The javascript function is as it follows:

    function fid_0000(ymaps) 
    {
         var map = new ymaps.Map("ymaps-map-id_0000", {center: [11.111111,22.222222], zoom: 17, type: "yandex#map"});
    };

and HTML is:

<div id="ymaps-map-id_0000" style="width: 450px; height: 450px;"></div>

How do I change its coordinates, possibly with a select tag, without reloading the page?

TIA

도움이 되었습니까?

해결책

I suggest you look at the Yandex API examples

Particularly, look at the code example of Changing the Map Center would be most useful.

다른 팁

You can use map.setCenter([lat, lng]);

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top