Apple has launched a novel desktop mapping API. MapKit.js allows you lot to practice interactive maps for websites using the Apple Maps base of operations map layers (a road-map, satellite in addition to satellite amongst labels).
MapKit has been launched inward beta amongst 3 original services: a geocoder, a search alternative in addition to directions. It supports GeoJson in addition to map overlays, including map markers, picture overlays in addition to polylines & polygons.
Map Overlays
Overlays - MapKit allows you lot to add together polygons in addition to polylines to a map. It equally good includes a circle overlay which allows you lot to add together a circle to your map.
Annotations - annotations appear to last labels which you lot tin flame add together to markers and/or picture overlays. It equally good looks to me that you lot run annotations to add together a marking to a map (e.g. "new mapkit.MarkerAnnotation").
Services
The beta of MapKit has launched amongst 3 original services:
Geocoder - the MapKit geodcoder provides forwards in addition to contrary geocoding. It tin flame equally good render the user's electrical current place (if permission is granted).
Search - the MapKit search tin flame locate businesses, locations in addition to other points of interest. It includes an auto-complete alternative for user input.
Directions - the MapKit directions service tin flame render step-by-step directions in addition to journeying times for unlike modes of carry (although I can't come across inward the documentation which modes of carry are supported). Vasile Coțovanu has already posted a quick exhibit of a MapKit map using the Directions service to GitHub.
Cost
Influenza A virus subtype H5N1 banker's complaint at the rattling bottom of this developer page says:
"MapKit JS beta provides a gratis daily boundary of 250,000 map initializations in addition to 25,000 service calls. For additional capacity needs, contact us."
Buat lebih berguna, kongsi: