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

Papyrus <-> Cartouche Bookmarklets

Postby AlanOfTheBerg » Wed Aug 24, 2011 7:15 pm

Here are code snippets to be used as bookmarklets to help you switch between Papyrus and Cartouche. They work for both NA and world servers. They were previously published as separate threads, but I wanted to bring them together.

For a drag-and-drop solution, please see this page.

Open Papyrus in Cartouche:
Code: Select all
javascript:(function(){var center_lonlat=new OpenLayers.LonLat(wazeMap.center.lon,wazeMap.center.lat);center_lonlat.transform(new OpenLayers.Projection('EPSG:900913'),new OpenLayers.Projection('EPSG:4326'));window.open('http://'+window.location.hostname+'/cartouche_old/?zoom='+(wazeMap.zoom)+'&lon='+center_lonlat.lon+'&lat='+center_lonlat.lat,'oldCartouche');})();


Open Papyrus in LiveMap:
Code: Select all
javascript:(function(){var center_lonlat=new OpenLayers.LonLat(wazeMap.center.lon,wazeMap.center.lat);center_lonlat.transform(new OpenLayers.Projection("EPSG:900913"),new OpenLayers.Projection("EPSG:4326"));var mapZoom=(window.location.hostname=='world.waze.com' ? (wazeMap.zoom<5 ? (wazeMap.zoom<2 ? wazeMap.zoom+6 : wazeMap.zoom+5) : 9) : (wazeMap.zoom>10 ? wazeMap.zoom-11 : 0));window.open('http://'+window.location.hostname+'/livemap/?zoom='+mapZoom+'&lon='+center_lonlat.lon+'&lat='+center_lonlat.lat,'LiveMap');})();


Open LiveMap in Papyrus:
Code: Select all
javascript:(function(){var center_lonlat=OpenLayers.Layer.SphericalMercator.inverseMercator(g_map.getCenter().lon,g_map.getCenter().lat);var mapZoom=(window.location.hostname=='world.waze.com' ? (g_map.zoom>6 ? (g_map.zoom>7 ? g_map.zoom-5 : g_map.zoom-6) : 0) : (g_map.zoom>10 ? g_map.zoom-11 : 0));window.open('http://'+window.location.hostname+'/cartouche/?zoom='+mapZoom+'&lon='+center_lonlat.lon+'&lat='+center_lonlat.lat,'Papyrus');})();


Open Cartouche in Papyrus:
Code: Select all
javascript:(function(){var center_lonlat=new OpenLayers.LonLat(g_cartouche.map.center.lon,g_cartouche.map.center.lat);center_lonlat.transform(new OpenLayers.Projection('EPSG:900913'),new OpenLayers.Projection('EPSG:4326'));window.open('http://'+window.location.hostname+'/cartouche/?zoom='+(g_cartouche.map.zoom)+'&lon='+center_lonlat.lon+'&lat='+center_lonlat.lat,'Papyrus');})();


This code heavily relies on previous threads in the forum, which I won't link to because I've been asked not to. :)
Last edited by AlanOfTheBerg on Thu Nov 03, 2011 4:31 pm, edited 1 time in total.
Reason: unstickied as Info now contained in the wiki
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: 13768
Joined: Sat Aug 28, 2010 8:48 pm
Location: Oregon, USA
Has thanked: 120 times
Been thanked: 428 times

Re: Papyrus <-> Cartouche Bookmarklets

Postby jasonm128 » Wed Aug 24, 2011 9:49 pm

These are great, thanks for helping write them and collecting them here. Is it possible to update the old Google, Bing, Mapquest and OSR bookmarklets so that they will work from either Cartouche or Papyrus? It's kind of annoying to open Cartouche just so that I can open Google or keep two sets of bookmarks.
Area Manager : NW Suburbs of Boston, MA
HTC Droid DNA - Android 4.1 - Verizon
jasonm128
 
Posts: 275
Joined: Thu Mar 31, 2011 2:55 am
Location: Boston, MA, USA
Has thanked: 0 time
Been thanked: 0 time

Re: Papyrus <-> Cartouche Bookmarklets

Postby AlanOfTheBerg » Wed Aug 24, 2011 10:22 pm

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.
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: 13768
Joined: Sat Aug 28, 2010 8:48 pm
Location: Oregon, USA
Has thanked: 120 times
Been thanked: 428 times

Re: Papyrus <-> Cartouche Bookmarklets

Postby argus-cronos » Thu Aug 25, 2011 10:17 pm

Great Work Alan thanks
argus-cronos
Waze Champs
 
Posts: 4221
Joined: Sat Apr 03, 2010 3:00 pm
Location: Basel, Switzerland
Has thanked: 206 times
Been thanked: 273 times

Re: Papyrus <-> Cartouche Bookmarklets

Postby jenncard » Tue Aug 30, 2011 1:29 am

I love these! Except now I am spending even MORE time doing Waze edits....
Image
VZW DroidX on gingerbread 2.3.3
Are you on The AM Map?
AreaMgr in Colorado, from Boulder to Winter Park
+ the Colorado Hinterlands
jenncard
 
Posts: 719
Joined: Sat Jul 02, 2011 10:00 pm
Location: Colorado, generally
Has thanked: 0 time
Been thanked: 0 time

Re: Papyrus <-> Cartouche Bookmarklets

Postby AlanOfTheBerg » Tue Aug 30, 2011 5:35 am

Edited original post with a link to a page I built which has drag-n-drop bookmarklets.

Known bug in Chrome (Mac only?) where Chrome doesn't add the name to the bookmarklet. You'll have to do that manually.
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: 13768
Joined: Sat Aug 28, 2010 8:48 pm
Location: Oregon, USA
Has thanked: 120 times
Been thanked: 428 times

Re: Papyrus <-> Cartouche Bookmarklets

Postby petervdveen » Tue Aug 30, 2011 7:47 am

AlanOfTheBerg wrote:(Mac only?)

XP too.
Coördinator BeNeLux
- Nederland Belgium Lëtzebuerg
ImageImageImageImage

peter@wazenederland.nl peter@wazebelgium.be
petervdveen
Waze Champs
 
Posts: 4764
Joined: Wed Mar 03, 2010 4:43 pm
Location: Netherlands
Has thanked: 19 times
Been thanked: 118 times

Re: Papyrus <-> Cartouche Bookmarklets

Postby dknight212 » Tue Aug 30, 2011 8:50 am

and Linux (Ubuntu 11.04)
Samsung Galaxy Note 2 (stock) • Android 4.1.2 • Waze 3.5.1.4
Area Manager for LondonUK Country Admin
UK WikiUK ForumWaze UK on FacebookBecome a UK Area ManagerWaze Status
dknight212
Waze Champs
 
Posts: 2683
Joined: Sun Apr 24, 2011 9:21 am
Location: London, UK
Has thanked: 14 times
Been thanked: 37 times

Re: Papyrus <-> Cartouche Bookmarklets

Postby AlanOfTheBerg » Mon Sep 19, 2011 1:38 pm

Updated code and bookmarklets due to hostname change from descartes(w) back to the main www and world server hostnames.
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: 13768
Joined: Sat Aug 28, 2010 8:48 pm
Location: Oregon, USA
Has thanked: 120 times
Been thanked: 428 times

Re: Papyrus <-> Cartouche Bookmarklets

Postby pecus » Wed Oct 05, 2011 8:27 am

Fantastic, thanks! (I know it's a useless post, but one way or another I had to tell you) ;)
Waze 2.0.1, iPhone 3GS (IOS 4.1.2 JB), Ford Focus SW 1.6 GPL
AM Torino e cintura
Progetto in corso: PIM (Poetry In Motion)
pecus
 
Posts: 22
Joined: Mon May 31, 2010 10:32 pm
Has thanked: 0 time
Been thanked: 0 time

Next

Return to Waze Map Editor

Who is online

Users browsing this forum: Bing [Bot]