[OpenLayers-Users] Is it possible to move controls off the map to other location of asp page?

Andreas Hocevar ahocevar at opengeo.org
Fri Aug 20 02:49:58 EDT 2010


Hi,

you can construct your controls with a div option configured, which will then be used to render the control into. See http://openlayers.org/dev/examples/editingtoolbar-outside.html for an example on how to do this with the EditingToolbar control.

Regards,
Andreas.

On Aug 19, 2010, at 23:58 , Planet)x wrote:

> 
> I am just beginning with openlayers. I have a VB project with the map and a
> control panel and everything is working fine. I am just wondering since I
> add the controls directly to the map with map.addControl("name") are
> controls always going to be stuck to the map? What I am trying to do is
> display the control on a different div other than the map one but not sure
> if this is possible.. just want to get the scalebar control to move to the
> bottom right of my asp page but still have the map in a seperate div. Any
> suggestion appreciated!
> -- 
> View this message in context: http://osgeo-org.1803224.n2.nabble.com/Is-it-possible-to-move-controls-off-the-map-to-other-location-of-asp-page-tp5442354p5442354.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users



-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.




More information about the Users mailing list