Topic: Google maps API and iframes (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=30995" title="Pages that link to Topic: Google maps API and iframes (Page 1 of 1)" rel="nofollow" >Topic: Google maps API and iframes <span class="small">(Page 1 of 1)</span>\

 
racerX
Nervous Wreck (II) Inmate

From: Portland Oregon
Insane since: Jun 2006

posted posted 05-08-2009 12:26

I made a script that opens a new iframe on the page using the current map from the original google map in the state you have it when you click. I had to dig a little bit to find the methods to pass the variables onto the new iframe and I'm wondering if I've done anything illegal? I read the agreement and I'm not sure if simply doing a search like this is wrong.
I wrote in the address bar
javascript:for(i in map)document.write(i+":"+map[i]+"<br>")
so I could hope to find how get the zoom portion of settings. the coordinates were pretty obvious with getCenter() so I just needed to find the right function that sends the value. I found it, but i'm afraid to violate the user agreement and face any fines or anything. I have no clue what I'd be in for.

Is there anywhere I can go to find answers about this? Can I use a function available in the script to open a new element using data currently being used and all done client side?

any advice will be priceless.

poi
Paranoid (IV) Inmate

From: Norway
Insane since: Jun 2002

posted posted 05-08-2009 13:17

Why don't you simply use the Google Maps API

reisio
Paranoid (IV) Inmate

From: Florida
Insane since: Mar 2005

posted posted 05-08-2009 14:38

Why you gotta hate on my lovely iframes?

racerX
Nervous Wreck (II) Inmate

From: Portland Oregon
Insane since: Jun 2006

posted posted 05-08-2009 17:39
quote:

poi said:

Why don't you simply use the Google Maps API


I am using that. I had to dig into the code to find the function name to make it work in the iframe. I'm asking if I violated their user agreement by doing so? I can't seem to find an answer to what would constitute a violation of the terms. I don't wanna get sued over a script so i'm trying to find out if I can use it.

here's a picture of it working. it uses the current map and opens it in a new iframe so you can keep looking at the map without having to go back if you want to see something again.



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu