|
@@ -2,8 +2,8 @@ $( document ).ready(function() {
|
|
|
|
|
|
// Defaults
|
|
|
defaults = {
|
|
|
- lat: ($('#id_latitude').val()) ? $('#id_latitude').val() : $('#map').attr("start_lat"),
|
|
|
- lng: ($('#id_longitude').val()) ? $('#id_longitude').val() : $('#map').attr("start_lon"),
|
|
|
+ lat: ($('#id_latitude').val()) ? $('#id_latitude').val() : parseFloat($('#map').attr("start_lat")),
|
|
|
+ lng: ($('#id_longitude').val()) ? $('#id_longitude').val() : parseFloat($('#map').attr("start_lon")),
|
|
|
zoom: $('#map').attr("start_zoom"),
|
|
|
}
|
|
|
|