whoots icon indicating copy to clipboard operation
whoots copied to clipboard

allow excluding empty &map= attribute from target url

Open Swarkin opened this issue 10 months ago • 3 comments

this breaks the wms server i tried to use

Swarkin avatar Jan 26 '25 11:01 Swarkin

Same for me, the ouput is broken. The uncalled "&m" parameter should not be added to the calculated URL at all.

Example: Input http://whoots.mapwarper.net/tms/17/68034/43730/nw_dop_rgb/https://www.wms.nrw.de/geobasis/wms_nw_dop

Output https://www.wms.nrw.de/geobasis/wms_nw_dop?bbox=763758.7866254821,6666837.607033074,764064.5347386226,6667143.355146214&format=image/png&service=WMS&version=1.1.1&request=GetMap&srs=EPSG:3857&width=256&height=256&layers=nw_dop_rgb&map=&styles=

Expected Output (no "&map=") https://www.wms.nrw.de/geobasis/wms_nw_dop?bbox=763758.7866254821,6666837.607033074,764064.5347386226,6667143.355146214&format=image/png&service=WMS&version=1.1.1&request=GetMap&srs=EPSG:3857&width=256&height=256&layers=nw_dop_rgb&styles=

enemenebene avatar Jan 30 '25 09:01 enemenebene

i've updated the code to be able to fix this now. Thank you for the examples. These really helped

(Note that the server itself is going offline soon, but the service should run via the new php version of it)

timwaters avatar Feb 28 '25 17:02 timwaters

oh awesome! I should be able to use lidar imagery with osmand now.

Swarkin avatar Feb 28 '25 18:02 Swarkin