0.2.2 • Published 6 years ago

angular-mapbox v0.2.2

Weekly downloads
57
License
MIT
Repository
-
Last release
6 years ago

Angular module wrapper for mapbox

This module is create from angular cli

Requierment

Mapbox

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

eventsdescriptionsdata parameter
addControladd a mapbox control to the map{control : mapboxgl.Control, position : string}
removeControlremove a mapbox control to the mapcontrol : mapboxgl.Control
addNavigationControladd Navigation controlposition : string
removeNavigationControlremove Navigation controlnone
addScaleControladd Scale controlposition : string
removeScaleControlremove Navigation controlnone
addSourceadd Source to the mapdata is Source type
removeSourceremove Source to the mapid : string
addLayeradd Layer to the mapdata is Layer type
removeLayerremove Layer to the mapid : string
addMarkeradd Marker to the mapdata is Marker type
removeMarkeremove Marker to the mapid : 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