Post Reply

Script permalink google maps

Post by
Tak jsem si zažádal o nové mapy od googlu. Moc krasívoje.

Jenže v té chvíli mi nefunguje žádný script na permalink do google maps. Jen mi to nahodí hodně z vysoka Severní Ameriku.

Jen aby jste neudělali stejnou chybu.
Jestli znáte řešení, tak sem s tím.

POSTER_ID:863001

1

Send a message

Post by bebebrumik
Skript pro Firefox mi ukazuje Permalink a odkaz na Mapy.cz, chybí Google...
bebebrumik
Area Manager
Area Manager
Posts: 1014
Has thanked: 140 times
Been thanked: 192 times
Send a message
Editor L5

Post by bebebrumik
To mi taky házelo, ale po pár pokusech to vyšlo :-)
bebebrumik
Area Manager
Area Manager
Posts: 1014
Has thanked: 140 times
Been thanked: 192 times
Send a message
Editor L5

Post by bebebrumik
mylan wrote: A máš nainštalovaný skript pre google maps? Je to rozdelené do dvoch skriptov, pretože skript pre google mapy využívajú aj ľudia mimo CZ/SK a mapy.cz by im boli na nič.
A jo, díky, už to jde. Skvělá práce!
bebebrumik
Area Manager
Area Manager
Posts: 1014
Has thanked: 140 times
Been thanked: 192 times
Send a message
Editor L5

Post by foxitrot
[OT]
Mne uz mnoho mesiacov nefunguje bookmarklet WME -> stare GoogleMaps, ale este mi to funguje v mnoho krat dolatanom prastarom WME ext tools 1.6.5.2 - to posledne kvoli comu to drzim. Na nove GMaps by to uz asi nemalo zmysel prerabat.
Mate niekto poruke funkcny bookmarklet pre stare GMaps?
foxitrot
Waze Global Champs
Waze Global Champs
Posts: 7263
Has thanked: 1282 times
Been thanked: 649 times
Send a message
...with the good old crashing :roll: Symbian 2.1.99.114 (on N-E52), while
trying to get used to the good new asocial Android 4.xx.0.yyy (on OP-X March-me-Low).

Post by foxitrot
mylan wrote:foxi: ako vyzerá súčasný bookmarklet? Ak ho máš niekde, hoď ho sem do (code) a možno niečo vymyslíme. V plain javascripte sa vyznám síce len letmo, ale snáď kolektívne nájdeme chybu :)
Tak sa pozrime na to:

Code: Select all

javascript:(function(){var%20center_lonlat%20=%20new%20OpenLayers.LonLat(g_cartouche.map.center.lon,g_cartouche.map.center.lat);center_lonlat.transform(new%20OpenLayers.Projection("EPSG:900913"),%20new%20OpenLayers.Projection("EPSG:4326"));window.open('http://maps.google.com/maps?q='+center_lonlat.lat+','+center_lonlat.lon+'&z='+%20(g_cartouche.map.zoom+12));})();
Tak pozeram ze to je asi uz dobre stary kusok, "g_cartouche.map" mozno vo WME uz davno nie je zadefinovane... Co je tam teraz, "wazeMap"?
mylan wrote:Chceš radšej ten bookmarklet, user script nevyhovuje?
V podstate ano, ale chcel som ten bookmarklet spojazdnit.
foxitrot
Waze Global Champs
Waze Global Champs
Posts: 7263
Has thanked: 1282 times
Been thanked: 649 times
Send a message
...with the good old crashing :roll: Symbian 2.1.99.114 (on N-E52), while
trying to get used to the good new asocial Android 4.xx.0.yyy (on OP-X March-me-Low).

Post by foxitrot
mylan wrote:Jj, malo by to byť wazeMap po novom, skús toto:
Jo, to uz ide, vdaka. Vidim ze kod je identicky, naozaj len "g_cartouche.map" -> "wazeMap".
foxitrot wrote:
mylan wrote:... user script nevyhovuje?
V podstate ano, ale chcel som ten bookmarklet spojazdnit.
Skusil som ho - ide spravne, nepaci sa mi ale, ze na uplne kazdej zalozke vytvori dole dlhy gombik "Google Maps Permalink", pricom niektore su uz teraz dost zaplnene - jedno gombitko by mi stacilo.
foxitrot
Waze Global Champs
Waze Global Champs
Posts: 7263
Has thanked: 1282 times
Been thanked: 649 times
Send a message
...with the good old crashing :roll: Symbian 2.1.99.114 (on N-E52), while
trying to get used to the good new asocial Android 4.xx.0.yyy (on OP-X March-me-Low).

Post by foxitrot
mylan wrote:... pošlem sem upravenú verziu user scriptu, kde sa tlačítko pridá vedľa waze permalinku.
Noo, to je pekne elegantne :)
foxitrot
Waze Global Champs
Waze Global Champs
Posts: 7263
Has thanked: 1282 times
Been thanked: 649 times
Send a message
...with the good old crashing :roll: Symbian 2.1.99.114 (on N-E52), while
trying to get used to the good new asocial Android 4.xx.0.yyy (on OP-X March-me-Low).

Post by foxitrot
Inak mylan, co sa tyka editora (editorov), zisiel by sa skor "// @include https://*.waze.com/*editor/*" - beta_editor je momentalne mimo a dalsie tri su uz pase.
foxitrot
Waze Global Champs
Waze Global Champs
Posts: 7263
Has thanked: 1282 times
Been thanked: 649 times
Send a message
...with the good old crashing :roll: Symbian 2.1.99.114 (on N-E52), while
trying to get used to the good new asocial Android 4.xx.0.yyy (on OP-X March-me-Low).

Post by foxitrot
Zle som sa vyjadril - beta editor je (a bude) funkcny, len nebol includnuty v nastaveniach skriptu :)
O inom editore zatial neviem.
foxitrot
Waze Global Champs
Waze Global Champs
Posts: 7263
Has thanked: 1282 times
Been thanked: 649 times
Send a message
...with the good old crashing :roll: Symbian 2.1.99.114 (on N-E52), while
trying to get used to the good new asocial Android 4.xx.0.yyy (on OP-X March-me-Low).

Post by foxitrot
mylan wrote:Je to rozdelené do dvoch skriptov, pretože skript pre google mapy využívajú aj ľudia mimo CZ/SK a mapy.cz by im boli na nič.
Náhodou! Keď mapy.cz začali ponúkať šikmé fotky, bola to pecka!
foxitrot
Waze Global Champs
Waze Global Champs
Posts: 7263
Has thanked: 1282 times
Been thanked: 649 times
Send a message
...with the good old crashing :roll: Symbian 2.1.99.114 (on N-E52), while
trying to get used to the good new asocial Android 4.xx.0.yyy (on OP-X March-me-Low).