I need to use some of the Mapbox GL instance members in Ember map application. like addControl() or getZoom(). These are the stack I’m working with:
"ember-cli": "~3.20.0",
"ember-cli-babel": "^7.21.0",
"ember-mapbox-gl": "^1.0.1"
this is the map vonstructor and some events:
{{#mapbox-gl class='map-container full-screen' initOptions=(hash pitch=10 center=this.center zoom=this.zoom style=this.style boxZoom=true keyboard=true) as |map|}}
{{map.on 'click' @onMapClick}}
{{map.on 'mouseover' this.mouseEnter}}
{{map.on 'mouseout' @mouseLeave}}
{{map.on 'contextmenu' @rightClick}}
{{map.addControl ...'}} // not sure if I can do this
{{/mapbox-gl}}
cheers