1

Using the ESRI javasript API, is there a way to set the distance the map will move when panning? When I fire the map.panUp(), for example, it pans, but about twice as far as I would like it to.

PolyGeo
65.5k29 gold badges115 silver badges350 bronze badges
asked Feb 18, 2015 at 18:11
3
  • i think it is going to be a function of the display width converted to map distance. Commented Feb 18, 2015 at 19:12
  • This is probably more of a pain, but you could download the JS and dig through ESRI's code to see how it is calculated. If you don't like it, then modify it and reference a copy on your webserver instead of ESRI's. Commented Feb 18, 2015 at 20:18
  • Do you also want to change the behaviour of the pan navigation buttons, or just what happens when you call the API's panUp function? Commented Feb 19, 2015 at 16:33

1 Answer 1

1

its not possible to get control over pan behavior in the JSAPI directly, but Ryan Mordoff wrote a really cool plugin and shared it on Github.

i think most people are using it to increase the default multiplier, but you could also use it to achieve the inverse.

see this thread for more info.

answered Feb 19, 2015 at 16:03

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.