diff --git a/resources/views/latlong.blade.php b/resources/views/latlong.blade.php index 59c56ec..834dea3 100644 --- a/resources/views/latlong.blade.php +++ b/resources/views/latlong.blade.php @@ -8,10 +8,10 @@
- +
- +
@if($provider != 'yandex') diff --git a/src/Map/Google.php b/src/Map/Google.php index 0b8771a..d0fa4d7 100644 --- a/src/Map/Google.php +++ b/src/Map/Google.php @@ -7,7 +7,7 @@ class Google extends AbstractMap /** * @var string */ - protected $api = '//maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&key=%s&libraries=places'; + protected $api = '//maps.googleapis.com/maps/api/js?v=3.exp&key=%s&libraries=places'; /** * {@inheritdoc} @@ -42,6 +42,7 @@ function init(name) { lng: position.coords.longitude }; map.setCenter(pos); + marker.setPosition(pos); lat.val(position.coords.latitude); lng.val(position.coords.longitude); @@ -96,4 +97,4 @@ function init(name) { })(); EOT; } -} \ No newline at end of file +}