FR talk:Bookmarklet OSM-Mapillary

From OpenStreetMap Wiki
Jump to: navigation, search

It does not work with an integer zoom level in Mapillary.

https://www.mapillary.com/app/?lat=51.01176093859672&lng=4.485410096903053&z=18

I think the solution is =

www\.mapillary\.com\/app\/\?lat=(-?\d{1,2}\.\d+)&lng=(-?\d{1,2}\.\d+)&z=(\d{1,2}\.?\d*)

In which the decimal point \. receives a ? quantifier and the decimals \d receive a * quantifier.

I tried this only in regexr. --written by Philippec

OK it looks like you are right. I will try it tomorrow or later and update. That's the first time I deal with a javascript snippet and regexps. If you verify it before me, feel free to change the page. Thank you! --Thaïti Bob (talk) 20:37, 11 July 2017 (UTC)


But wait, there is more :

https://www.mapillary.com/app/user/filipc?pKey=AoHQ8JgVDsfWeAX6or3msQ&lat=51.21857294183769&lng=4.403032976179446&z=14.188941201294796 https://www.mapillary.com/app/user/filipc?feedItem=user-tKLqKVmOKqyrzeIUbWBtAQ-activity-user-tKLqKVmOKqyrzeIUbWBtAQ-publishing_done-image%3A1499843614619&pKey=_wSCDdiNlPb1L-t8OA1_6A&lat=51.22767107555558&lng=4.401667266944514&z=17

I think it is all solved by =

www\.mapillary\.com\/app\/.+lat=(-?\d{1,2}\.\d+)&lng=(-?\d{1,2}\.\d+)&z=(\d{1,2}\.?\d*)


So changing the escaped question mark by one or more any characters except new line.


I tested the bookmarklet and adapted the wiki page. I will test the Wiki page this afternoon. OK tested. It works well, except when you want to see more than tne world.

Let's call this version 2017.07.13.001