yenbao1340 / gmaps-utility-library-dev

Automatically exported from code.google.com/p/gmaps-utility-library-dev
0 stars 0 forks source link

KeyDragZoom initially doesn't work on aspx loead in iframe #191

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. create an aspx with google maps API V3 and KeyDragZoom for v3, same as 
example HTML for it, nothing special
2. load it => ctrl + drag zooming works fine
3. create a second aspx, add an iframe with source previous aspx
when this is loaded, ctrl + drag doesn't do anything?
4. on the first page with googlemaps: add a submit button
5. load second page again and press submit: iframe is refreshed and now 
the dragging does work?

another way to get it to work:
4. make sure the Iframe is so small you receive scrollbars
5. initialy dragging fails
6. move the scrolls
7. no dragging works fine

What is the expected output? What do you see instead?
I expct the aspx to load in the iframe and the dragging to work without a 
submit

What version of the product are you using? On what operating system?
IE8, API v3 and KeyDragZoom for V3
Windows XP Prof SP3 and all updates available

Original issue reported on code.google.com by Dekim...@gmail.com on 11 Feb 2010 at 8:46

GoogleCodeExporter commented 8 years ago
I think this might be a focus issue, rather than aspx or submit. Basically, you 
will
have to somehow give the iframe focus before it will capture mouse/key events 
from
parent page. Scroll it or submit the page did just that. 
Also, there is a v3 project, v3 related issue probably should be posted there. 

Original comment by nian...@gmail.com on 11 Feb 2010 at 11:20

GoogleCodeExporter commented 8 years ago
Hi, thanks for your reply.
After experimenting with this I think you're right.
If i put the control in focus at load time:

var ctrl = document.GetElementById('map');
ctrl.focus()

dragzoom is indeed possible. 

However I'm missing still a clue: how is it possible that one could drag the 
position or even zoom using the slider control, and still the map didn't have 
the 
focus? Just after klicking in the iframe (next to the map) or the sumbit button 
or 
clicking the maptype control, the zoomdragging works.

Original comment by Dekim...@gmail.com on 12 Feb 2010 at 7:05

GoogleCodeExporter commented 8 years ago
Issue 190 has been merged into this issue.

Original comment by garylitt...@gmail.com on 7 Dec 2010 at 11:50