Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question

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 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

Your Answer


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.