3

I am looking for some advice on how to approach a problem I am having. I am looking to build an ArcGIS webmap using JavaScript and HTML 5 that reacts to a user panning on two separate, synchronous maps.

Modest Maps provides an excellent example of Loading Two Maps and Synching Their Panning that helps visualize what I need to do. However, I need to accomplish the Loading Two Maps and Synching Their Panning with ArcMap products.

The Overview dijit in Arcmap seems to be capturing the essence of what I am trying accomplishing. However, the overview dijit in the widget overviewmap seems to react rather then pan synchronously.

The dijit css feeds into this map and can be used as a resource if needed. I couldn't find anything in it that would accomplish synchronous panning.

I am open to any ArcGIS suite methodology to accomplish the same as the Modest Maps look and feel.

PolyGeo
65.5k29 gold badges115 silver badges350 bronze badges
asked Jan 7, 2014 at 14:16

1 Answer 1

2

You could try something like this:

esriConfig.defaults.map.panDuration = 0;
dojo.connect(map1, "onPan", onPan);
function onPan(extent, delta) {
 map2.setExtent(extent);
}

This will add an event onPan of the first map and update the second map to the same extent.

answered Nov 1, 2016 at 22:20

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.