WN

WN (https://www.wn.se/forum/index.php)
-   Serversidans teknologier (https://www.wn.se/forum/forumdisplay.php?f=4)
-   -   behöver hjälp med google maps... (https://www.wn.se/forum/showthread.php?t=1060074)

naak2803 2013-12-06 01:27

behöver hjälp med google maps...
 
hej,

jag har en liten JS kod, som jag vill ändra på lite.
Det jag vill ha gjort är att ta bort möjligheten att zooma in, kunna klicka på street view, och växla mellan olika kartvyer....

så långt har jag kommit, men kommer inte längre.

http://jsfiddle.net/NMWRV/2/

någon WNare som har lust att modifiera koden så jag kan få den och funka som jag vill...

Tack i förhand.

Reconsider 2013-12-06 03:14

Någon vettig anledning till att du kör v2? Kanske dags att kliva upp till v3 så du får fler valmöjligheter.. ;)
Tror du kan stänga av street view & forcera zoom när du initierar kartan med v3.

tartareandesire 2013-12-06 12:30

Du kan välja precis vilka kontroller och vilken zoom du vill ha på kartan. Här är allt du behöver till v3 (som du bör byta till):

https://developers.google.com/maps/d...ript/reference

allstars 2013-12-06 13:54

v3 är lättare än v2 imo.

rauthing 2013-12-09 11:36

Då de skickat ut följande mail för en tid sedan är det nog en god idé att gå över till V3

Citat:

Dear Google Maps API Developer,

We are contacting you because your email is associated with the Google Maps JavaScript API v2 key being used for the following domains:

ipnr.se
As you may be aware, JavaScript Maps API v2 was scheduled for shutdown on May 19, 2013. After listening to feedback from developers we decided to extend the deprecation timeline by six months, to November 19, 2013 to allow more time for migration to v3 of the API.

On November 19, 2013 we will deploy a JavaScript wrapper that attempts to automagically turn remaining v2 maps into v3 maps. Though we expect this wrapper to work for most simple maps, we cannot guarantee that your maps will continue to function. We therefore highly recommend that you migrate to v3 before November 19. The good news is that Google Maps JavaScript API v3 is more robust and feature rich than v2, and we’ve written a guide to assist the migration.

Sincerely,

Google Maps API Developer Relations


Alla tider är GMT +2. Klockan är nu 18:38.

Programvara från: vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Svensk översättning av: Anders Pettersson