Location takes aside after zoom out completely and then zoom in - leaflet

when i zoom out completely on the leaflet map and then zoom in the pin location was not comes in center and some other location comes in center.
I am trying when ever i zoomin/zoomout from where i left the location it comes there after zoom in not another location comes

Related

Keep Mapbox Current Location Fixed on Pinch to Zoom in Android

Zooming with Pinch in Mapbox Keeps Changing the center , how to achieve the same result as zooming with double-tap + scrolling Finger with Pinch too ?
the answer is to detect Zooming event and then Disable Scrolling till Zomming Ends , this works well in GoogleMaps but not properly in MapBox as the Scrolling wont get disabled (even when set to false programmatically) while zooming .
Another Way is to Add a Marker at the center of the Map the moment Zooming Starts and Removing it when it ends and show your own Marker (Probably an Image centered over the map )

Permit circle to be resized by not directly moved

I'm working on a project where we need to create Search Rings. These are defined as a lat-long/radius, overlaid on a map of the Continental USA.
The desired implementation is a marker, useful for close positioning of the lat-long (or even updating, via popup + jQuery) with an "attached" circle.
Desired behavior:
when the marker is moved, the circle is dragged with it, and repositions itself with its center coincident with the marker's position (this is completed)
the circle's edge? may be gripped and resized, thus changing its radius.
Current issue: when a L.Circle is marked editable, it's both resizeable and directly movable. This is apparent by the gripper boxes on the outside of the circle together with the box at the center of the circle. How do I disable/hide that center gripper?
As always, thanks in advance.

Google Map SDK Swift, Zooming in and out like Uber's Map

I am trying to implement the Google Map SDK, and so far I have implemented a marker. I made the marker in a way that it follows as it is located in the center when I move the camera position.
The problem is that I can't zoom in and out while the marker's location is not changing. I would like to make the zooming experience like Uber in which the location does not change.. Thank you for your help.
You can use this line allowScrollGesturesDuringRotateOrZoom to your GMSMapview. It controls whether rotate and zoom gestures can be performed off-center and scrolled around. The default value of this is YES.
mapView.settings.allowScrollGesturesDuringRotateOrZoom = false // NO for obj-c and false for swift
So by setting it by NO/false, you can now perform zooming while the marker location is not moving. For more information, check this thread.

How to zoom in on map tiles instead of drawing next zoom level

I've been using this code to display OpenCycleMap tiles on my app's mapview, but if I zoom in too far the map tiles will disappear. Since OCM tiles may not exist at close zoom levels (say, 15 or 16 for a certain area), they just don't appear when drawing the maps for a certain zoom level, and the mapview only shows the Google Street map that is underneath the OCM overlay.
Is there a way to edit the code to make the mapview display whichever map tiles are available for an area, but resized for the region that the mapview shows?

How show circle around annotation how in google maps

I use MKMapView.
How to show circle around annotation how in google maps ( when show current user location).
This circle moving with animation to new location and radius of circle dependent from current zoom level.
The annotations themselves don't have a property for showing a circle but you can use a circle overlay with the same center as the coordinate of the annotation to achieve this effect, just like the image below (from one of my projects).
Note: the property for the center of the circle is called "coordinate", just as for the annotations.
The second part is animating the movement. You achieve this by animating the coordinate property of the circle overlay at the same time as the coordinate property of the annotation. This way they will both move together to the new location.
This question can help you with how to move and animate the position of an annotation. If you need the radius of the circle to change at the same time (e.g. when animating the coordinate) you just use Core Animation to animate it together with the coordinate.
Concerning changing the size depending on the zoom level, Map Kit will always handle this for you automatically with Overlays and Annotations so that they always cover the same area of the map, even as the map resizes. (The second image is the same annotations and overlays as below, just zoomed in on the ones to the left (closer to Stockholm in the first image)).