帖子
|
它是工作的意图现在与图层。queryRelatedFeatures contentSpecies = function(feature) {var contentSpecies = "";objectID = feature.graphic.attributes.OBJECTID;var speciesSpecs = {outFields: ["OBJECTID", "Species", "Notes", "Status", "Known_elevation_range", "Habitat_Description", "Link_to_More_Information"], relationshipId: 0, objectIds: [OBJECTID]} speciesLayer.queryRelatedFeatures(speciesSpecs) .then(function (rslts) {var features = rslts[OBJECTID].features;features.forEach(函数(ftr) {var t = ftr.attributes;var物种= t.物种;contentSpecies + = " <跨类=“大胆”title =“物种”> < b > <字体大小= ' 3 ' > <跨类=“大写”>“+物种+”< / span > < / font > < / b > < / span > < br > ";var range = t.Known_elevation_range;contentSpecies += "已知海拔范围:" +范围+ "
";var habitat = t.Habitat_Description; contentSpecies += "Habitat: " + habitat + " "; var url = t.Link_to_More_Information; contentSpecies += "More Info: Link "; }) var thetitle = contentTitle(feature); mapView.popup.open({ title: "Sensitive Amphibian Species " + thetitle, content: contentSpecies, outFields: ["*"], visibleElements: {featureNaviagtion: true, closeButton: true} }) }) } Thanks @ReneRubalcava ...查看更多
08-22-202201:46点
|
0
|
0
|
75
|
帖子
|
我现在看到它从主功能层返回字段,而不是相关的功能。我看到的查询url是一个弹出功能。它没有达到触发相关特性代码行的地步。
...查看更多
08-22-202241我
|
0
|
0
|
78
|
帖子
|
雷内,我两种方法都试过了。既不工作。当我尝试使用图层时。queryRelatedFeatures我什么也没有得到。现在当我检查所有的网络流量时,外场是一些人口普查领域,谁知道来自哪里?检查它。https://webmaps.geology.utah.gov/arcgis/rest/services/Wetlands/Wetland_Dependent_Species/MapServer/1/query?f=json&objectIds=27&outFields=COLOR4,COUNTYNBR,ENTITYNBR,ENTITYYR,FIPS,FIPS_STR,GlobalID,NAME,OBJECTID,POP_CURRESTIMATE,POP_LASTCENSUS,STATEPLANE,Shape,Shape_Area,Shape_Length&outSR=102100&returnGeometry=false&spatialRel=esriSpatialRelIntersects&where=1=1这些不是我的领域,而不是我在外场中指定的字段,当我使outfields =["*"]时,它不会改变4.22查询url是这个https://webmaps.geology.utah.gov/arcgis/rest/services/Wetlands/Wetland_Dependent_Species/MapServer/1/queryRelatedRecords?f=json&objectIds=27&outFields=OBJECTID,Species,Notes,Status,Known_elevation_range,Habitat_Description,Link_to_More_Information&relationshipId=0&returnGeometry=false完全随机!我认为……
...查看更多
08-19-202202:49点
|
0
|
1
|
99
|
帖子
|
我正在将一个应用程序从4.22升级到4.24,到目前为止进展顺利,但这个自定义内容功能来填充弹出窗口现在将无法工作。它停在第17行。我错过了什么?function contentSpecies(feature) {console.log(feature);var contentSpecies = "";objectID = feature.graphic.attributes.OBJECTID;console.log (objectID);var queryURL = "https://webmaps.com/Species/MapServer/1";var speciesSpecs = new RelationshipQuery({outFields: ["OBJECTID", "Species", "Notes", "Status", "Known_elevation_range", "Habitat_Description", "Link_to_More_Information"], //returnGeometry: true, relationshipId: 0, objectIds: [OBJECTID]});//var idArray = []; console.log(speciesSpecs); query.executeRelationshipQuery(queryURL, speciesSpecs).then(function (rslts) { console.log(rslts); var features = rslts[objectID].features; features.forEach(function(ftr) { var t = ftr.attributes; var species = t.Species; contentSpecies += "" + species + "
"; var range = t.Known_elevation_range; contentSpecies += "Known Elevation Range: " + range + " "; var habitat = t.Habitat_Description; contentSpecies += "Habitat: " + habitat + " "; var url = t.Link_to_More_Information; contentSpecies += "More Info: Link "; }) .catch((error) => { console.log("species query error", error) }); }); console.log("Open") var thetitle = contentTitle(feature); mapView.popup.open({ title: "Sensitive Amphibian Species " + thetitle, content: contentSpecies, outFields: ["*"], visibleElements: {featureNaviagtion: true, closeButton: true} }) } ...查看更多
08-18-2022上午下午
|
0
|
4
|
127
|
帖子
|
这并没有解决问题。
...查看更多
01-20-202201:49点
|
0
|
0
|
1025
|
帖子
|
本周四我们计划升级arcgis服务器10.8.1到10.9.1,这会影响你的测试吗?
...查看更多
01-18-202201:48点
|
0
|
0
|
1032
|
帖子
|
那是肯定的。这是api中的bug还是层中的bug ?松鸦
...查看更多
01-13-202201:21点
|
0
|
1
|
1055
|
帖子
|
谢谢Rene,这里有一个应用程序的链接。它可能需要一些平移和玩湿地条件层上得到错误。
...查看更多
01-12-202206:38我
|
0
|
0
|
1082
|
帖子
|
我在控制台得到以下错误,在我正在更新的应用程序上。得到错误100152 libtess.js:13它发生在我平移或缩放后点击一个多边形拉出一个弹出。几次似乎进入这些错误的无限循环,我不得不关闭标签和重新加载应用程序。任何帮助将不胜感激。
...查看更多
01-11-202203:27点
|
0
|
9
|
1116
|
帖子
|
谢谢你约翰!它仍然没有呈现,但它现在是“active”,而不是默认的“selected”选项。那么一切都可以了。
...查看更多
08-04-202102:12点
|
1
|
0
|
760
|
标题 | 荣誉 | 发布 |
---|---|---|
1 | 08-04-202108:48我 | |
1 | 08-04-202102:12点 | |
1 | 11-09-2017上午10:10 | |
1 | 06-29-2021上午08:28 | |
1 | 04-20-2016十二12点 |
在线状态 |
离线
|
最后到访日期 |
08-22-202205:07点
|