Mapbox gl js - draw a car marker

前端 未结 2 1110
天涯浪人
天涯浪人 2021-01-27 11:30

I need to draw a car marker based on it\'s position. But, unlike all official examples, like this, I want size of my marker to be dependent on zoom level. And, I want it to have

2条回答
  •  耶瑟儿~
    2021-01-27 11:42

    The Symbol layer https://www.mapbox.com/mapbox-gl-js/style-spec#layers-symbol is best suited for this, see this example https://www.mapbox.com/mapbox-gl-js/example/rotating-controllable-marker/

提交回复
热议问题