energizedwork / ember-mapbox-gl

Ember integration for Mapbox GL JS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ember-mapbox-gl

Latest NPM release TravisCI Build Status Ember Observer Score

Ember integration with mapbox-gl-js.

Installation

ember install ember-mapbox-gl

Example

{{#mapbox-gl as |map|}}
  {{#map.source data=wanderDrone as |source|}}
    {{source.layer layerType='symbol' layoutOptions=(hash icon-image='rocket-15')}}
  {{/map.source}}

  {{#if curLocation}}
    {{#map.marker lngLat=curLocation as |marker|}}
      {{#marker.popup}}
        This is where you are!
      {{/marker.popup}}
    {{/map.marker}}

    {{map.call 'easeTo' (hash center=curLocation)}}
  {{/if}}

  {{map.on 'click' (action 'onClick')}}
{{/mapbox-gl}}

About

Ember integration for Mapbox GL JS

License:MIT License


Languages

Language:JavaScript 88.5%Language:HTML 10.8%Language:CSS 0.7%