Add zoom slider to footer

1103
4
Jump to solution
10-12-2016 10:12 AM
BrianFoley1
New Contributor II

I'm trying to add a zoom slider to a footer section and can't seem to get it to work.  I created this jsfiddle :

https://jsfiddle.net/befoley/xuhm1ph4/6/ .  Any ideas ?

0 Kudos
1 Solution

Accepted Solutions
KenBuja
MVP Esteemed Contributor

The first issue is that you left out "ContentPane" in your function arguments. It needs to be put between BorderContainer and HorizontalSlider. The data on the map was not showing up due to a "Cross-Origin Request Blocked" error.

Edit fiddle - JSFiddle 

View solution in original post

4 Replies
KenBuja
MVP Esteemed Contributor

The first issue is that you left out "ContentPane" in your function arguments. It needs to be put between BorderContainer and HorizontalSlider. The data on the map was not showing up due to a "Cross-Origin Request Blocked" error.

Edit fiddle - JSFiddle 

BrianFoley1
New Contributor II

Thanks Ken, exactly what I was looing for.  How could you tell that it was a Cross-Origin Request Blocked  ?

0 Kudos
KenBuja
MVP Esteemed Contributor

That was showing up in the browser console. This is an important tool to use when developing.

0 Kudos
BrianFoley1
New Contributor II

Ken, how do I get the slider to actually zoom-in/zoom-out ?

0 Kudos