From: Edwin C. <com...@gm...> - 2010-02-08 20:14:10
|
Hi Andrew, I wonder when the updateSize method should be called. As far as I know it should work to let the OpenLayers div be 100% by 100% of the parent div, since the size of the div is requested from the div when it is needed. It seems that the updateSize method is a work-around for when you set a fixed width and height, while in reality the map is not fixed, but the parent div can be expanded and the div containing the map should resize to its parent. However, maybe I am missing out on something there. If you have a good use case for the XYZ class then please add it to Trac. You can create tickets without having to log in. It seems the XYZ class is a low-level thing intended for use in specific OpenLayers classes, such as the OSM layer. I see that it wrongly states above the XYZ constructor that it is the OSM layer constructor. We should possible wrap both the XYZ and the OSM layer, with the OSM layer extending XYZ. For OpenStreetMap things are a bit unclear to me, because there is also the TMS layer, which is wrapped by GWT-OL by someone who used OpenStreetMap. I am not sure which layer is more up to date XYZ/OSM or TMS. It seems that one of them is obsolete. The 'osm-layer.html' example in OpenLayers 2.8 includes OSM data by means of a WMS. The 'tms.html' does have a TMS layer, but is not what I expected to see. Andrew, if you know more about this, please let me know. Greetings, Edwin On 8 February 2010 05:54, Andrew Hughes <ahh...@gm...> wrote: > Hi Guys, > I have a few things I would like to add/wrap. > Map.updateSize() > http://dev.openlayers.org/releases/OpenLayers-2.8/doc/apidocs/files/OpenLayers/Map-js.html#OpenLayers.Map.updateSize > Layer.XYZ > http://dev.openlayers.org/releases/OpenLayers-2.8/doc/apidocs/files/OpenLayers/Layer/XYZ-js.html > > How would you like me to proceed? Do we raise issues or what first e.t.c??? > Cheers. > > ------------------------------------------------------------------------------ > The Planet: dedicated and managed hosting, cloud storage, colocation > Stay online with enterprise data centers and the best network in the > business > Choose flexible plans and management services without long-term contracts > Personal 24x7 support from experience hosting pros just a phone call away. > http://p.sf.net/sfu/theplanet-com > _______________________________________________ > Gwt-openlayers-users mailing list > Gwt...@li... > https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users > > |