You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think we should use SVGs. We are using those markers in several other places. (The turn instructions have marker icons and it would be nice to replace the colored dots next to the addressInputs with markers as well) Using SVGs makes sure those icons appear sharp everywhere.
Also, the color of SVGs can be set dynamically. We would therefore only need a single SVG asset and then color it with css or from js-code. This makes it easy to introduce another color if this need ever arises.
Probably it would make sense to have a MarkerComponent somehow which manages the number and the coloring.
And while we are at it: What do you think about the height graph marker:
I think in its current form we cannot use it with the react mapbox wrapper either, and neither do I think it is particularly pretty. Should we just use the default Mapbox popup for this? Or any other ideas?
Hm, without further styling the default popup is also a bit ugly:
Hm, without further styling the default popup is also a bit ugly:
I think so too. On the other hand we can use the default pop up and find a better solution later, if you want to solve things with the react wrapper first
Activity
easbar commentedon Jun 14, 2021
Btw the mapbox gl js default marker we are currently using is somewhat 'buried' here:
https://github.com/mapbox/mapbox-gl-js/blob/50adf1cc14e5aef09099f15c5cb803eaa5f72a48/src/ui/marker.js#L113-L216
Janekdererste commentedon Jun 15, 2021
I think we should use SVGs. We are using those markers in several other places. (The turn instructions have marker icons and it would be nice to replace the colored dots next to the addressInputs with markers as well) Using SVGs makes sure those icons appear sharp everywhere.
Also, the color of SVGs can be set dynamically. We would therefore only need a single SVG asset and then color it with css or from js-code. This makes it easy to introduce another color if this need ever arises.
Probably it would make sense to have a
MarkerComponentsomehow which manages the number and the coloring.Janekdererste commentedon Jun 15, 2021
I do like the appearance of the mapbox marker a lot, by the way
easbar commentedon Jun 15, 2021
Ok I agree :)
There is an example SVG based marker component here:
https://github.com/visgl/react-map-gl/blob/4.0-release/examples/controls/src/city-pin.js
and it is used here: https://visgl.github.io/react-map-gl/examples/controls
I just think its kind of ugly :)
Yes, me too :)
easbar commentedon Jun 15, 2021
And while we are at it: What do you think about the height graph marker:
I think in its current form we cannot use it with the react mapbox wrapper either, and neither do I think it is particularly pretty. Should we just use the default Mapbox popup for this? Or any other ideas?
Hm, without further styling the default popup is also a bit ugly:

Janekdererste commentedon Jun 16, 2021
I think so too. On the other hand we can use the default pop up and find a better solution later, if you want to solve things with the react wrapper first