You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The BlueMapAPI class has some static methods that will be your entry-point into the API:
// Directly getting the apiOptional<BlueMapAPI> api = BlueMapAPI.getInstance();
// Using a listener to do something as soon as the API is availableBlueMapAPI.onEnable(api -> {
//code executed when the api got enabled
});
BlueMapAPI.onDisable(api -> {
//code executed right before the api gets disabled
});
Using the MarkerAPI
If you want to use the MarkerAPI, you start by loading a MakerAPI instance:
MarkerAPImarkerApi = blueMapApi.getMarkerAPI();
You need to understand that each time you are calling getMarkerAPI() a new MarkerAPI instance is created and loaded!
So only do this once and use this instance to create all you markers.
After creating all the markers you need to call