jgpacker / osm-smart-menu

An OpenStreetMap webextension for Firefox and Chrome
GNU General Public License v3.0
56 stars 12 forks source link

Improve pattern recognition #183

Open Bibi56 opened 2 years ago

Bibi56 commented 2 years ago

I've added:

Name Template
Géoportail https://www.geoportail.gouv.fr/carte?c={longitude},{latitude}&z={zoom}&l0=GEOGRAPHICALGRIDSYSTEMS.PLANIGNV2::GEOPORTAIL:OGC:WMTS(1)&l1=ORTHOIMAGERY.ORTHOPHOTOS::GEOPORTAIL:OGC:WMTS(0.45)&permalink=yes

as proposed in https://wiki.openstreetmap.org/wiki/Talk:OSM_Smart_Menu#France. Then I changed the layers displayed by Géoportail (inside Géoportail): https://www.geoportail.gouv.fr/carte?c=2.31711259637669,48.84148703642347&z=11&l0=GEOGRAPHICALGRIDSYSTEMS.PLANIGNV2::GEOPORTAIL:OGC:WMTS(1)&permalink=yes

My educated guess says that you could find the variable parts (here c={longitude},{latitude}&z={zoom}) and therefore propose to use following values to go to the other websites):

template value
{{longitude}} 2.31711259637669
{{latitude}} 48.84148703642347
{{zoom}} 11

That would raise farther acceptance for multiple layers portals.

Don't worry, the tool is already a must have ;-).