Drag Scroll (Pan Effect)

1330
9
01-09-2012 07:54 AM
jeffpalus
New Contributor III
Hello,
I want to add cool pan effect to my maps (like in bing & google maps).
example: http://mootools.net/demos/?demo=Drag.Scroll
anyone know how to do it with javascript api?

more example: http://candrews.net/blog/2010/10/introducing-sprymap/
0 Kudos
9 Replies
StephenLead
Regular Contributor III
Jeff,

Can you provide more details of what the cool effect should be, and how it should differ from the out-of-the-box ArcGIS Server JavaScript API panning?

Cheers,
Steve
0 Kudos
jeffpalus
New Contributor III
You can see an example on Google Maps or Bing Maps sites.
When you drag the map, the map moves smoothly.
When you release the left mouse button the map does not stop straight, but stops by the power of dragging the map you made.
I think it could be really nice if it will be at the Javascript API.
Thanks,
Jeff
0 Kudos
TiagoRibeiro
Occasional Contributor
You can see an example on Google Maps or Bing Maps sites.
When you drag the map, the map moves smoothly.
When you release the left mouse button the map does not stop straight, but stops by the power of dragging the map you made.
I think it could be really nice if it will be at the Javascript API.
Thanks,
Jeff

You can accomplish that changing the esri.config.defaults.map.panDuration and esri.config.defaults.map.panRate configuration properties.
See the sample here: http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/mapconfig_smoothpan.html
Hope it helps
0 Kudos
jeffpalus
New Contributor III
The example you sent refers to the buttons that  located on the sides of the map that performs a smooth map movement.
I am looking for a smooth movement by dragging the map with the mouse.
Thanks,
Jeff
0 Kudos
TiagoRibeiro
Occasional Contributor
The example you sent refers to the buttons that  located on the sides of the map that performs a smooth map movement.
I am looking for a smooth movement by dragging the map with the mouse.
Thanks,
Jeff

Yea your right, I didn't saw that.
One thing you can look at is the onPan, onPanStart and onPanEnd events of the map object (http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/map.htm#onPan)... but I don't see an easy way to do that.
Good luck.
0 Kudos
jeffpalus
New Contributor III
I hope ESRI implement it in the next version of the javascrip api. its realy cool effect.;)
0 Kudos
jeffpalus
New Contributor III
Any news about this effects?
0 Kudos
derekswingley1
Frequent Contributor
We have not implemented this effect. An official enhancement request logged via support would be the best way to push us to do something like this.

We did implement a new map navigation method called superpan if you use a mac. More info in the help:  http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp/intro_navigation.htm
0 Kudos
JoeJan
by
New Contributor
ESRI, any news about this feature?
it will be at 3.3 version?
0 Kudos