Can some one please let me know if it is possible to have the Map Overview with Fixed extend and none zoom in or out functions? I know this was not possible on v.3 but how about v3.8?
-
If you want a static overview map, perhaps you could just embed it as an image?john gravois– john gravois2014年03月29日 21:46:51 +00:00Commented Mar 29, 2014 at 21:46
1 Answer 1
EDITED:
You can disable navigation for the entire map like so:
map.disableMapNavigation();
But the problem with disabling map navigation for the MapOverview when you create your overview map, the code is binding all these events from the main map (zoom-end, pan...). I don't there is a clear way to identify these events so that you could disconnect them. If ESRI would provide the source code for their API, it would make figuring it out easier...
//Create Map
var map = esri.Map(...)
//Create Dijit
var overviewMapDijit = new esri.dijit.OverviewMap({
map: map, //references main map
attachTo: "bottom-right",
color:" #D84E13",
opacity: .40
});
overviewMapDijit.startup(); //overview map does not exist until you show it..
overviewMapDijit.show();
//Here's what we would need to do...
//Find all events that were connected to main map
//Disconnect these events
//Disable map navigation for overviewMapDijit.overviewMap
So, for my final answer...
No, this cannot be done easily and is not a default part of the API. Hopefully they will release their source code, because simple things like this are a pain with their API.
-
Does this help answer your question at all?jOshT– jOshT2014年03月28日 20:36:26 +00:00Commented Mar 28, 2014 at 20:36
Explore related questions
See similar questions with these tags.