POST
|
Yes, I expected that. So here is NaN value I found. Is there a way to filter this down.. I did something like this. featuresArray = featuresArray.filter((obj)=> !isNaN(obj.geometry.latitude || obj.geometry.longitude))
... View more
10-17-2023
02:31 PM
|
0
|
1
|
392
|
POST
|
Ok, I have just changed the id to a diff field and it loads just one point, that too with a mismatch of spatial reference. Any recommendations on this?
... View more
10-17-2023
02:16 PM
|
0
|
1
|
401
|
POST
|
No errors, code runs fine but layer doesnt display (points dont show up). The title displays in the map options, but points do not show up. Unfortunately, this is part of a big code base, cant upload the codebase
... View more
10-17-2023
01:56 PM
|
0
|
2
|
406
|
POST
|
Well I tried that, but it didnt work as well. Here is sample of the featuresArray.
... View more
10-17-2023
01:50 PM
|
0
|
0
|
407
|
POST
|
Tried importing it, but still didnt work. const featureLayer = await this.esri.FeatureLayer({
source:featuresArray,
objectIdField:'id',
title:'TestLayer'
});
const simpleMarker = await this.esri.SimpleMarkerSymbol({
color: 'blue',
size: 25,
outline: {
width: 0.5,
color: 'darkblue'
}
});
const simpleRenderer = await this.esri.SimpleRenderer({
symbol: simpleMarker
});
featureLayer.renderer = simpleRenderer;
this.mvs.addToMap(featureLayer);
... View more
10-17-2023
01:43 PM
|
0
|
1
|
612
|
POST
|
Tried that, but didnt work. The graphics do not load. I am wondering if there is a need to set symbol like this and even it didnt work. featuresArray.push({
geometry:{
longitude: node.getAttribute('lng'),
latitude: node.getAttribute('lat'),
type:'point'
},
symbol: {
type: "simple-marker", // autocasts as new SimpleMarkerSymbol()
color: "blue",
size: 10,
outline: { // autocasts as new SimpleLineSymbol()
width: 0.5,
color: "darkblue"
}
},
attributes:{
id:parseInt(node.getAttribute('id'),10)
}
});
... View more
10-17-2023
10:57 AM
|
0
|
5
|
633
|
POST
|
Thank you, that worked ok to resolve the error. However the points do not display or load on the webmap.
... View more
10-17-2023
09:00 AM
|
0
|
7
|
644
|
POST
|
I am trying to create a featureLayer from an XML response where lat,lon are stored in a featureArray. Instead of creating this as point graphic, I would like to create them as a pointFeatureLayer. However, when I do that I get an error saying table feature layer cant be displayed. I am creating the featureLayer from featuresArray by loading it as FeatureLayerCollection containing lat,lon and id. Here is the snapshot of the code, I have used. fetch(url,{
method: 'GET',
mode:'cors',
}).then((response) => response.text())
.then(str => new window.DOMParser().parseFromString(str, 'text/xml'))
.then(async data => {
const nodes = data.getElementsByTagName('tower');
const featuresArray = [];
for (const node of nodes){
featuresArray.push({
longitude: node.getAttribute('lng'),
latitude: node.getAttribute('lat'),
id:node.getAttribute('id')
});
}
console.log(featuresArray);
const featureLayer = await this.esri.FeatureLayer({
source:featuresArray,
objectIdField:'id',
title:'TestLayer'
});
this.mvs.addToMap(featureLayer);
... View more
10-16-2023
02:43 PM
|
0
|
19
|
1151
|
POST
|
I have tried installing the patch on the server, but the same error still pesists. The map-image layers which I am trying to print are only accessible internally or via VPN. They dont have any credentials associated with them. Is there a way to fix this issue? The webmap prints fine if I switch off the map-image layers and just print the basemap.
... View more
07-25-2023
08:02 AM
|
0
|
0
|
1906
|
POST
|
Hi Owen, For example, if we don't have access to servers. Can we place these exported dynamic HTML infographics on DropBox/Box/Google Drive and get a shareable link from them in order to use them in story maps? Also, are these infographics interactive after we integrate them into our Story Maps or just static images? I have tried the same but somehow it didnt work and it keeps on loading forever and says "refused to connect". Would really appreciate if you could help me with this. Thank you.
... View more
03-11-2019
04:24 PM
|
0
|
1
|
993
|
POST
|
Thank you Curtis. But I see we can assign the raster, the popups from our Point Layer. I have also tried to generate a Fishnet in ArcGIS Pro along with the point layer which are centroids of that fishnet Now I have used a spatial join so as to bring the attributes of each point to its corresponding cell/square. Now when I publish this resultant fishnet into AGOL and assign their attributes to raster, it worked and showed up. But I am not sure if this approach is correct or not.
... View more
03-10-2019
01:17 AM
|
1
|
0
|
604
|
POST
|
I am attempting to make a raster IDW based heat layer from a point feature layer based on weight. The point feature layer that I have looks like this. This feature layer has a field named "Total Score" based on which I perform IDW interpolation and generate a raster heat layer which looks like this. The resampling technique that I used here to display raster is Bilinear Interpolation. Now I published this layer to my AGOL account as a Hosted Tile Layer. I would like to configure a popup for this layer which shows the attributes of the point feature layer which we have used earlier for which I have followed the procedure of "Enable Popups" and selected the point feature layer. Now I can see that the popups only for some raster pixels where the earlier points were located like this But if I click anywhere in between the grid points (marked in black above), no attributes show up since it isn't configured as popups. It simply shows "No Information Available" So my question here "If I am only using the heat layer, what can I do in order to make a pop-up appear which will take the nearest point popup to display if we click anywhere inside the grid or square (not exactly on the points, but when I click anywhere in a pixel or square it should look for nearest point for which popups are already configured in the pixel/ square and display it)
... View more
03-08-2019
10:02 PM
|
0
|
2
|
862
|
POST
|
Hi Gilberto, Is there a way to organize and group layers with the layerlist widget.
... View more
03-07-2019
05:10 PM
|
0
|
0
|
3811
|
Title | Kudos | Posted |
---|---|---|
1 | 03-10-2019 01:17 AM |
Online Status |
Offline
|
Date Last Visited |
11-16-2023
09:01 PM
|