0.3.2 • Published 5 years ago
@polytope/ngx-skobbler v0.3.2
ngx-skobbler Maps
This library enables use of the Skobbler Maps Leaflet plugin in Angular 2+. This library was created with Angular CLI version 7.2.0.
Setup
Import SkobblerModule and call its forRoot function, and provide your API key. The second argument of forRoot, is the location for the Skobbler Leaflet Javascript plugin, and defaults to Skobbler's website's file, and should be overwritten by your application.
Components
With the following:
<div style="width: 100vw; height: 100vh;">
<sk-map lat="62.0120363" lng="-6.779126" zoom="14">
<sk-marker lat="62.0120363" lng="-6.779126" color="#F44336">
<div style="color: white;">14</div>
</sk-marker>
</sk-map>
</div>You get:

Contributing
Build
Run ng build skobbler to build the project. The build artifacts will be stored in the dist/ directory.
Running unit tests
Run ng test skobbler to execute the unit tests via Karma.