@arenarium/maps 1.0.185 → 1.0.186

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -283,6 +283,34 @@ You can change the markers style by using the predefined CSS variables:
283
283
 
284
284
  Some events and errors are logged to via the api. These logs are used for debugging and monitoring purposes in order to improve the library. To enable or disable logging, set the `api.log.enabled` property to `true` or `false` in the map configuration. By default, logging is disabled for development environments.
285
285
 
286
+ ```js
287
+ const mapManager = new MapManager(mapProvider, {
288
+ api: {
289
+ log: {
290
+ enabled: false
291
+ }
292
+ }
293
+ });
294
+ ```
295
+
296
+ ## API (WIP)
297
+
298
+ While the library works out of the box, it is recommended to use the API for calculating the marker states. The calculations can be compute intensive and api could offer a more standerdized performance, and benefits from caching.
299
+
300
+ To use the API, create an API key at https://arenarium.dev/keys, use the domains field to whitelist the domains you want to use the API for. Then when initializing the map manager, provide the api key:
301
+
302
+ ```js
303
+ const mapManager = new MapManager(mapProvider, {
304
+ api: {
305
+ states: {
306
+ key: 'YOUR_API_KEY'
307
+ }
308
+ }
309
+ });
310
+ ```
311
+
312
+ For more information about the API, please feel free to reach out.
313
+
286
314
  # Examples
287
315
 
288
316
  [https://github.com/arenarium-dev/arenarium-maps-svelte-kit-example](https://github.com/arenarium-dev/arenarium-maps-svelte-kit-example)