angularjs - get the location of the stationary marker when map changes -
i'm developing mobile app in ionic.my requirement had stationary image on map, need location under image.. below code found dragging marker , getting location.
var mylocation = new google.maps.marker({ position: new google.maps.latlng(pos.coords.latitude, pos.coords.longitude), map: map, title: "my location", draggable:true }); google.maps.event.addlistener(loc, 'dragend', function(evt){ console.log('current latitude:',evt.latlng.lat(),'current longitude:',evt.latlng.lng()); });
but need stationary image , location when map dragged thing in below image. there rounded circle, when drag map , can see location under image..
anyone please guide me achieve that.
thankyou
Comments
Post a Comment