[英]How to Import GeoJSON data in ArcGIS Javascript maps
Can anyone suggest a methodology to import GeoJson data in ArcGIS Javascript maps? 谁能建议一种在ArcGIS Javascript地图中导入GeoJson数据的方法? I have muiltipoint data in the format recommended by GEoJSON.org ( http://geojson.org/geojson-spec.html#id5 ).
我有GEoJSON.org( http://geojson.org/geojson-spec.html#id5 )建议的格式的多点数据。
Here is the sample data in my JSON page. 这是我的JSON页面中的示例数据。 (The data has to be accessed using URL)
(必须使用URL访问数据)
{ "type": "MultiPoint", "coordinates": [ [29.626459,-93.034705],[29.626459,-93.034705],[29.626459,-93.034705],[28.786341,-93.045368],[28.786341,-93.045368],[28.786341,-93.045368],[28.786341,-93.045368],[28.786341,-93.045368]]} {“ type”:“ MultiPoint”,“ coordinates”:[[29.626459,-93.034705],[29.626459,-93.034705],[29.626459,-93.034705],[28.786341,-93.045368],[28.786341,-93.045368],[ 28.786341,-93.045368],[28.786341,-93.045368],[28.786341,-93.045368]]}
Have a look at this repository. 看看这个仓库。 It is a custom esri layer type that loads GeoJSON into a esri graphics layer.
这是一种自定义esri图层类型,可将GeoJSON加载到esri图形图层中。 Should do the trick for you.
应该为您解决问题。
https://github.com/Esri/geojson-layer-js https://github.com/Esri/geojson-layer-js
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.