Select to view content in your preferred language

Zoom Slider position

3228
2
Jump to solution
09-13-2013 11:45 PM
ChiranjeeviGK
Regular Contributor
Hi

can we move the zoom slider to different location like bottom right corner?

can you help me how?
0 Kudos
1 Solution

Accepted Solutions
GregKnight
Deactivated User
Hi,

Once you've defined the slider style in your js, you can take care of positioning and styling through css.

The css class names for the large and small sliders are .esriLargeSlider and .esriSimpleSlider respectively.

Here's a sample:

https://developers.arcgis.com/en/javascript/jssamples/mapconfig_pos_size.html

Hope this helps,
Greg

View solution in original post

0 Kudos
2 Replies
GaneshSolai_Sambandam
Regular Contributor
Yes, you can position zoom slider


Try the syntax below
var map = new esri.Map("map", {
          showAttribution: false,
          sliderPosition: "top-right",
          sliderStyle: "large"
        });


if you put it in the bottom of your webmap page, then, try "bottom-right" or "bottom-left"

Also, you can change the sliderStyle: from "large" to "small"
0 Kudos
GregKnight
Deactivated User
Hi,

Once you've defined the slider style in your js, you can take care of positioning and styling through css.

The css class names for the large and small sliders are .esriLargeSlider and .esriSimpleSlider respectively.

Here's a sample:

https://developers.arcgis.com/en/javascript/jssamples/mapconfig_pos_size.html

Hope this helps,
Greg
0 Kudos