When I create a polyline and add it to the map, it will disappear if the map is moved. If I add a polygon or annotation, it remains on the map if the map is moved:
const polyline = new mapkit.PolylineOverlay(path, {
style: new mapkit.Style({
lineWidth: 5,
strokeColor: '#007AFF',
lineJoin: 'round',
lineCap: 'round'
})
})
map.addOverlay(polyline)
// disappears if the map moves or zoom changes
const polygon = new mapkit.PolygonOverlay(shapes, {
style: new mapkit.Style({
fillRule: 'evenodd'
}),
enabled: false
})
map.addOverlay(polygon)
// remains on map when map moves or zoom changes
Why is it inconsistent? How can I make the polyline stay until I explicitly remove it?
Post
Replies
Boosts
Views
Activity
Right now my map is littered with road annotations (interstate and highway markers) that are quite distracting and not at all relevant to my application. Is there a way to turn them off?
I already tried mapkit.pointOfInterestFilter but the categories do not include the road annotations. I can't find anything else. Does anyone know?
When Xcode 13 was released, it required macOS 11.3 Big Sur or greater. I am currently running mac OS 11.6 Big Sur and when I try to run Xcode 13 I see this:
My question to Apple is, why would you initially require a version of mac OS and then remove support for it in the same major version of xcode? I have an older MBP and cannot install a newer version of mac OS than Big Sur. This feels like planned obsolescence designed solely to drive demand. It gives the appearance of Apple being greedy and sours the developer experience.
I would like to know if there is any substantial reason for this or if it's purely based on driving sales of macbooks.