esri

arcgis模块化开发之vue.js

匿名 (未验证) 提交于 2019-12-03 00:22:01
项目环境是用 vue-cli 搭建的vue项目;在项目中使用vue 配合 arcgis开发;加载的地图为天地图 1.1 这里不在废话,如果会用vue;就会用 vue-cli ;直接用命令 vue init webpack 生成就好了. 1.2 安装 esri-loader ;这个也是arcgis官方开发的,用命令 npm install --save esri-loader 安装就行了;详细文档参考 这里 1.3 在vue的script标签中用import的方式引入esri-loader : import esriLoader from 'esri-loader'; 1.4 然后加载 css js 等资源: esriLoader.loadScript ({ // 加载js url: 'http://jsapi.thinkgis.cn/dojo/dojo.js' }); // 加载css esriLoader.loadCss ( 'http://jsapi.thinkgis.cn/esri/css/esri.css' ); // 加载模块 esriLoader.loadModules (modules.modulesList) .then ( this .loading) .then (obj => { this .initMap (obj); }) .catch ((err) =>

ESRI竞赛 CityEngine许可授权配置方法

匿名 (未验证) 提交于 2019-12-03 00:22:01
打开该文件的方式改为记事本,User Information部分需要我们填写,注意,要使用英文,填写,具体内容可参考M姐发给大家的这一份指导 3.点击立即授权 勾选 我需要在许可服务器上授权许可 要授权的产品 Esri CityEngine 下一步 勾选 立即使用Internet 通过ESRI进行授权 4.下面弹出的页面都是我们之前在记事本中填写的信息,不过要注意一些,地址需要我们填写上 5.在最后,CityEngineAdvanced 填写我们获取的许可号,许可数我填写了我们的组员数量4,CityEngine Basic 我就空着了,然后下一步,我就成功了。 Emememm.若有不当之处,还请指正。 文章来源: ESRI竞赛 CityEngine许可授权配置方法

arcgis api for javascript 使用GraphicsLayer/Draw/Edit/Menu对客户端图层进行操作

匿名 (未验证) 提交于 2019-12-02 21:53:52
引入js.arcgis/jQuery <link rel="stylesheet" href="https://js.arcgis.com/3.24/dijit/themes/claro/claro.css"> <link rel="stylesheet" href="https://js.arcgis.com/3.24/esri/css/esri.css"> <script src="https://js.arcgis.com/3.24/"></script> <script src="https://code.jquery.com/jquery-3.3.1.min.js"></script> 地图容器 <div id="map"> <button id="addbtn">addGeometry</button> <button id="clearbtn">clearGeometry</button> </div> 引入模块 "esri/map", "esri/graphic", "esri/symbols/SimpleMarkerSymbol", "esri/symbols/SimpleFillSymbol", "esri/geometry/Point", "esri/geometry/Polygon", "esri/InfoTemplate", "esri/toolbars

[ArcGIS API for JavaScript 4.8] Sample Code-Get Started-layers简介

匿名 (未验证) 提交于 2019-12-02 20:37:20
1 <! doctype html > 2 < html > 3 < head > 4 < meta charset ="utf-8" > 5 <!-- 移动端优化 --> 6 < meta name ="viewport" content ="initial-scale=1,maximum-scale=1,user-scalable=no" > 7 < title > Into to layers </ title > 8 9 <!-- JS API的引入 --> 10 < link rel ="stylesheet" href ="https://js.arcgis.com/4.8/esri/css/main.css" > 11 < script src ="https://js.arcgis.com/4.8/" ></ script > 12 13 < script > 14 15 </ script > 16 17 <!-- 设置样式,正确显示地图 --> 18 < style > 19 html,body,#viewDiv { 20 padding : 0 ; 21 margin : 0 ; 22 height : 100% ; 23 width : 100% ; 24 } 25 </ style > 26 </ head > 27 28 < body > 29 <

2017第十五届esri用户大会观感(一)——WAB敏捷开发

大兔子大兔子 提交于 2019-12-02 09:47:48
2017年10月24日和25日,在北京国际会议中心召开了第十五届esri用户大会。本次会议的主题围绕着slogan的理念提出的"Applying The Science of Where",一共有6大主题报告,6大技术论坛,10大行业论坛,业界称为GIS届的饕餮盛宴。从Enabling a Smarter World到The Science of Where,大概是走过风风雨雨,看过世界万物最终又返璞归真回到原点去回答,我是谁?我从哪里来?我到哪里去? 空间贯穿着我们的一生,从子宫到坟墓,人依托着空间而存在,而地理与GIS正是用来理解我们所生存的地球空间的语言。 笔者很荣幸地成为了本届esri用户大会体验区志愿者之一,所负责的产品是esri推出的0代码敏捷开发的Web App Builder for ArcGIS。所以从观感来讲,就先来介绍下Web App Builder for ArcGIS产品吧。 1 Web App Builder for ArcGIS简介 ArcGIS WebApp Builder 是Esri在2014年4月份推出的一种直观的所见即所得式 (WYSIWYG) 应用程序,可用于构建 2D 和 3D web 应用程序,而无需编写一行代码。它所包括的强大工具可用来配置功能完备的 HTML 应用程序。添加地图和工具时,您可以在应用程序中看到这些地图和工具并立即使用。

Convert latitude and longitude into esri arcGIS MapPoint

徘徊边缘 提交于 2019-12-01 05:43:54
I am having trouble in converting the latitude and longitude values into android esri arcGIS map Point. Here's my code to get latitude and longitude values from GPS coordinates: LocationManager lm; String towers; double lat; double longi; TextView txt; lm = (LocationManager) getSystemService(Context.LOCATION_SERVICE); Criteria crit = new Criteria(); towers = lm.getBestProvider(crit, false); Location location = lm.getLastKnownLocation(towers); if(location != null) { lat = location.getLatitude(); longi = location.getLongitude(); } now I have the latitude and longitude values. Now all I need is

Convert latitude and longitude into esri arcGIS MapPoint

丶灬走出姿态 提交于 2019-12-01 02:31:14
问题 I am having trouble in converting the latitude and longitude values into android esri arcGIS map Point. Here's my code to get latitude and longitude values from GPS coordinates: LocationManager lm; String towers; double lat; double longi; TextView txt; lm = (LocationManager) getSystemService(Context.LOCATION_SERVICE); Criteria crit = new Criteria(); towers = lm.getBestProvider(crit, false); Location location = lm.getLastKnownLocation(towers); if(location != null) { lat = location.getLatitude(

arcgis api for js 3.X版本加载矢量json文件,并缩放至图层

百般思念 提交于 2019-11-30 15:46:49
esriLoader.loadModules( [ 'esri/tasks/FeatureSet', 'esri/layers/FeatureLayer', 'esri/geometry/Point', 'esri/geometry/Polygon', 'esri/geometry/Extent', 'esri/dijit/PopupTemplate', 'esri/dijit/LayerSwipe' ], options).then( ([FeatureSet, FeatureLayer, Point, Polygon, Extent, PopupTemplate, LayerSwipe]) => {         //json地址 const jsonUrl = 'http://Json/' + vectorInfo.label + '.json' axios.get(jsonUrl, { headers: {}, emulateJSON: true }).then((res) => { const layerJson = res.data const layerDefinition = { 'geometryType': layerJson.geometryType, 'fields': layerJson.fields } var featureSet = new

使用ClusterLayer进行分类聚合(聚簇)

萝らか妹 提交于 2019-11-28 19:32:45
使用ClusterLayer进行分类聚合(聚簇)很简单,就是根据有几个类型的数据就在map上添加几次ClusterLayer,区别主要是在ClusterLayer的id和data属性上。具体代码如下: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"> <title>Cluster</title> <link rel="stylesheet" href="https://js.arcgis.com/3.19/dijit/themes/tundra/tundra.css"> <link rel="stylesheet" href="https://js.arcgis.com/3.19/esri/css/esri.css"> <style> html, body { height: 100%; width: 100%; margin: 0; padding: 0; } #map{ margin: 0; padding: 0; } </style> <script> // helpful for understanding dojoConfig.packages vs.

ESRI : Failed to parse source map

余生颓废 提交于 2019-11-28 17:20:56
I am getting this error in the Google chrome developer console. Failed to parse SourceMap: http://localhost:15132/Scripts/_External/igniteui/css/themes/infragistics/infragistics.theme.css.map How do I fix it? Chrome recently added support for source maps in the developer tools. If you go under settings on the chrome developer toolbar you can see the following two options: If you disable those two options, and refresh the browser, it should no longer ask for source maps. Further to just simply turning off Source Maps in Chrome - i've done a little digging and found that using Web Essentials to