bash app.html MapLibrary from the main package. Import MaplibreProvider and the CSS file from the integration package.MaplibreProvider.create and load the library with MapLibrary.load. Then adapt the provider with library.provider.adapt and create the map manager with library.manager.create.MaplibreProvider.create takes a maplibregl.MapOptions object with an optional theme: 'light' or 'dark'. The promise resolves when the map is loaded.app.ts provider.getMap. You can then use the MapLibre API on the map directly.maplibregl from the integration
package. Do not install maplibre-gl separately. The provider creates the map with this maplibregl.
Thus, the map and the classes always have the same version.app.ts MapMarkerOptions objects. Each object has a unique id, the coordinates and the HTMLElement of the tooltip. Then give the array to the insertMarkers method of the map manager.app.ts insertMarkers keeps it. Thus, you can use the same method to update the
markers continuously. Insertions and removals run in the sequence of the calls. If you make a call while a different call runs, the new call
waits until the first call is complete.HTMLElement with these options:dimensions: the size of the element.style: the appearance of the element.initialize: a callback that initializes the element when it shows for the first time.dimensions, the library measures each element. When you have many complex elements, set the
dimensions manually to skip the measurement and make the markers load faster.layer first and then the rank. This example
sets all the options:app.ts app.ts removeMarkers method. To remove all the markers, use the clearMarkers method. This method also removes the markers of the insertions that you called before it.app.ts showTooltip method. The map moves to the marker and zooms in until the tooltip of the
marker shows. To open or close the popup of a marker, use the showPopup and hidePopup methods.app.ts on. To remove the listener, use off with the same listener function.'error' event reports the errors that occur while the manager responds to the map, outside of your calls. You cannot catch
these errors in your code. If the cleared value is true, the manager removed all the markers to recover. You must then insert
the markers again.app.ts 'redeploy' event occurs one time, when the API starts to serve a newer version of the library than the version that
the page loaded. To use the new version, load the library again and create the map manager again. Alternatively, reload the page.'offline' event occurs when a request to the API fails because of a network error, for example when the device loses
its connection. Use it to tell the user that the markers cannot update.app.ts MapManagerConfiguration object to library.manager.create. The configuration controls the pin fade, the popup pan and how the markers move to make space
for each other.app.ts library.manager.create. To load the map
manager together with the library, give the preload option to MapLibrary.load.app.ts app.ts