ttnmapper / ttnmapper-web

TTN Mapper production source code
https://ttnmapper.org
GNU General Public License v3.0
15 stars 5 forks source link

allow to set layer via 'layer' GET param #1

Closed sorki closed 4 years ago

sorki commented 5 years ago

To be able to point to ttnmapper with 'layer' parameter as the default map often doesn't even contain name of our cities.

This repo doesn't seem to match deployed website so please port/update if needed.

jpmeijers commented 5 years ago

Ahh excellent. Thanks for this awesome feature! I'll merge the PR in as soon as I put the feature into production.

jpmeijers commented 5 years ago

Functionality has been added to production. Will add it to this repo when we sync from production here.

sorki commented 5 years ago

Cool, it works! You can see it action at https://iot.otevrenamesta.cz/

Gateway name points to e.g. https://ttnmapper.org/?lat=49.20410354&lon=16.59441639&zoom=15&type=radar&layer=mapnik

jpmeijers commented 4 years ago

Your code snippet got lost somewhere, but it has been added back in to the production code base now.

sorki commented 4 years ago

Works fine now, thanks!