If you're still using a mouse, it's probably not the ideal experience. Anyone care to agree or disagree?
I humbly disagree with swingley's comment above . . .
Bing Maps, Google Maps, Google Earth, and other very successful map apps use kinetic/glide panning on moused setups as well as mobile/touch devices.
Google Earth and Maps, and to some degree Bing, are quite successful at being platforms people use for maps but having kinetic panning is only one (and probably a minor one at that) of the many reasons for their success.
Developers are a different story as that is a pretty picky audience.
We'll look forward to it in 3.4 (please) with hopes of squeezing it in for 3.3 (double please).
Ideally, it "just feels right" and isn't directly noticed by users
Are people still interested in this? I was able to throw together a rough approach that seems to be working fairly well for me. If anyone is interested let me know, I will probably clean it up and throw up on github in a few weeks. Should work for 3.3 and 3.4.
Thank You for sharing. I used params displacementMouseMultiplier: 15 and deceleration: 0.85 for best effect.I found one issue: if KineticPanning module is created after map is loaded - it works incorrectly (if two mouse drags are done one after another, first panning effect is stopped and second is starting from previous extent).
Any plans to get this working for IE 8 or any idea why it doesn't? Sadly, it is the current default browser installed on machines throughout my company. Works great on IE 9 though!
I noticed that map parameter should not be passed for mouseEvents and touchEvents, because they generate map click events and this can cause problems (for eg. draw toolbar is connecting on map click event to handle draw ending).Also it fails when trying to zoom at panning time. Zooming begins from first pan movement point.
Wow. +100 internets to you, Ryan for this. So much better than the default panning behavior. I also need to support pre IE-9 so I'll wait on the sidelines until you get that bug worked out. Great job!
Is the live demo no longer working? I can't seem to access it.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.