The place to get information and ask questions about everything to do with properly and successfully editing the Waze Map.
Use this forum for all general editing questions, and the sub-forums for specific types of Waze Map Editor features.
Moderators: support, Unholy, krankyd, The Fej
by Laakkus » Wed Oct 12, 2011 8:39 pm
AlanOfTheBerg wrote:Updated OP with LiveMap to Papyrus code. Bookmarklet drag-n-drop file has not been updated yet.
I bow before your superior coding skills.. didnt have a clue about openlayer-stuff.
Here are more suitable values for zooming in WORLD SERVER.
- Code: Select all
javascript:(function(){var center_lonlat=OpenLayers.Layer.SphericalMercator.inverseMercator(g_map.getCenter().lon,g_map.getCenter().lat);window.open('http://'+window.location.hostname+'/cartouche/?zoom='+(g_map.zoom>6 ? g_map.zoom-5 : 0)+'&lon='+center_lonlat.lon+'&lat='+center_lonlat.lat,'Papyrus');})();
Code by AlanOfTheBerg, just changed zoom values to more suitable here.
Thanks Alan.
-
Laakkus
-
- Posts: 361
- Joined: Thu Jul 28, 2011 11:48 am
- Has thanked: 1 time
- Been thanked: 4 times
by AlanOfTheBerg » Wed Oct 12, 2011 9:08 pm
Laakkus wrote:AlanOfTheBerg wrote:Updated OP with LiveMap to Papyrus code. Bookmarklet drag-n-drop file has not been updated yet.
I bow before your superior coding skills.. didnt have a clue about openlayer-stuff.
Here are more suitable values for zooming in WORLD SERVER.
The world server LiveMap zoom levels are different? That's rather strange.
-
AlanOfTheBerg
- Waze Champs
-
- Posts: 13880
- Joined: Sat Aug 28, 2010 8:48 pm
- Location: Oregon, USA
- Has thanked: 127 times
- Been thanked: 443 times
by Timbones » Wed Oct 12, 2011 9:41 pm
AlanOfTheBerg wrote:The world server LiveMap zoom levels are different? That's rather strange.
Yeah, fraid so - I had to fiddle the Papyrus -> Livemap bookmarlet to make it work for World. Maximum zoom level is 9. Sorry, meant to mention it...
-
Timbones
- Waze Champs
-
- Posts: 2854
- Joined: Wed Feb 09, 2011 10:33 am
- Location: York, UK
- Has thanked: 17 times
- Been thanked: 190 times
-
by AlanOfTheBerg » Wed Oct 12, 2011 9:44 pm
Timbones wrote:AlanOfTheBerg wrote:The world server LiveMap zoom levels are different? That's rather strange.
Yeah, fraid so - I had to fiddle the Papyrus -> Livemap bookmarlet to make it work for World. Maximum zoom level is 9. Sorry, meant to mention it...
Urgly.
OP code updated to take into account the different world LiveMap zoom levels. During this testing, I noted that there appears to be an equivalent zoom level mismatch: the zoom level is HUGE between LiveMap zoom 7 and 8 and there is no equivalent to the Papyrus level 2 zoom. It works, but because of that missing zoom level, it's fugly.
-
AlanOfTheBerg
- Waze Champs
-
- Posts: 13880
- Joined: Sat Aug 28, 2010 8:48 pm
- Location: Oregon, USA
- Has thanked: 127 times
- Been thanked: 443 times
by germandelreal » Thu Oct 13, 2011 4:56 pm
AlanOfTheBerg wrote:I don't feel comfortable posting that code as it implies a link to other mapping systems, which could be a licensing issue. I had posted that code to the wiki before and had to take it down. If you have the other code, it is a pretty straightforward copy-paste-slight tweak job.
Thanks you

-
germandelreal
-
- Posts: 1
- Joined: Mon Sep 12, 2011 11:02 pm
- Has thanked: 0 time
- Been thanked: 0 time
Return to Waze Map Editor
Who is online
Users browsing this forum: No registered users