diff --git a/geoposition/static/geoposition/geoposition.js b/geoposition/static/geoposition/geoposition.js index eab8895..ee8b596 100644 --- a/geoposition/static/geoposition/geoposition.js +++ b/geoposition/static/geoposition/geoposition.js @@ -36,8 +36,8 @@ if (jQuery != undefined) { $searchInput = $('', {'type': 'search', 'placeholder': 'Start typing an address …'}), $latitudeField = $container.find('input.geoposition:eq(0)'), $longitudeField = $container.find('input.geoposition:eq(1)'), - latitude = parseFloat($latitudeField.val()) || null, - longitude = parseFloat($longitudeField.val()) || null, + latitude = parseFloat($latitudeField.val()) || 0, + longitude = parseFloat($longitudeField.val()) || 0, map, mapLatLng, mapOptions,