|
@@ -2,8 +2,8 @@ $( document ).ready(function() {
|
|
|
|
|
|
// Defaults
|
|
|
defaults = {
|
|
|
- lat: ($('#latitude').val()) ? $('#latitude').val() : 47.218371,
|
|
|
- lng: ($('#longitude').val()) ? $('#longitude').val() : -1.553621,
|
|
|
+ lat: ($('#id_latitude').val()) ? $('#id_latitude').val() : 47.218371,
|
|
|
+ lng: ($('#id_longitude').val()) ? $('#id_longitude').val() : -1.553621,
|
|
|
zoom: 13,
|
|
|
}
|
|
|
|
|
@@ -35,8 +35,8 @@ $( document ).ready(function() {
|
|
|
|
|
|
function mapUpdateCoords() {
|
|
|
var m = marker.getLatLng();
|
|
|
- $('#latitude').val(m.lat);
|
|
|
- $('#longitude').val(m.lng);
|
|
|
+ $('#id_latitude').val(m.lat);
|
|
|
+ $('#id_longitude').val(m.lng);
|
|
|
}
|
|
|
|
|
|
// Display tiny circles on existing public points
|