Greasy Fork is available in English.

WME Fix Map Object

Temporary fix for the changes made in the WME internal data structure that breaks any script that interacts with the map. Also monitors and reports the usage of these copied over properties.

Maker
Glodenox
Dagelijks aantal installaties
0
Totaal aantal installaties
528
Beoordelingen
2 0 0
Versie
1.1.0
Gemaakt op
31-10-2019
Bijgewerkt op
04-12-2019
Licentie
N.v.t.
Wordt toegepast op

Waze has decided to move the OpenLayers Map object from W.map to W.map.olMap. This script counteracts this by copying all properties from the new object to where they would be on the old object. This makes it possible to bring to live any old scripts. Possibly we could include this snippet in several of the often-used scripts should Waze go forward with this.