- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我一直在尝试实现 NSW 为 DEPBaseMap 提供的 javascript API。该图层也可以添加到 ArcGIS Online 上并且可以正常使用,但是使用 JS API 做同样的事情,没有解决 map 。我想我的 javascript 中的代码遗漏了一些东西,因为包括新南威尔士州规划门户在内的其他功能层对我很有用。
var map = new Map({
basemap: "topo-vector"
});
var view = new MapView({
container: "viewDiv",
map: map,
center: [-118.27928, 34.13558],
zoom: 18
});
var baseLayer= new FeatureLayer({
url: "https://mapprod1.environment.nsw.gov.au/arcgis/rest/services/Basemap/DPEBasemap/MapServer"
});
map.add(baseLayer);
预期的输出应该是这样的 Expected outcome hyperlink
最佳答案
上面的url指向一个map service .因此,与其将其添加为 FeatureLayer
,不如使用 TileLayer
一切都像在 ArcGIS Online Map Viewer 中一样工作。
var baseLayer= new TileLayer({
url: "https://mapprod1.environment.nsw.gov.au/arcgis/rest/services/Basemap/OEHBasemapNPWSHillshade/MapServer"
});
map.add(baseLayer);
有关使用最新 ArcGIS API for JavaScript 的现场演示,请参阅以下 CodePen: https://codepen.io/arnofiva/pen/21dd5c26558b140fde4622862516cff4
关于javascript - 为什么要素层不解析 NSW MapServer 为 javascript API 4.1.1 提供的 DEBBaseMap?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57051402/
我正在使用 mapserver 创建一个将与 google map api 一起显示的 map 。我遇到了性能问题。 我的 map 都是 shapefile 格式。 我运行测试以获得时间来渲染 map
我想说服某些客户端使用MapServer和OpenLayers。任何人都可以建议有吸引力的网站来炫耀这种可能性! 客户将对以下方面印象深刻: density map (也称为热图,彩色阴影网格覆盖,轮
我是 UMN Mapserver 的新手并开始学习,到目前为止我只是在我的本地主机上进行试验。也许我想得太多了,但如果我想让我的应用程序在互联网上“活着”呢?我相信这并不一定意味着我必须在家里架设服务
我想提高我的应用程序的性能,该应用程序使用带有 TileCache 的 OpenLayers、Google map 和 MapServer 显示专题 map (http://tilecache.org
我正在使用 cgi-bin 并显示一张 map ,其中包含来自 Postgres 数据库的一些数据。 但是,我需要引入一个输入,用户可以在其中选择一个日期,这个日期将从数据库中过滤结果。 我有输入并通
我知道在 php 和 python 中有通过 mapscript 的 mapserver API。 但我想在现有的 C/C++ 程序中使用 mapserver。 我如何在我的代码中使用 mapserv
我是 map 服务器新手。我已经完成了示例应用程序.. MAP NAME "Hello_World" SIZE 400 300 IMAGECOLOR 249 245 186
我一直在尝试实现 NSW 为 DEPBaseMap 提供的 javascript API。该图层也可以添加到 ArcGIS Online 上并且可以正常使用,但是使用 JS API 做同样的事情,没有
我是 GIS 新手,我想将 qgis 文件导出到 mapserver map 文件。 但该选项在我的 Qgis 1.3.0 mimas 中不可用。 怎么做才能得到它? 请帮忙。 最佳答案 这个工具应该
我是一名优秀的程序员,十分优秀!