Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsIFrameIFrameGoogle Map and iframe issueGoogle Map and iframe issue
Previous
 
Next
New Post
9/25/2007 3:14 PM
 

I'm a total amatuer and inherited this site from another developer. What this site does is allows user to click on a point on the google map and it opens a java applet that does this pano thing. Hard to explain, so check out the site here and click on an icon in the map: http://www.aqua.wisc.edu/glct/

So the problem is when you click the "back to map" in the panorama page, it totally refreshes the google map. This is bad, because the user spends a lot of time panning and zooming on the map to find there area of interest and when they return to the map, that have to start the whole map navigation process over again. So my question is, are there any quick fixes for this? Is there some way I could modify the iframe so it doesn't refresh when you return to it? Thanks and let me know if I need to clarify anything.

 
New Post
9/25/2007 5:10 PM
 

Thank you for sharing this beautiful site with us. I tried it on my own and I know what you mean. The current implementation uses a link to the java applet that opens in the same iframe and " history.go(-1)" to go back (which is the same as hitting the back button). The state of the google map gets lost, and with it the selected details.

A fix isn't simple or quick and not an issue of the iframe, it happens also when you use the inner link directly.

Simple (but ugly): Open links in a new window.
Complex (though nice): Instead of just using a simple link you create a postback which takes the current (Client Site State), persists it somewhere and redirects to your applet. The way back would be similar: Retrieving the state, load it to the client...

The complex task is not manageable for amateurs, you will need at least somebody with Google map development experience (best accompied with DNN knowledge).

 
New Post
9/25/2007 5:48 PM
 

My advice would be to read the API documentation. There's a method called savePosition() and another called returnToSavedPosition() in the Google Maps API:

http://www.google.com/apis/maps/documentation/reference.html

If I were looking at this I'd try to add an onclick event on the link in the InfoWiindow to save the current map state. Then I'd check returnToSavedPosition() on the body onload call. I don't think it needs a postback, just a way of saving the current view on the client, which can be recalled as the map is loaded.

You might get some good responses if you post this to the API Group:

http://groups.google.com/group/Google-Maps-API


Steve White
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsIFrameIFrameGoogle Map and iframe issueGoogle Map and iframe issue


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out