Post not yet marked as solved
Hello,
I'm trying to figure out how to detect when user stops scrolling (panning) the map.
The problem:
I have a MapAnnotation that I want to always keep in the centre, even is user is panning/scrolling the map. When map is open first time, the original annotation location is user's current location. I request the name of the location to display it on top of the annotation.
when user moves the map around, I want to track when he stop this action and select a location in the centre of map's new region and display the a location's name on top of the annotation
I can't use .onChange() because region centre changes constantly as user moves the map, because it causes to many requests for location's name
DragGesture .onEnded() is never called, so I have no idea when customer stops moving the map
So my question is - how to detect in this case when customer stopped moving the map?
Have anyone faced the same problem? Any ideas how to solve it?
Post not yet marked as solved
Hi,
We are building an app that aims to organize people's lives. This means we help people discover and find things like places, and help users store the data of the things they save to their library.
My question is: Are we allowed to permanently store a returned place's name, description, ID, coordinates, potential images, etc from the responses of places from the Apple Maps Server and Mapkit API? And if so, is there a guarantee that these terms won't change? The user would have to be allowed to download all the data he's saved.
One of the reasons we don't use Google Maps API is because they only let us store a place's unique Google Place ID, without its corresponding photos, coordinates, description or even name. This means a user can't search the information on their library without making immense API calls that would be prohibitively expensive, and also can't use the app offline.
Thanks for any insight.
Post not yet marked as solved
Hi
do you have any idea if there was something to do to costume the maps in grey at different color
not the standard black
and white
tnks
Post not yet marked as solved
How to become authorized Apple maps guides provider?
Our application have audio tours in 40 countries so we want to add some of them in Apple Maps and create our branded page there.
Is there any API to export guides from application to Apple maps?
Post not yet marked as solved
I have two questions below:
Are there any api's through which i can claim or add/update business listings via my web or app , if so please let me know the link of documentation with pricing link (if any) ?
Also if i have to add multiple listings on map , is there any bulk sheet upload method on your site , if so please let me know about the same.
Post not yet marked as solved
Hi I need Help I do control Apple Map
I want overlay image on map
I use MKOverlayRenderer and this function override func draw(_ mapRect: MKMapRect, zoomScale: MKZoomScale, in context: CGContext)
and then success overlay
but map zoom level 2.0 over than image broken
if not use CGContext.rotate then image are not broken but use rotate then image are broken
class IndoorInfoOverlay: NSObject, MKOverlay {
let coordinate: CLLocationCoordinate2D
let boundingMapRect: MKMapRect
init(indoorInfo: IndoorInfo) {
boundingMapRect = indoorInfo.overlayBoundingMapRect
coordinate = indoorInfo.midCoordinate
}
}
class IndoorInfoOverlayView: MKOverlayRenderer {
var overlayImage: UIImage
var parent: IndoorMapView
init(overlay: MKOverlay, overlayImage: UIImage,_ parent: IndoorMapView) {
self.overlayImage = overlayImage
self.parent = parent
super.init(overlay: overlay)
}
override func draw(_ mapRect: MKMapRect, zoomScale: MKZoomScale, in context: CGContext) {
guard let imageReference = overlayImage.cgImage else { return }
let bearing = degreesToRadians(360 - (Double(self.parent.floorData!.FLOOR_BEARING) ?? 0))
let rect = self.rect(for: overlay.boundingMapRect)
context.scaleBy(x: 1.0, y: -1.0)
context.translateBy(x: 0.0, y: -rect.size.height)
if self.parent.floorData != nil {
context.rotate(by: bearing)
}
context.draw(imageReference, in: rect, byTiling: false)
}
private func degreesToRadians(_ x:Double) -> Double {
return (Double.pi * x / 180.0)
}
}````
Post not yet marked as solved
So my question is regarding mapkitJS and if there is any way that i can use it in my backend just for it's directions API.
The URL it makes requests on is https://api.apple-mapkit.com/v1/directions
Generating a signed JWT token for authorisation is fine, but the part where that token needs to be used to initialise mapkitJS is where i am having difficulty
Can you please let me know if there is a way i can make requests on that url above and how to go on about the initialization using that bearer token?
Post not yet marked as solved
iPhone 11 battery drain very fast plz bug fix in battery issue
Post not yet marked as solved
Does Maps Connect support an API (Send and Receive data) for adding, update content like location, Description, videos and images ?
Post not yet marked as solved
is there a way to update data on Maps Connect via API?