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.

  • i think it is going to be a function of the display width converted to map distance. – Brad Nesom Feb 18 '15 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. – Branco Feb 18 '15 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? – tomfumb Feb 19 '15 at 16:33
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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.