ArcGIS API for JavaScript 需要在DoJo中加载的资源
来源:互联网 发布:网络用语棒子什么意思 编辑:程序博客网 时间:2024/06/10 05:36
The amount of Dojo you use when you work with the ArcGIS API for JavaScript is up to you, but at a minimum you'll need to use several common functions:
- dojo.require: Similar to the <script> include tag on an HTML page. It imports resources into your JavaScript page.
// AMD
require(["esri/map", ... ], function(Map, ... ){ ... });
// legacy
dojo.require("esri.map");For the JavaScript API, the most commonly imported resources are:
Resource Use for: esri.mapMap, geometry, graphics, and symbolsesri.layers.agsdynamicArcGISDynamicMapServiceLayeresri.layers.agstiledArcGISTiledMapServiceLayeresri.tasks.findFind taskesri.tasks.geometryGeometry taskesri.tasks.gpGeoprocessing taskesri.tasks.identifyIdentify taskesri.tasks.locatorLocator taskesri.tasks.queryQuery taskesri.toolbars.drawDrawesri.toolbars.navigationNavigation - dojo.ready (or dojo.addOnLoad): Similar to <body onload="">. It registers an initializing block after the page has finished loading.
// legacy
dojo.ready(init);
// AMD
require(["dojo/ready"], function(ready){
ready(function(){
// This function won't run until the DOM has loaded and other modules that register have run.
});
}); - dojo.connect: Similar to Element.addEventListener and Element.attachEvent JavaScript functions. It registers a listener to listen to specific events on an Object or element on the page and returns results from a function.
// legacy
dojo.connect(myMap, "onLoad", myLoadHandler);
// AMD
require(["esri/map", "dojo/on"], function(Map, on) {
// ...
on(myMap, "load", callback);
}); - dojo.byId: Similar to the document.getElementById(id) JavaScript function. The function searches and returns the first HTML element with the argument ID.
dojo.byId("myInputField").value = myMap.id;
- dojo array extras: refer to the Arrays Made Easy tutorial on dojotoolkit.org
When writing your ArcGIS JavaScript applications, you can take advantage of the full Dojo toolkit, which includes buttons, grids, tree views, charts, and other widgets. The toolkit is divided into three parts:
Core - Essential functions like those listed above
Dijit - Themeable widgets such as trees, menus, and buttons
DojoX- Extension projects in various stages of development, such as graphics, grids, and charts
As stated previously, you can start building ArcGIS API for JavaScripts apps with minimal dojo knowledge. But, the more dojo you know, the more you'll be able to accomplish. Dojotoolkit.org's tutorials and documentation are a fantastic place to start.
- ArcGIS API for JavaScript 需要在DoJo中加载的资源
- 通过ARCGIS for Javascript api 加载数据 ,并显示在dojo的FilteringSelect上
- 关于ArcGIS API for JavaScript与Dojo
- 关于ArcGIS API for JavaScript与Dojo
- 关于ArcGIS API for JavaScript与Dojo
- 关于ArcGIS API for JavaScript与Dojo
- arcgis api for javascript需要登录
- arcgis api for javascript graphiclayer dojo框架下画图图层的显示与清除
- ArcGIS api for javascript加载shapefile
- ArcGIS API for JavaScript加载天地图
- ArcGis for javascript api 在eclipse中搭建运行环境
- 在Eclipse中搭建ArcGIS API for JavaScript 开发环境
- acrgis api for javaScript需要对Dojo了解多少?
- arcgis api for javascript 调用天地图,并加载数据arcgis server 发布的数据
- ArcGIS API for javascript中搜索框的使用问题
- ArcGIS API for JavaScript
- 对于ArcGIS API for Javascript的配置
- ArcGIS API for Javascript proxy的配置
- 最长单调递增子序列——动态规划
- 使用pkg-config升级和切换glib库
- Core Graphics图形变换
- pythonanywhere下django无法匹配url问题解决
- 【Android UI】SlidingTabLayout使用小结
- ArcGIS API for JavaScript 需要在DoJo中加载的资源
- 聚类算法实践(1)——层次、K-means聚类
- JOGL测试
- bind query.c
- text
- 项目
- 《编程珠玑》阅读小记(3) — 数据决定数据结构
- C Primer Plus 第三章
- seo优化如何写出高质量的文章