function renderMap() {
    var $map = $('#map');

    // @see http://api.yandex.ru/maps/jsbox/geolocation_ip
    ymaps.ready(function () {
        // IP based geolocation
        var geolocation = ymaps.geolocation,
            coords = [geolocation.latitude, geolocation.longitude],
            myMap = new ymaps.Map($map[0], {
                center: coords,
                zoom: 10
            });

        myMap.geoObjects.add(
            new ymaps.Placemark(
                coords,
                {
                    // add balloon
                    balloonContentHeader: geolocation.country,
                    balloonContent: geolocation.city,
                    balloonContentFooter: geolocation.region
                }
            )
        );
    });
}
function renderMap() {
    var $map = $('#map');

    
    ymaps.ready(function () {
        
        var geolocation = ymaps.geolocation,
            coords = [geolocation.latitude, geolocation.longitude],
            myMap = new ymaps.Map($map[0], {
                center: coords,
                zoom: 10
            });

        myMap.geoObjects.add(
            new ymaps.Placemark(
                coords,
                {
                    
                    balloonContentHeader: geolocation.country,
                    balloonContent: geolocation.city,
                    balloonContentFooter: geolocation.region
                }
            )
        );
    });
}
function renderMap ( ) { var $map = $ ( '#map' ) ; // @see http://api.yandex.ru/maps/jsbox/geolocation_ip ymaps . ready ( function ( ) { // IP based geolocation var geolocation = ymaps . geolocation , coords = [ geolocation . latitude , geolocation . longitude ] , myMap = new ymaps . Map ( $map [ 0 ] , { center : coords , zoom : 10 } ) ; myMap . geoObjects . add ( new ymaps . Placemark ( coords , { // add balloon balloonContentHeader : geolocation . country , balloonContent : geolocation . city , balloonContentFooter : geolocation . region } ) ) ; } ) ; }
/* wrapped by builder 
LMD require.js() and shortcuts example
/ * wrapped by builder LMD require . js () and shortcuts example