elm-mapbox icon indicating copy to clipboard operation
elm-mapbox copied to clipboard

fixing error "style is not done loading"

Open andre-dietrich opened this issue 6 years ago • 3 comments

a little modification according to the following suggestion :

https://bl.ocks.org/malwoodsantoro/43bba1d03a8d22c10b3e9943eb0c55d1

andre-dietrich avatar Aug 09 '19 12:08 andre-dietrich

Actually I’ve been investigating this side of mapbox recently and it’s pretty nasty. Thanks for the PR, I’ll need a bit of time to look into it.

gampleman avatar Aug 09 '19 16:08 gampleman

Hi, I just updated Element and added a zoom and a center attribute function, this functionality was already implemented at the JS part, but not within elm... probably you could also just copy it into your projects, since it is pretty basic ... Regards ...

andre-dietrich avatar Sep 06 '19 11:09 andre-dietrich

@andre-dietrich those are not implemented on purpose. They form a basis of a "controlled" mode - which would be useful, but there's a lot more required to actually implement it. Also, this can already be achieved using map styles, so I'd rather not have 2 ways to do the same thing.

gampleman avatar Sep 06 '19 14:09 gampleman