Select to view content in your preferred language

esri.config.defaults.map.slider in 3.3

911
2
Jump to solution
01-14-2013 01:13 PM
ScottSteigerwald
New Contributor III
I just switched from 3.2 to 3.3 and it does not appear that the settings for esri.config.defaults.map.slider are being honored anymore?

I need the slider to be lower on the map and used esri.config.defaults.map.slider to set the top location. This was fine in 3.2, but in 3.3, it is not working.  Anyone else have this issue?
0 Kudos
1 Solution

Accepted Solutions
KellyHutchins
Esri Frequent Contributor
The esri.config.defaults.map.slider options are no longer supported at version 3.3. Instead you can use the map constructor sliderPosition and sliderOrientation options:


      function init() {         var map = new esri.Map("map",{           basemap:"topo",           center:[-122.45,37.75], //long, lat           zoom:13,           sliderStyle:"small",           sliderOrientation:"horizontal",           sliderPosition: "bottom-left"         });       } 


And here's a bit of css that could refine the top location:
      .esriLargeSlider{         top: 400px;       }

Link to api reference:
http://help.arcgis.com/en/webapi/javascript/arcgis/jsapi/#Map/MapConst

View solution in original post

0 Kudos
2 Replies
KellyHutchins
Esri Frequent Contributor
The esri.config.defaults.map.slider options are no longer supported at version 3.3. Instead you can use the map constructor sliderPosition and sliderOrientation options:


      function init() {         var map = new esri.Map("map",{           basemap:"topo",           center:[-122.45,37.75], //long, lat           zoom:13,           sliderStyle:"small",           sliderOrientation:"horizontal",           sliderPosition: "bottom-left"         });       } 


And here's a bit of css that could refine the top location:
      .esriLargeSlider{         top: 400px;       }

Link to api reference:
http://help.arcgis.com/en/webapi/javascript/arcgis/jsapi/#Map/MapConst
0 Kudos
ScottSteigerwald
New Contributor III
Thanks, that works! It's easy to miss things like this when they've been around for a while.
0 Kudos