随笔分类 - Arcgis server
摘要:legacy:var featureLayer = new esri.layers.FeatureLayer( //血淋淋的教训啊,传统style与AMD style在新建对象上的不同; "http://localhost:8399/rest/services/MyTest2/MapServer/1", { infoTemplate : infoTemplate, outFields : [ "*" ] });AMD:var featureLayer = new FeatureLayer( "http://lo...
阅读全文
摘要:The JavaScript doing the actual work is the same in both the older style of modules with dojo.declare and the newer AMD style.The big differences between legacy and AMD modules are how they are defined (dojo.declare() vs. define()) and how they are loaded (dojo.require() vs. require()).legacy:View C
阅读全文
摘要:1.先在官网上ArcGISAPIforJavaScriptdownloadpage(需要有账户)下载最新的API;2.将下载好的压缩包解压;3.将解压的离线包拷贝到Tomcat应用程序目录webapps下(如我的机器地址为D:\Tomcat\apache-tomcat-5.5.28\webapps\arcgis_js_api);4.用记事本打开D:\Tomcat\apache-tomcat-5.5.28\webapps\arcgis_js_api\library\2.7\jsapi\js\esri目录下的esri.js文件,找到[HOSTNAME_AND_PATH_TO_JSAPI]并将其改为
阅读全文

浙公网安备 33010602011771号