PDA

View Full Version : dialogbox and google maps



rizla
7 Dec 2008, 1:01 PM
Hi to all
I've a little problem with a dialog.
I have used a table ,when I click on a row on this table I see a dialog with inside a google maps ...the probles is that the maps is not always fully loaded when a click on the table...where is the problem?
I think that the problem in the response of the maps server...How i can resolve this problem ?
Many thanks
:D

P.S. I've used the google maps library for GWT

rizla
8 Dec 2008, 11:50 AM
up :(

LINEMAN78
8 Dec 2008, 2:09 PM
I have had this problem for a long time with the google maps api... Is it only loading the upper left corner of the map? If so, there is not a whole lot you can do. I have seen this problem when you put a google map in a layered div. One solution I found worked one time was to remove the collapsable overview map from the bottom right corner. Most times though I was SOL. I have had some more success since switching to OpenLayers with a Yahoo base map. Google sometimes works on OL.

rizla
9 Dec 2008, 11:16 AM
excuse me for the question...but where is the collapsable overview map from the bottom right corner??!!

LINEMAN78
9 Dec 2008, 11:54 AM
Here it is...

rizla
9 Dec 2008, 2:55 PM
in my maps I don't have this little panel..but only the map....bau in my dialog I've other two panel...anche like the maps this panels are sometimes yes..sometimes no loaded...there is a solution for my problem ???!
many many thanks :|

LINEMAN78
9 Dec 2008, 3:03 PM
I have had some success in calling layout on the container when using my own OpenLayers wrapper library. This may have something to do with the way I have implemented this, but I don't think there is any simple solution for your problem. You might want to look at 2 different things, either the UX library for the GWT-Ext library, which uses another flexable mapping engine, or writing a wrapper for OpenLayers (there is a wrapper out there, but is in the early alpha stages and is very limited in capability).

rizla
9 Dec 2008, 3:09 PM
there is an OpenLayer version for GWT and I can use use google maps wieho OL ?
Many thank's :D

...can I obtain a result like the attached file with OpenLayer ?!?!


I've used a Window but I've the same result...sometimes yes..sometimes no...
:)

LINEMAN78
9 Dec 2008, 4:31 PM
You should be able to... You can use many base layers including google maps with openlayers. Some of the graphics are a bit different, but you should be able to make it look close.

rizla
10 Dec 2008, 2:01 AM
LineMan,
you can a paste a little fragment of code that show a google maps with OL ?!?!
thank in advance :D

LINEMAN78
10 Dec 2008, 9:43 AM
You can use the majority of this example, but this is for use with your own mapping server, so instead of using the WMS layer, there should be a google layer object.

http://geoserver.org/display/GEOSDOC/Google+Web+Toolkit+(GWT),+OpenLayers+and+GeoServer (http://geoserver.org/display/GEOSDOC/Google+Web+Toolkit+%28GWT%29,+OpenLayers+and+GeoServer)

Here is the library

http://sourceforge.net/projects/gwt-openlayers