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– Brad Nesom2015年02月18日 19:12:59 +00:00Commented 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.Branco– Branco2015年02月18日 20:18:04 +00:00Commented 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?tomfumb– tomfumb2015年02月19日 16:33:48 +00:00Commented Feb 19, 2015 at 16:33
1 Answer 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.
Explore related questions
See similar questions with these tags.