Veel

Probleem kohustusliku ClusterLayer.js laadimisel dojo abil

Probleem kohustusliku ClusterLayer.js laadimisel dojo abil


Mul on selline js -fail ja olen selle salvestanudClusterLayer.jskõikides kataloogides nagu

juur -> ClusterLayer.js juur -> lisad/ClusterLayer.js juur -> js/lisad/ClusterLayer.js juur -> js/ClusterLayer.js

ja fail on nagu

nõuda (["esri/map", "dojo/_base/array", "esri/layer/ArcGISDynamicMapServiceLayer", "esri/geometry/Geometry", "esri/geometry/Point", "esri/geometry/webMercatorUtils", " lisad/ClusterLayer "," esri/graphic "," esri/symbol/SimpleMarkerSymbol "," esri/symbol/SimpleLineSymbol "," esri/symbol/SimpleFillSymbol "," esri/Color "," esri/InfoTemplate "," esri/ dijit/HomeButton "," esri/dijit/OverviewMap "," dojo/parser "," esri/layer/GraphicsLayer "," esri/SpatialReference "," esri/dijit/PopupTemplate "," dijit/layout/BorderContainer "," dijit/layout/ContentPane "," dojo/domReady! "], funktsioon (Kaart, arrayUtils, ArcGISDynamicMapServiceLayer, Geometry, Point, webMercatorUtils, ClusterLayer, Graphic, SimpleMarkerSymbol, SimpleLineSymbol, SimpleFillSymer, ColorMap, Ülevaade , SpatialReference, PopupTemplate)

aga ikka tuleb viga

Kas saate palun mulle teada anda, miks see nii on?


Peate Dojole ütlema, kust seda leidalisad/ClusterLayer. Sa teed seda kaududojoConfig. Pange see klastrite näidisest skriptisildi ette, mis viitab saidile js.arcgis.com, et tuua sisse JS API:


Vaata videot: The Dojo Toolkit