Select to view content in your preferred language

dijit.OverviewMap

807
3
07-19-2010 03:46 AM
Marie-GilSeptfonds
Emerging Contributor
Hello every body,

I'm trying to use the overviewMap dijit.
I want to use another map than the principal map in the overviewMap.

Does anyone know how can I do that ?
0 Kudos
3 Replies
Jeffery_E_Dobb_Sr_
Emerging Contributor
I found I had to load my first layer twice otherwise the overview map keeps it from working so try loading your first layer just for overview and then laod your others as usual. P.S. I have found that having the overview map in my application prevents it from running in Firefox. Hopes this helps.

//This first layer loaded supports the overview map so TOPO is loaded twice to
//keep the overview map from gobbling it up.
var TOPO2 = new esri.layers.ArcGISTiledMapServiceLayer("http://gisportal.msl.mt.gov/ArcGIS/rest/services/TOPOServiceCached/MapServer", {id:"TOPO2", opacity:0.5,visible:false});
map.addLayer(TOPO2);
0 Kudos
Marie-GilSeptfonds
Emerging Contributor
Thanks for your answer.
0 Kudos
PauPérez_Puigcerver
Emerging Contributor
Is it possible to make a MapService only for OverviewMap? is it necessary to add service to map?

var capaOverview = new esri.layers.ArcGISTiledMapServiceLayer("http://servidor:8399/arcgis/rest/services/intranet/overview/MapServer",{id:"Overview", visible:true});

var overviewMapDijit = new esri.dijit.OverviewMap({
map: map,
baseLayer:capaOverview,
visible: true,
expandFactor: 10
}, dojo.byId("overviewMapDiv"));
overviewMapDijit.startup();

Thanks

Pau Pérez
0 Kudos