0.2.2 • Published 6 years ago
angular-mapbox v0.2.2
Angular module wrapper for mapbox
This module is create from angular cli
Requierment
npm install --save mapbox-gl
Installation
npm install --save angular-mapbox
Get Started
//app.module.ts
...
import { MapBoxModule } from 'angular-mapbox/module';
...
@NgModule({
...
imports: [
...
MapBoxModule.forRoot('YOU_MAPBOX_API_KEY')
...
],
...
});
Usage
<ng-mapbox></ng-mapbox>
Parameters :
input
- config : the map box configuration
- instructions : the event emiter to give instruction to the map
output
- map : gave an observable return the map instance
- informations : gave an observable to get information whene a layer or marker is added to the map
Events
events | descriptions | data parameter |
---|---|---|
addControl | add a mapbox control to the map | {control : mapboxgl.Control, position : string} |
removeControl | remove a mapbox control to the map | control : mapboxgl.Control |
addNavigationControl | add Navigation control | position : string |
removeNavigationControl | remove Navigation control | none |
addScaleControl | add Scale control | position : string |
removeScaleControl | remove Navigation control | none |
addSource | add Source to the map | data is Source type |
removeSource | remove Source to the map | id : string |
addLayer | add Layer to the map | data is Layer type |
removeLayer | remove Layer to the map | id : string |
addMarker | add Marker to the map | data is Marker type |
removeMarke | remove Marker to the map | id : string |
0.2.2
6 years ago
0.2.1
6 years ago
0.2.0
6 years ago
0.1.7
7 years ago
0.1.6
7 years ago
0.1.5
7 years ago
0.1.4
7 years ago
0.1.3
7 years ago
0.1.2
7 years ago
0.1.1
7 years ago
0.1.0
7 years ago
0.1.0-1
7 years ago
0.1.0-0
7 years ago
0.0.13
7 years ago
0.0.12
7 years ago
0.0.11
7 years ago
0.0.10
7 years ago
0.0.9
7 years ago
0.0.8
7 years ago
0.0.7
7 years ago
0.0.6
7 years ago
0.0.5
7 years ago
0.0.4
7 years ago
0.0.3
7 years ago
0.0.2
7 years ago
0.0.1
7 years ago
0.0.0
7 years ago