Disable panning with apple trackpad/ magic mouse on a story map

944
1
01-17-2014 05:26 AM
KevinGuay
New Contributor
I created a story map using ESRI's template and embedded it in my website. I work on a mac and use a magic mouse. When I scroll over the ESRI story map, instead of continuing to scroll down the page, it starts to pan the map. I am worried that this is going to confuse some of my viewers.

Q: Is there a way to disable pan (via scrolling on the mouse) on the ESRI story maps. I still want to be able to pan using click and drag, but not with the mouse's scroll function.

Thank You!
-Kevin
0 Kudos
1 Reply
GregoryL_Azou
Occasional Contributor III
This is a general behavior of the Javascript API. It has been described in this blog post.

If you are using the downloadable version of a template, you should be able to change it (I haven't tested) using an undocumented option.

Find the createMap call and make sure to add the line in red:

arcgisUtils.createMap(webmapId, "mainMap", {
 mapOptions: {
  slider: true,
  ...
  showAttribution: true,
  smartNavigation: false
 },
 ...
}
0 Kudos