makinacorpus / Leaflet.TextPath

Show text along Polyline with Leaflet
https://makinacorpus.github.io/Leaflet.TextPath/
MIT License
285 stars 112 forks source link

Introduce ``below`` option #21

Closed leplatrem closed 9 years ago

leplatrem commented 9 years ago

We have two conflicting expectations regarding z-index of text.

See:

And respective jsfiddle:

@Abbe98 @fuatsengul @akshayme @p-j @solo999 do you guyz have a better idea that adding an option like this ?

Thanks for your feedback !

fuatsengul commented 9 years ago

Thanks Mathieu,

this solution is usable for now, but we can still face the layering problem if we put intersecting polylines on the map.

current below solution :

<text1>  //this has ``below`` option
<g1>
<g2>
<g3>
<text2>
<text3>

the ideal below solution in my mind:

without below:

<g1>
<text1>
<g2>
<text2>

with below:

<text1> **below
<g1>
<text2> **below
<g2>
Abbe98 commented 9 years ago

:+1: best solution for now. If we come up with a better solution it's very easy to replace so go for it...