Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Carriage returns are ignored in the layer description #2385

Open
naomap opened this issue Dec 19, 2024 · 0 comments
Open

Carriage returns are ignored in the layer description #2385

naomap opened this issue Dec 19, 2024 · 0 comments
Labels

Comments

@naomap
Copy link

naomap commented Dec 19, 2024

Describe the bug
Carriage returns in the layer description are ignored in the legend of the map

To Reproduce
Steps to reproduce the behavior:

  1. Go to http://u.osmfr.org/m/1154005/
  2. Click on the About icon on the left
  3. Scroll down to the layer 'Restaurants par commune'
  4. The legend displays for this layer:

Restaurants par commune – Données OpenStreetMap extraites avec cette requête Overpass : [out:csv(commune,num_restos,lat,lon)]; area[admin_level=6][name="Loire-Atlantique"]; rel[boundary=administrative]admin_level=8; foreach ->.c { node(r.c) -> .centre; .c map_to_area; nwramenity=restaurant; make Feature commune = c.u(t['name']), num_restos = count(nwr), lat = centre.u(lat()), lon = centre.u(lon()); out; }

Expected behavior
The layer description should display on several lines, as defined in the description field:

Restaurants par commune
– Données OpenStreetMap extraites avec cette requête Overpass :

[out:csv(commune,num_restos,lat,lon)];
area[admin_level=6][name="Loire-Atlantique"];
rel[boundary=administrative]admin_level=8;
foreach ->.c {
node(r.c) -> .centre;
.c map_to_area;
nwramenity=restaurant;
make Feature
commune = c.u(t['name']),
num_restos = count(nwr),
lat = centre.u(lat()),
lon = centre.u(lon());
out;
}

Screenshots
Image

Desktop (please complete the following information):

  • OS: Ubuntu 22.04
  • Browser: Chromium, Firefox
  • Version: Version 131.0.6778.85, Firefox 133.0.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant