From: AbdElhadi <abd...@gm...> - 2009-07-06 21:47:41
|
Hi all, I was able to get a Google map to show up but not without many issues. All I had to do is to add the google maps api script call to the host html and add the following to my code: // create a google maps layer GoogleOptions ggLayerOptions = new GoogleOptions(); ggLayerOptions.setSphericalMercator(false); Google ggLayer = new Google("Google Base", ggLayerOptions); myMap.addLayer(ggLayer); The issues I am getting are as follow: 1- First, on page load, the GoogleMaps layer seems to cover a small area of the map extent until there is a resize event then it takes the same dimensions as the MapWidget. 2- GM doesn't respond to pan/move events when you use setSphericalMercator(true). Also, why is there such a function since all Google Maps are in Spherical Mercator? I am still playing with this and will report on more as I find them. Thanks, -- Abdelhadi |
From: Edwin C. <com...@gm...> - 2009-07-07 11:44:11
|
Hi AbdelHadi, Thanks for giving feedback on using the Google Maps layer. I really appreciate that you share your experiences. Issue 1 you are describing is something that I have seen before for WMS layers on Firefox, but only in a Ext-GWT app (strangely enough it does not happen in the showcase). Up to now I have not been able to track down the problem. This is one to drill down on when I have some time, because it is a nasty problem. Issue 2 could have something to do with the isFixed property of EventPane, but that is purely upon glancing the API docs. Anyway, I added EventPaneOptions and GoogleOptions now extend this class. The function setSphericalMercator is a setter for the sphericalMercator property of the Goolge Layer in OL. It also strikes me as strange to have such a property on the Google Layer itself, as it affects the entire map, but it looks like a convenience feature of OL to set a property on the Google Layer in order to make vector layers and the like work. Greetings, Edwin 2009/7/6 AbdElhadi <abd...@gm...> > Hi all, > > I was able to get a Google map to show up but not without many issues. All > I had to do is to add the google maps api script call to the host html and > add the following to my code: > > // create a google maps layer > GoogleOptions ggLayerOptions = new GoogleOptions(); > ggLayerOptions.setSphericalMercator(false); > Google ggLayer = new Google("Google Base", ggLayerOptions); > myMap.addLayer(ggLayer); > > The issues I am getting are as follow: > > 1- First, on page load, the GoogleMaps layer seems to cover a small area of > the map extent until there is a resize event then it takes the same > dimensions as the MapWidget. > 2- GM doesn't respond to pan/move events when you use > setSphericalMercator(true). Also, why is there such a function since all > Google Maps are in Spherical Mercator? > > I am still playing with this and will report on more as I find them. > > Thanks, > -- > Abdelhadi > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Gwt-openlayers-users mailing list > Gwt...@li... > https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users > > |
From: AbdElhadi <abd...@gm...> - 2009-07-07 20:20:13
|
Thanks Edwin. I appreciate it. On Tue, Jul 7, 2009 at 4:00 AM, Edwin Commandeur <com...@gm... > wrote: > Hi AbdelHadi, > > Thanks for giving feedback on using the Google Maps layer. I really > appreciate that you share your experiences. > > Issue 1 you are describing is something that I have seen before for WMS > layers on Firefox, but only in a Ext-GWT app (strangely enough it does not > happen in the showcase). Up to now I have not been able to track down the > problem. This is one to drill down on when I have some time, because it is a > nasty problem. > > Issue 2 could have something to do with the isFixed property of EventPane, > but that is purely upon glancing the API docs. Anyway, I added > EventPaneOptions and GoogleOptions now extend this class. > > The function setSphericalMercator is a setter for the sphericalMercator > property of the Goolge Layer in OL. It also strikes me as strange to have > such a property on the Google Layer itself, as it affects the entire map, > but it looks like a convenience feature of OL to set a property on the > Google Layer in order to make vector layers and the like work. > > Greetings, > Edwin > > 2009/7/6 AbdElhadi <abd...@gm...> > >> Hi all, >> >> I was able to get a Google map to show up but not without many issues. All >> I had to do is to add the google maps api script call to the host html and >> add the following to my code: >> >> // create a google maps layer >> GoogleOptions ggLayerOptions = new GoogleOptions(); >> ggLayerOptions.setSphericalMercator(false); >> Google ggLayer = new Google("Google Base", ggLayerOptions); >> myMap.addLayer(ggLayer); >> >> The issues I am getting are as follow: >> >> 1- First, on page load, the GoogleMaps layer seems to cover a small area >> of the map extent until there is a resize event then it takes the same >> dimensions as the MapWidget. >> 2- GM doesn't respond to pan/move events when you use >> setSphericalMercator(true). Also, why is there such a function since all >> Google Maps are in Spherical Mercator? >> >> I am still playing with this and will report on more as I find them. >> >> Thanks, >> -- >> Abdelhadi >> >> >> ------------------------------------------------------------------------------ >> >> _______________________________________________ >> Gwt-openlayers-users mailing list >> Gwt...@li... >> https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users >> >> > -- Abdelhadi |
From: Edwin C. <com...@gm...> - 2009-07-08 07:36:35
|
Hi Abdelhadi, With respect to issue 1. Do you see that in a plain GWT application? And is it across browsers? We have a problem like you are describing when using Ext-GWT, where WMS layers only load in a small corner of the map, until resize. This happens only in Firefox for us. In Firefox 3.5 the map is completely gone. We do not experience this problems in a plain GWT app and it seems to have something to do with the lifecycle of Ext-GWT components (they only get a size when rendered if I am correct). Greetings, Edwin 2009/7/7 AbdElhadi <abd...@gm...> > Thanks Edwin. I appreciate it. > > > On Tue, Jul 7, 2009 at 4:00 AM, Edwin Commandeur < > com...@gm...> wrote: > >> Hi AbdelHadi, >> >> Thanks for giving feedback on using the Google Maps layer. I really >> appreciate that you share your experiences. >> >> Issue 1 you are describing is something that I have seen before for WMS >> layers on Firefox, but only in a Ext-GWT app (strangely enough it does not >> happen in the showcase). Up to now I have not been able to track down the >> problem. This is one to drill down on when I have some time, because it is a >> nasty problem. >> >> Issue 2 could have something to do with the isFixed property of EventPane, >> but that is purely upon glancing the API docs. Anyway, I added >> EventPaneOptions and GoogleOptions now extend this class. >> >> The function setSphericalMercator is a setter for the sphericalMercator >> property of the Goolge Layer in OL. It also strikes me as strange to have >> such a property on the Google Layer itself, as it affects the entire map, >> but it looks like a convenience feature of OL to set a property on the >> Google Layer in order to make vector layers and the like work. >> >> Greetings, >> Edwin >> >> 2009/7/6 AbdElhadi <abd...@gm...> >> >>> Hi all, >>> >>> I was able to get a Google map to show up but not without many issues. >>> All I had to do is to add the google maps api script call to the host html >>> and add the following to my code: >>> >>> // create a google maps layer >>> GoogleOptions ggLayerOptions = new GoogleOptions(); >>> ggLayerOptions.setSphericalMercator(false); >>> Google ggLayer = new Google("Google Base", ggLayerOptions); >>> myMap.addLayer(ggLayer); >>> >>> The issues I am getting are as follow: >>> >>> 1- First, on page load, the GoogleMaps layer seems to cover a small area >>> of the map extent until there is a resize event then it takes the same >>> dimensions as the MapWidget. >>> 2- GM doesn't respond to pan/move events when you use >>> setSphericalMercator(true). Also, why is there such a function since all >>> Google Maps are in Spherical Mercator? >>> >>> I am still playing with this and will report on more as I find them. >>> >>> Thanks, >>> -- >>> Abdelhadi >>> >>> >>> ------------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> Gwt-openlayers-users mailing list >>> Gwt...@li... >>> https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users >>> >>> >> > > > -- > Abdelhadi > |
From: AbdElhadi <abd...@gm...> - 2009-07-13 03:15:00
|
Hi Edwin, Sorry for taking this long to answer your email. It's a little bit crazy at work lately and I haven't gotten the time to look at this until now. In my previous email, I was refering to the Google maps layer and not any WMS layer. And I tested this in the hosted mode browser, firefox 3.5 and IE6 and it behaves the same in all of them. Plus, I am not using EXT-GWT (YET) But, going back to the wms, playing with the transparency, I came across another issue. It seems that a wms layer has to be set as Baselayer in order for it to be transparent. Otherwise you get no maps. Have you ever encountered this? By looking at both the gwt-openlayers and the Javascript openlayers code (not so confidently since I am still a js newbie), it seems that the setIsBaseLayer does much more than just setting some property to true, which setIsTransparent does. Thanks again, Cheers, -Hadi On Wed, Jul 8, 2009 at 3:36 AM, Edwin Commandeur <com...@gm... > wrote: > Hi Abdelhadi, > > With respect to issue 1. Do you see that in a plain GWT application? And is > it across browsers? > > We have a problem like you are describing when using Ext-GWT, where WMS > layers only load in a small corner of the map, until resize. This happens > only in Firefox for us. In Firefox 3.5 the map is completely gone. We do not > experience this problems in a plain GWT app and it seems to have something > to do with the lifecycle of Ext-GWT components (they only get a size when > rendered if I am correct). > > Greetings, > Edwin > > 2009/7/7 AbdElhadi <abd...@gm...> > > Thanks Edwin. I appreciate it. >> >> >> On Tue, Jul 7, 2009 at 4:00 AM, Edwin Commandeur < >> com...@gm...> wrote: >> >>> Hi AbdelHadi, >>> >>> Thanks for giving feedback on using the Google Maps layer. I really >>> appreciate that you share your experiences. >>> >>> Issue 1 you are describing is something that I have seen before for WMS >>> layers on Firefox, but only in a Ext-GWT app (strangely enough it does not >>> happen in the showcase). Up to now I have not been able to track down the >>> problem. This is one to drill down on when I have some time, because it is a >>> nasty problem. >>> >>> Issue 2 could have something to do with the isFixed property of >>> EventPane, but that is purely upon glancing the API docs. Anyway, I added >>> EventPaneOptions and GoogleOptions now extend this class. >>> >>> The function setSphericalMercator is a setter for the sphericalMercator >>> property of the Goolge Layer in OL. It also strikes me as strange to have >>> such a property on the Google Layer itself, as it affects the entire map, >>> but it looks like a convenience feature of OL to set a property on the >>> Google Layer in order to make vector layers and the like work. >>> >>> Greetings, >>> Edwin >>> >>> 2009/7/6 AbdElhadi <abd...@gm...> >>> >>>> Hi all, >>>> >>>> I was able to get a Google map to show up but not without many issues. >>>> All I had to do is to add the google maps api script call to the host html >>>> and add the following to my code: >>>> >>>> // create a google maps layer >>>> GoogleOptions ggLayerOptions = new GoogleOptions(); >>>> ggLayerOptions.setSphericalMercator(false); >>>> Google ggLayer = new Google("Google Base", ggLayerOptions); >>>> myMap.addLayer(ggLayer); >>>> >>>> The issues I am getting are as follow: >>>> >>>> 1- First, on page load, the GoogleMaps layer seems to cover a small area >>>> of the map extent until there is a resize event then it takes the same >>>> dimensions as the MapWidget. >>>> 2- GM doesn't respond to pan/move events when you use >>>> setSphericalMercator(true). Also, why is there such a function since all >>>> Google Maps are in Spherical Mercator? >>>> >>>> I am still playing with this and will report on more as I find them. >>>> >>>> Thanks, >>>> -- >>>> Abdelhadi >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> >>>> _______________________________________________ >>>> Gwt-openlayers-users mailing list >>>> Gwt...@li... >>>> https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users >>>> >>>> >>> >> >> >> -- >> Abdelhadi >> > > -- Abdelhadi |
From: Edwin C. <com...@gm...> - 2009-07-13 13:35:41
|
Hi Abdelhadi, The problem you encounter with the Google maps layer seem to be quite nasty. Unfortunetaly I am also pretty stacked with work, so I am not sure when I have time to dive into this. With the WMS the any layer can be transparent, as long as the image format you select supports this. The setIsTransparent property is a property on the params object if I am correct and it sets a parameter of the WMS request. In the WMS specification there is a parameter transparent that indicates if places for which no data is avalaible should be rendered transparent (otherwise they are rendered to some default colour of the WMS, probably white or black). Setting isTransparent has nothing to do with the transparency of the complete layer in the OpenLayers map, which you can indicate by a float on the WMS object. BaseLayers are kind of a strange beast. They were needed to support third-party layers like Google Maps, as far as I understand. We are using WMS layers and the baselayer is some transparent fixed image that is not shown in the LayerList. Greetings, Edwin 2009/7/13 AbdElhadi <abd...@gm...> > Hi Edwin, > > Sorry for taking this long to answer your email. It's a little bit crazy at > work lately and I haven't gotten the time to look at this until now. > > In my previous email, I was refering to the Google maps layer and not any > WMS layer. And I tested this in the hosted mode browser, firefox 3.5 and IE6 > and it behaves the same in all of them. Plus, I am not using EXT-GWT (YET) > > But, going back to the wms, playing with the transparency, I came across > another issue. It seems that a wms layer has to be set as Baselayer in order > for it to be transparent. Otherwise you get no maps. Have you ever > encountered this? > By looking at both the gwt-openlayers and the Javascript openlayers code > (not so confidently since I am still a js newbie), it seems that the > setIsBaseLayer does much more than just setting some property to true, which > setIsTransparent does. > > Thanks again, > > Cheers, > -Hadi > > > On Wed, Jul 8, 2009 at 3:36 AM, Edwin Commandeur < > com...@gm...> wrote: > >> Hi Abdelhadi, >> >> With respect to issue 1. Do you see that in a plain GWT application? And >> is it across browsers? >> >> We have a problem like you are describing when using Ext-GWT, where WMS >> layers only load in a small corner of the map, until resize. This happens >> only in Firefox for us. In Firefox 3.5 the map is completely gone. We do not >> experience this problems in a plain GWT app and it seems to have something >> to do with the lifecycle of Ext-GWT components (they only get a size when >> rendered if I am correct). >> >> Greetings, >> Edwin >> >> 2009/7/7 AbdElhadi <abd...@gm...> >> >> Thanks Edwin. I appreciate it. >>> >>> >>> On Tue, Jul 7, 2009 at 4:00 AM, Edwin Commandeur < >>> com...@gm...> wrote: >>> >>>> Hi AbdelHadi, >>>> >>>> Thanks for giving feedback on using the Google Maps layer. I really >>>> appreciate that you share your experiences. >>>> >>>> Issue 1 you are describing is something that I have seen before for WMS >>>> layers on Firefox, but only in a Ext-GWT app (strangely enough it does not >>>> happen in the showcase). Up to now I have not been able to track down the >>>> problem. This is one to drill down on when I have some time, because it is a >>>> nasty problem. >>>> >>>> Issue 2 could have something to do with the isFixed property of >>>> EventPane, but that is purely upon glancing the API docs. Anyway, I added >>>> EventPaneOptions and GoogleOptions now extend this class. >>>> >>>> The function setSphericalMercator is a setter for the sphericalMercator >>>> property of the Goolge Layer in OL. It also strikes me as strange to have >>>> such a property on the Google Layer itself, as it affects the entire map, >>>> but it looks like a convenience feature of OL to set a property on the >>>> Google Layer in order to make vector layers and the like work. >>>> >>>> Greetings, >>>> Edwin >>>> >>>> 2009/7/6 AbdElhadi <abd...@gm...> >>>> >>>>> Hi all, >>>>> >>>>> I was able to get a Google map to show up but not without many issues. >>>>> All I had to do is to add the google maps api script call to the host html >>>>> and add the following to my code: >>>>> >>>>> // create a google maps layer >>>>> GoogleOptions ggLayerOptions = new GoogleOptions(); >>>>> ggLayerOptions.setSphericalMercator(false); >>>>> Google ggLayer = new Google("Google Base", ggLayerOptions); >>>>> myMap.addLayer(ggLayer); >>>>> >>>>> The issues I am getting are as follow: >>>>> >>>>> 1- First, on page load, the GoogleMaps layer seems to cover a small >>>>> area of the map extent until there is a resize event then it takes the same >>>>> dimensions as the MapWidget. >>>>> 2- GM doesn't respond to pan/move events when you use >>>>> setSphericalMercator(true). Also, why is there such a function since all >>>>> Google Maps are in Spherical Mercator? >>>>> >>>>> I am still playing with this and will report on more as I find them. >>>>> >>>>> Thanks, >>>>> -- >>>>> Abdelhadi >>>>> >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> >>>>> _______________________________________________ >>>>> Gwt-openlayers-users mailing list >>>>> Gwt...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users >>>>> >>>>> >>>> >>> >>> >>> -- >>> Abdelhadi >>> >> >> > > > -- > Abdelhadi > |
From: AbdElhadi <abd...@gm...> - 2009-07-13 15:19:07
|
Thanks Edwin! On Mon, Jul 13, 2009 at 9:35 AM, Edwin Commandeur < com...@gm...> wrote: > Hi Abdelhadi, > > The problem you encounter with the Google maps layer seem to be quite > nasty. Unfortunetaly I am also pretty stacked with work, so I am not sure > when I have time to dive into this. > > With the WMS the any layer can be transparent, as long as the image format > you select supports this. The setIsTransparent property is a property on the > params object if I am correct and it sets a parameter of the WMS request. In > the WMS specification there is a parameter transparent that indicates if > places for which no data is avalaible should be rendered transparent > (otherwise they are rendered to some default colour of the WMS, probably > white or black). Setting isTransparent has nothing to do with the > transparency of the complete layer in the OpenLayers map, which you can > indicate by a float on the WMS object. > > BaseLayers are kind of a strange beast. They were needed to support > third-party layers like Google Maps, as far as I understand. We are using > WMS layers and the baselayer is some transparent fixed image that is not > shown in the LayerList. > > Greetings, > Edwin > > 2009/7/13 AbdElhadi <abd...@gm...> > > Hi Edwin, >> >> Sorry for taking this long to answer your email. It's a little bit crazy >> at work lately and I haven't gotten the time to look at this until now. >> >> In my previous email, I was refering to the Google maps layer and not any >> WMS layer. And I tested this in the hosted mode browser, firefox 3.5 and IE6 >> and it behaves the same in all of them. Plus, I am not using EXT-GWT (YET) >> >> But, going back to the wms, playing with the transparency, I came across >> another issue. It seems that a wms layer has to be set as Baselayer in order >> for it to be transparent. Otherwise you get no maps. Have you ever >> encountered this? >> By looking at both the gwt-openlayers and the Javascript openlayers code >> (not so confidently since I am still a js newbie), it seems that the >> setIsBaseLayer does much more than just setting some property to true, which >> setIsTransparent does. >> >> Thanks again, >> >> Cheers, >> -Hadi >> >> >> On Wed, Jul 8, 2009 at 3:36 AM, Edwin Commandeur < >> com...@gm...> wrote: >> >>> Hi Abdelhadi, >>> >>> With respect to issue 1. Do you see that in a plain GWT application? And >>> is it across browsers? >>> >>> We have a problem like you are describing when using Ext-GWT, where WMS >>> layers only load in a small corner of the map, until resize. This happens >>> only in Firefox for us. In Firefox 3.5 the map is completely gone. We do not >>> experience this problems in a plain GWT app and it seems to have something >>> to do with the lifecycle of Ext-GWT components (they only get a size when >>> rendered if I am correct). >>> >>> Greetings, >>> Edwin >>> >>> 2009/7/7 AbdElhadi <abd...@gm...> >>> >>> Thanks Edwin. I appreciate it. >>>> >>>> >>>> On Tue, Jul 7, 2009 at 4:00 AM, Edwin Commandeur < >>>> com...@gm...> wrote: >>>> >>>>> Hi AbdelHadi, >>>>> >>>>> Thanks for giving feedback on using the Google Maps layer. I really >>>>> appreciate that you share your experiences. >>>>> >>>>> Issue 1 you are describing is something that I have seen before for WMS >>>>> layers on Firefox, but only in a Ext-GWT app (strangely enough it does not >>>>> happen in the showcase). Up to now I have not been able to track down the >>>>> problem. This is one to drill down on when I have some time, because it is a >>>>> nasty problem. >>>>> >>>>> Issue 2 could have something to do with the isFixed property of >>>>> EventPane, but that is purely upon glancing the API docs. Anyway, I added >>>>> EventPaneOptions and GoogleOptions now extend this class. >>>>> >>>>> The function setSphericalMercator is a setter for the sphericalMercator >>>>> property of the Goolge Layer in OL. It also strikes me as strange to have >>>>> such a property on the Google Layer itself, as it affects the entire map, >>>>> but it looks like a convenience feature of OL to set a property on the >>>>> Google Layer in order to make vector layers and the like work. >>>>> >>>>> Greetings, >>>>> Edwin >>>>> >>>>> 2009/7/6 AbdElhadi <abd...@gm...> >>>>> >>>>>> Hi all, >>>>>> >>>>>> I was able to get a Google map to show up but not without many issues. >>>>>> All I had to do is to add the google maps api script call to the host html >>>>>> and add the following to my code: >>>>>> >>>>>> // create a google maps layer >>>>>> GoogleOptions ggLayerOptions = new GoogleOptions(); >>>>>> ggLayerOptions.setSphericalMercator(false); >>>>>> Google ggLayer = new Google("Google Base", ggLayerOptions); >>>>>> myMap.addLayer(ggLayer); >>>>>> >>>>>> The issues I am getting are as follow: >>>>>> >>>>>> 1- First, on page load, the GoogleMaps layer seems to cover a small >>>>>> area of the map extent until there is a resize event then it takes the same >>>>>> dimensions as the MapWidget. >>>>>> 2- GM doesn't respond to pan/move events when you use >>>>>> setSphericalMercator(true). Also, why is there such a function since all >>>>>> Google Maps are in Spherical Mercator? >>>>>> >>>>>> I am still playing with this and will report on more as I find them. >>>>>> >>>>>> Thanks, >>>>>> -- >>>>>> Abdelhadi >>>>>> >>>>>> >>>>>> ------------------------------------------------------------------------------ >>>>>> >>>>>> _______________________________________________ >>>>>> Gwt-openlayers-users mailing list >>>>>> Gwt...@li... >>>>>> https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users >>>>>> >>>>>> >>>>> >>>> >>>> >>>> -- >>>> Abdelhadi >>>> >>> >>> >> >> >> -- >> Abdelhadi >> > > -- Abdelhadi |