Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Is their any way to add same openlayers map control to dojox map like navigation,panel,panzoom

share|improve this question
add comment

1 Answer 1

You can use dojox.geo.openlayers. Any examples here. OL control can be added on map the following way:

require(["dojo/ready", "dojox/geo/openlayers/Map", "dojo/_base/array"], function(ready, Map, array) {
      ready(function() {
          dojoMap = new Map("map");
          map = dojoMap.getOLMap();
          map.addControl(new OpenLayers.Control.MousePosition())
....
share|improve this answer
    
but how to add controls...like in openlayers OpenLayers.Control.Navigation() OpenLayers.Control.MousePosition(), OpenLayers.Control.KeyboardDefaults(), OpenLayers.Control.PanZoomBar()....instead of these control what to use in dojox.geo.openlayer –  user9125 Jul 26 '12 at 10:19
    
I've added example of adding control on map. –  drnextgis Jul 26 '12 at 18:33
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.