From: Edwin C. <com...@gm...> - 2010-02-16 12:10:39
|
Hi Andrew, Are you referring to the PanZoom control and alike that are put by default on the map by OpenLayers? The defaults in GWT-OL should be the same as in OL, so please report it when you find differences. In the GWT-OL examples the default controls are removed from the map with mapOptions.removeDefaultControls(). If you do not call removeDefaultControls on the mapOptions passed to the map then the default controls should appear. The reason to have the removeDefaultControls option ar because a) In GWT-OL it is not as easy as in Javascript to remove these default controls from the map. b) Some default controls appear not to be used much in practice. For instance, for PanZoom people often use the PanZoomBar in applications, but it is not clear from the OL documentation that both will be added if you add PanZoomBar. Also, controls that are not visible, but set by default, such as the Attribution control, you probably want to put on the map when you need them. Greetings, Edwin On 16 February 2010 07:20, Andrew Hughes <ahh...@gm...> wrote: > Hi Guys, > If you look at OpenLayers maps with no defaults (like control's e.t.c) they > give you some sensible ones. This is assumed or expected behavior. It's > implied by the examples and online documentation. Behavior is consistent and > I feel appropriate. GWT-OpenLayers doesn't seem to have the same defaults, > which makes the assumptions, examples, documentation in OpenLayers no longer > consistent. > Is this something I am only experiencing? > --AH > ------------------------------------------------------------------------------ > SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, > Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW > http://p.sf.net/sfu/solaris-dev2dev > _______________________________________________ > Gwt-openlayers-users mailing list > Gwt...@li... > https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users > > |