Quantcast
Channel: Клуб API Карт
Viewing all articles
Browse latest Browse all 7380

не работает geocode. не могу понять почему.

$
0
0

всем добрый день.

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">      <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>Карта</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <script src="http://api-maps.yandex.ru/2.0-stable/?load=package.full&lang=ru-RU&mode=debug
type="text/javascript"></script>
    <script type="text/javascript">
ymaps.ready(function () {
    var mymap,myGeoObject,coords,firstGeoObject,myGeocoder;

    myGeocoder = ymaps.geocode("Санкт-Петербург");
    myGeocoder.then(
    function (res) {
     mymap = new ymaps.Map("YMapsID", {
        center: [59.94920514082103,30.328096740839832],
        zoom: 10}); 
        mymap.geoObjects.add(res.geoObjects);
    },
    function (err) {}
);
})

    </script>
    </head>
    <body>
    <label> </label><input id="latlongmet" class="input-medium" name="icon_text" style="width:300px;height:20px"/>
   <div id="YMapsID" style="width:1000px;height:600px"></div>
    </form>
    </body>
</html>

 

.

Viewing all articles
Browse latest Browse all 7380

Trending Articles