libraries
An array of libraries to load at initialization.
Declaration
libraries?: string[];Discussion
MapKit JS divides its interfaces into libraries that you can specify when loading the framework. To optimize your app load time, pick only the interfaces you need:
servicesAll services interfaces (such as Search and Geocoder) and relevant data types.
full-mapAll
mapkit.Mapfeatures and relevant data types.mapBasic
mapkit.Mapfeatures without overlays, annotations, and relevant data types.overlaysOverlays, data types, and displays on Map.
annotationsAnnotations, data types, and displays on Map.
geojsonThe GeoJSON importer.
user-locationUser location display and controls on Map.
look-around
You can set the libraries to load statically by defining them within script tag in the data-libraries attribute or in the load(libraryNames) method, or by passing a libraries property in the init(options) options.