POST
|
I have tried that as well but so far it hasn't lit the feature. Are you doing in the Map Widget? Did you set it up in the widget.tsx?
... View more
02-15-2024
10:21 AM
|
0
|
1
|
282
|
POST
|
Did you use a Web Map or a Web Scene for the Map Source?
... View more
02-15-2024
10:14 AM
|
0
|
3
|
288
|
POST
|
Hi, I am trying to customize the Exp Building Map Widget with a on click event to highlight and select the features I click on at that spot for instance both the building and parcel at that point. The issue I am having is it will not highlight and I haven't been able to figure out why. Here is my snippet of code in the widget.tsx file: jmv.view.on("click", function(event) { if(jmv) { let myLayers: String = "" if (identifyLayers.trim() == "") { myLayers = bufferLayers; } else { myLayers = identifyLayers + "," + bufferLayers } const myClickableLayers = myLayers.split(',') const mapLyrVws = jmv.jimuLayerViews const dsObj = DataSourceManager.getInstance() for (const key in mapLyrVws) { const ds = mapLyrVws[key].id const lyrVw = mapLyrVws[key] if (myClickableLayers.includes(lyrVw.layer.title)) { //if (lyrVw.layer.popupEnabled) { let query = lyrVw.layer.createQuery(); query.geometry = jmv.view.toMap(event); query.returnGeometry = true; query.outFields = [ "*" ] lyrVw.layer.queryFeatures(query).then(function(results) { if (lyrVw.layer.title == "Buildings") { // || lyrVw.layer.title == "Parcel QL" || lyrVw.layer.title == "PARCEL No Buildings") { alert(lyrVw.type) alert(results.features[0].attributes.OBJECTID) lyrVw.selectFeatureById(results.features[0].attributes.OBJECTID) const myExtent = results.features[0].geometry.extent.expand(extent_level) jmv.view.goTo(myExtent) } }) //} } } } });
... View more
02-14-2024
01:23 PM
|
0
|
5
|
347
|
DOC
|
I wanted to let you know I figured it out. The esri/task items had to be pointed to esri/rest, plus one of the methods changed the parameter for setting url for geometry server. It is working now.
... View more
08-23-2022
02:50 PM
|
0
|
0
|
4491
|
DOC
|
Robert did you notice that ExB 1.9 upgrade seems to have caused an issue with you Measurement Tool. It is just giving the ESRI 3 blue lines when I run it.
... View more
08-22-2022
10:49 AM
|
0
|
0
|
4519
|
Online Status |
Offline
|
Date Last Visited |
03-07-2024
04:28 AM
|