spatialReference: Object latestWkid: 27700 wkid: 27700 __proto__: Object updating: false width: 1680 wrapAround180: fal
spatialReference: Objectwkid: 27700 __proto__: Object updating: false width: 1435 wrapAround180: false
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 ) {
var overviewMapDijit = new OverviewMap({ map: map, expandFactor: 2, visible: true, height: 230, width: 230 });
Uncaught TypeError: Cannot read property 'wkid' of undefined
function(dom, domAttr, array,Color, parser, esriConfig,Map,Graphic,GeometryService,BufferParameters,Draw,SimpleMarkerSymbol,SimpleLineSymbol,SimpleFillSymbol)
require(["esri.map"], function(Map) { var map = new Map(); });
require(["esri.map"], function(Map) { var map = new esri.map(); });
<script> require(["esri/map"], function(Map) { ... }); </script>
function(dom, domAttr, array, Color, parser, esriConfig, Map, Graphic, GeometryService, BufferParameters, Draw, SimpleMarkerSymbol, SimpleLineSymbol, SimpleFillSymbol)
I agree this is going to be a bumpy transition. I have several projects written a couple years ago, it's not like I have the time to go back and rewrite everything I've done in the past. I think there should be samples in both styles, so we can see the before and after and get the hang of the differences . That API reference is good about showing both, but the samples are a mixed bag. I'd hate to see every sample move to AMD because I need to see both to know where and how to change my older code.
Hi GIS folks,I am really confused with the legacy code vs AMD code. Although, I switched to AMD style of coding in my application and some of the sample/example codes in the ARCGIS javascript api are still in legacy code, because of which I am struggling to run my application as most of the time i end up getting errors. can anyone recommend which style of coding should we follow with v3.6 api.RegardsGanesh
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.