lib/activeadmin/views/templates/yandex.html in activeadmin_latlng-1.0.0 vs lib/activeadmin/views/templates/yandex.html in activeadmin_latlng-1.1.0
- old
+ new
@@ -9,12 +9,12 @@
map: null,
placemark: null,
getCoordinates: function() {
return [
- parseFloat($("#" + yandexMapObject.idLat).val()) || 55.7522200,
- parseFloat($("#" + yandexMapObject.idLng).val()) || 37.6155600,
+ parseFloat($("#" + yandexMapObject.idLat).val()) || %f,
+ parseFloat($("#" + yandexMapObject.idLng).val()) || %f,
];
},
saveCoordinates: function() {
$("#" + yandexMapObject.idLat).val( yandexMapObject.coords[0].toFixed(10) );
@@ -25,10 +25,10 @@
yandexMapObject.coords = yandexMapObject.getCoordinates();
yandexMapObject.saveCoordinates();
yandexMapObject.map = new ymaps.Map("yandex_map", {
center: yandexMapObject.coords,
- zoom: 12
+ zoom: %d
});
yandexMapObject.placemark = new ymaps.Placemark( yandexMapObject.coords, {}, { preset: "twirl#redIcon", draggable: true } );
yandexMapObject.map.geoObjects.add(yandexMapObject.placemark);
\ No newline at end of file