diff options
| author | Étienne Loks <etienne.loks@peacefrogs.net> | 2012-11-09 02:04:43 +0100 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2012-11-09 02:04:43 +0100 |
| commit | f42ce3ec509df1eeb058a6a92d296e46b384d625 (patch) | |
| tree | 7ab1ca5cb922fa2ccf778c96c8bb5ea357c38f79 | |
| parent | 56f0e3d0d1193098af68479c1d17e3a839b45314 (diff) | |
| download | Chimère-f42ce3ec509df1eeb058a6a92d296e46b384d625.tar.bz2 Chimère-f42ce3ec509df1eeb058a6a92d296e46b384d625.zip | |
JS: Change default controls on map (old one is more complete but too problematic)
| -rw-r--r-- | chimere/static/chimere/js/jquery.chimere.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chimere/static/chimere/js/jquery.chimere.js b/chimere/static/chimere/js/jquery.chimere.js index e7cb384..4bf9b7b 100644 --- a/chimere/static/chimere/js/jquery.chimere.js +++ b/chimere/static/chimere/js/jquery.chimere.js @@ -82,12 +82,14 @@ OpenLayers.Layer.MapQuestOSM = OpenLayers.Class(OpenLayers.Layer.XYZ, { // if leave to false every click on the map hide the pop-up explicit_popup_hide: false, controls:[new OpenLayers.Control.Navigation(), - new OpenLayers.Control.SimplePanZoom(), + new OpenLayers.Control.PanPanel(), + new OpenLayers.Control.ZoomPanel(), new OpenLayers.Control.ScaleLine()], popupClass: OpenLayers.Popup.FramedCloud, popupContentFull: false, // if true the detail is inside the popup category_accordion: true, // category opening behave like an accordion maxResolution: 156543.0399, + numZoomLevels:16, units: 'm', projection: new OpenLayers.Projection('EPSG:4326'), theme: null, |
