Closed loppear closed 6 years ago
Hi I just pushed a new update.
Instead of importing the CSS, I create the style element dynamically inside the shadow-dom. It works now.
Just update to v2.0.7
You can see an example of this at https://www.webcomponents.org/element/PolymerVis/mapbox-gl/demo/demo/centered.html
I'm sure this is something simple on my part, but attempting to use the demo as a start I'm stumped by some interaction with the shadowdom that's not applying the mapbox css appropriately (obviously,
mapbox-control-container
/mapbox-ctrl*
, but presumably all from mapbox-gl.css):I've tried explicitly setting
css-src
and directlylink
ing the mapbox css - in either case, the css file is loading from api.mapbox.com and the rendered elements for the map and controls appear fine, but styles are not applied within the shadow root. (Tested on FF and Chrome)Mapbox-gl installed from bower, v2.0.6 Polymer installed as dep via bower, v2.2.0