Papyrus <-> Cartouche Bookmarklets

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

Re: Papyrus <-> Cartouche Bookmarklets

Postby 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. :oops:

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.
Image
Area manager: Some cities
Country manager: Finland
Suomenkielinen Wiki | Asemien tarkistus | Editointiohje
i9300 | CM10.1 Nightly | Waze 3.6
Laakkus
 
Posts: 361
Joined: Thu Jul 28, 2011 11:48 am
Has thanked: 1 time
Been thanked: 4 times

Re: Papyrus <-> Cartouche Bookmarklets

Postby 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. :oops:

Here are more suitable values for zooming in WORLD SERVER.

The world server LiveMap zoom levels are different? That's rather strange.
Oregon-based US Country Manager | iPhone5 - VZ - iOS 6.1.2 | Waze v3.6
Image
Wiki Resources: Map Editing Manual | Oregon Project/To-Do List
AlanOfTheBerg
Waze Champs
 
Posts: 13880
Joined: Sat Aug 28, 2010 8:48 pm
Location: Oregon, USA
Has thanked: 127 times
Been thanked: 449 times

Re: Papyrus <-> Cartouche Bookmarklets

Postby 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 • UK Country Admin • Forum Moderator • Beta Editor and Routing Expert
Scripts: WME Colour Highlights v1.6 « NEW (Feb 2013)Livemap Navigation v0.72 (Jan 2013)
Timbones
Waze Champs
 
Posts: 2854
Joined: Wed Feb 09, 2011 10:33 am
Location: York, UK
Has thanked: 17 times
Been thanked: 191 times

Re: Papyrus <-> Cartouche Bookmarklets

Postby 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.
Oregon-based US Country Manager | iPhone5 - VZ - iOS 6.1.2 | Waze v3.6
Image
Wiki Resources: Map Editing Manual | Oregon Project/To-Do List
AlanOfTheBerg
Waze Champs
 
Posts: 13880
Joined: Sat Aug 28, 2010 8:48 pm
Location: Oregon, USA
Has thanked: 127 times
Been thanked: 449 times

Re: Papyrus <-> Cartouche Bookmarklets

Postby 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 :D
germandelreal
 
Posts: 1
Joined: Mon Sep 12, 2011 11:02 pm
Has thanked: 0 time
Been thanked: 0 time

Previous

Return to Waze Map Editor

Who is online

Users browsing this forum: Bing [Bot]

cron