GIScience / Leaflet.Heightgraph

Leaflet plugin to visualize height information and road attributes.
https://giscience.github.io/Leaflet.Heightgraph
MIT License
100 stars 42 forks source link

Problem handling long lines of text in the Type field #95

Open jaluebbe opened 4 years ago

jaluebbe commented 4 years ago

I tried to segment a track by surface type determined by the CCI Land Cover data. Some surface descriptions are longer like this example: '40': {color: '#c8c864', text: 'Mosaic natural vegetation (tree, shrub, herbaceous cover) (>50%) / cropland (<50%)'} When moving the cursor over the Heightgraph, I observed several effects. Sometimes, the text is floating out of the box (the box stays small) or the box may stay large even if the current text entry is short. The box may float partly out of the left edge of the Heightgraph and is cut off. The box may stay small being left of the cursor while the text floats out of the box and is cut off by the right edge of the Heightgraph window. Maybe automatic force of line breaks after words may be a solution.