OK - slowly making progress, but I am hitting (what I think) are scope issues.I am creating an overview map. I have the require and attribute all done -require(["esri/map", "esri/layers/ArcGISTiledMapServiceLayer",
"esri/layers/ArcGISDynamicMapServiceLayer",
"esri/geometry/Extent",
"esri/layers/FeatureLayer",
"agsjs/dijit/TOC",
"esri/symbols/SimpleFillSymbol",
"esri/symbols/SimpleLineSymbol",
"dojo/_base/Color",
"esri/dijit/OverviewMap",
"dojo/parser",
"dojo/domReady!"
], function (
Map,
ArcGISTiledMapServiceLayer,
ArcGISDynamicMapServiceLayer,
Extent,
FeatureLayer,
TOC,
SimpleFillSymbol,
SimpleLineSymbol,
Color,
OverviewMap,
parser
) {
then I create the ovmap var overviewMapDijit = new OverviewMap({ map: map,
expandFactor: 2,
visible: true,
height: 230,
width: 230
});
but get Uncaught TypeError: Cannot read property 'wkid' of undefined
As if the map doesn't exist - I have a "var map;" earlier of course - what I have, is, more or less the same as https://developers.arcgis.com/en/javascript/jssamples/widget_overviewmap.html
cheersACM