I'm using Mapbox maps v10.7.0, how to add user location icon as like Google maps, want to show user's current location back, after user dragged the map/zoom to see other location
Mapbox didn't provide any build-in-buttons like google to get the current location. We need to do it manually with the help of camera positions
Related
I wanted to show Apple map on my Delphi multi-device application. I am using TMapView component to display my map. It manages to show the map on my application, but it cannot show the user's current location on the map with a marker on it. How can I solve this? The tutorial I am referencing is from here.
What you could use is the option UserLocation in the TMapView.LayerOptions property as on the image below:
I'm using GoogleMaps in iOS to show the merchants location and i successfully placing all markers based on merchants location.
Now my requirement is, i want to show markers count while tapping to zoom out or zoom in as shown below.
Please guide me...
My code was in Objective-C
Looks like you want to cluster the markers. Please check out this link: https://developers.google.com/maps/documentation/ios-sdk/utility/marker-clustering
I found this in Google Maps API:
By default, no location data is shown on the map. You may enable the
blue "My Location" dot and compass direction by setting
myLocationEnabled on GMSMapView.
However, as it's stated, when I set myLocationEnabled to YES, both user location and compass direction are visible. Is there a way to keep user location but prevent compass arrow from appearing on the map? I don't use it in my project and I would like to save some battery by not using things I don't really need in my app.
Any ideas?
I'm looking to allow my users to drag & drop annotations on my maps, initiated by a long-press on the annotation pin. I can't find anything in the documentation that would handle this.
Can someone point me in the right direction?
Edit: I realize I may not have been as clear as I thought I was.
Currently, my users are able to add new annotations to the map by long-pressing at a location on the map. I'd like for them to be able to move those annotations to a different location.
For adding a new PIN, the SKMapViewDelegate protocol is used to receive map-related update messages.
Check: http://developer.skobbler.com/docs/ios/2.4.0/Protocols/SKMapViewDelegate.html
I am working on an iOS app whose functionality is to show google map with user current location. I successfully shown user location on map, now I need to draw a route as user moves from current location to another and then to next. Finally at the end on a button click I have to connect very fist location to last location. At the end I need to calculate the drown area in acres.
So I summarize my questions as follows :
How to draw user movement on map?
How to direct connect first and last location on a button click?
How to calculate user moved area?
If I want to draw route from last point to current point on manual click, how to do that?
Please provide any suitable code as well. I would appreciate your efforts.