the beauty of mapping


Kode Iklan Disini

Thursday, January 21, 2021

The Apple Tree Maps Api


Apple seem to hold upwardly on the verge of releasing a JavaScript API for Apple Maps.

The website for Apple's WWDC (developer conference) includes an Apple Map showing the place of the conference.  The map has been added to the page using what appears to hold upwardly a novel Apple Mapkit API -

https://cdn.apple-mapkit.com/mk/3.0.0/mapkit.js

If yous expect at the JavasScript code which uses the Apple Mapkit API to add together the map to the WWDC conference (https://developer.apple.com/wwdc/attending/scripts/maps.js) yous tin run into that it includes an API key. This suggests that Apple does bring plans to opened upwardly up the Apple Mapkit API to developers.

Tim Broddin has speedily position together a proof of concept demo map using the officially unreleased Apple Mapkit API. Tim's map has but used the same developer telephone substitution equally used inwards the WWDC map.

Tim's map doesn't include a lot of features but if yous bring a expect at the origin code yous should hold upwardly able to run out how to add together a geolocation command to honor in addition to middle the map on the user's location.

If yous test the JavaScript file for the WWDC map yous tin run into how map markers are added to the map in addition to how to middle the map on dissimilar locations.