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