|
POST
|
Correct. If you are using the FeatureLayer strictly as a source to query, you don't need to add it to the map, and push results into a GraphicsLayer. Only what you query is requested. You could also use the definitionExpression of a FeatureLayer to achieve the same result, it just depends on your workflow.
... View more
08-24-2022
10:34 AM
|
1
|
0
|
4289
|
|
POST
|
Your symbol is a simple-fill, that's for polygons, that's why you couldn't see them. Change it to simple-marker and they'll show up. https://codepen.io/odoe/pen/jOzReRb?editors=1000 You can also accomplish this with a definitionExpression on the FeatureLayer, unless the query in your app is done dynamically, and you need the data for something other than display. You could always update the definitionExpression during runtime too. https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#definitionExpression
... View more
08-24-2022
09:13 AM
|
0
|
3
|
4301
|
|
POST
|
Do you have a repro app? It might be something like the calcite css loading after your variables are defined, but can't really tell without looking at something. Ok, so I don't know. I tried this with a regular app using the npm install and calcite and can't override it. Weird, looks like the built code has the values baked in. You might need to try a specific css target or wrap it in a span or div maybe.
... View more
08-22-2022
11:13 AM
|
1
|
0
|
3240
|
|
POST
|
You can do it via the :root css. :root {
--calcite-label-margin-bottom: 100px; /*LOL*/
} That works in a sample I tried it. Might be something with how the framework is loading css too. I would define this in a global css that won't get scoped. https://codepen.io/odoe/pen/ExEMoBg?editors=1000
... View more
08-22-2022
08:46 AM
|
0
|
2
|
3267
|
|
POST
|
That's outside the scope of the ArcGIS JSAPI. You're probably better asking on stackoverflow or a Mongodb specific forum about how to get it to work. Once you can connect and fetch the data, you can integrate it into the ArcGIS JSAPI Popup using a pattern like this sample.
... View more
08-22-2022
07:21 AM
|
0
|
0
|
1246
|
|
POST
|
That link is for the 3D SymbolStyles, you want to use the 2D symbol styles https://developers.arcgis.com/javascript/latest/visualization/symbols-color-ramps/esri-web-style-symbols-2d/ const webStyleSymbol = new WebStyleSymbol({
name: "push-pin-1",
styleName: "Esri2DPointSymbolsStyle"
}); If you want to tweak it a bit, each 2D Web Style Symbol is also available as a CIM Symbol and you can modify the symbology a bit as you need. There's a tab to select the CIM JSON.
... View more
08-19-2022
10:01 AM
|
0
|
0
|
2813
|
|
POST
|
That module is now in the rest/support folder. https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ProjectParameters.html There should have been some deprecation messages for this in earlier releases
... View more
08-19-2022
08:31 AM
|
0
|
0
|
1739
|
|
POST
|
I'm not sure why it would have broken, but can you try to see if you can get the ObjectIdField directly from the layer? // from the layer if you have it
feature.graphic.attributes[layer.objectIdField]
// from the graphic if it came from a layer
feature.graphic.attributes[feature.graphic.layer.objectIdField] It is possible the the OBJECTID field is not the ObjectID Field of the service you are querying, and your relate query returns empty results. I've seen layers with relationships have a Join_ID field as the oid. I was able to test the executeRelationshipQuery on a sample service and got the expected results, but it's kind of tough to tell what might be happening in your scenario without a repro to look at. Things I would recommend. Use the objectIdField to get the oid as described above. See if you can get the results using the layer.queryRelatedFeatures You can try and check the network traffic between 4.22 and 4.24 and see what the difference might be in the request.
... View more
08-18-2022
07:59 PM
|
0
|
3
|
1805
|
|
POST
|
That field isn't in your results. It's Raster.ClassLabelA, not just ClassLabelA. I don't know if this is a server version difference or Pro publishing update thing, but this is what your results look like now. When you do this check if(clickLayerLabel.length > 0), clickLayerLabel is undefined and your popup never opens.
... View more
08-17-2022
07:43 PM
|
1
|
1
|
1753
|
|
POST
|
Something might have changed on your server. The URL you are using to Identify only has a raster layer https://mapsweb.lib.purdue.edu/arcgis/rest/services/Isee/USA_ALL_gS1021_Vertic_Properties/MapServer It looks like you're checking for fields with "ClassText" in it, but those are not the fields you get from a raster layer.
... View more
08-17-2022
02:19 PM
|
0
|
3
|
1778
|
|
POST
|
Ok, I think I know what's happening with the polygons. I think what is happening here, is since the sample shows using the FeatureLayerView, it only queries data that has been downloaded and visible on the map, which makes sense. However, if a polygon (or a polyline) is smaller than a pixel, as in, you couldn't see it anyway, it won't technically be in the LayerView since it's not drawn due to quantization in the request. This doesn't happen with points, because a point can always fit in a pixel. If you update your demo to use fLayer.queryFeatures(query) it should work, and properly filter the table.
... View more
08-17-2022
01:32 PM
|
0
|
0
|
1935
|
|
POST
|
Can you provide a repro in codepen or something? Not sure what is different in your app versus the working sample.
... View more
08-17-2022
10:53 AM
|
0
|
2
|
1948
|
|
POST
|
Sure. When working with the PopupTemplate, you have access to a few different ways to customize that content. For a case where you want to do some extra processing, such as yours, you can use the CustomContent. The creator() method in the CustomContent is going to provide the current graphic of the Popup being displayed. This is a shortcut to the Popup selectedFeature. That feature could be a line, but could also be a point or polygon, so when using the ElevationProfile, you need to validate that it's a Polyline that the profile could use. Once you have a valid line feature, you can assign it to the ElevationProfile input. At that point the Profile will kick in, query the elevation layer and create your profile. Technically, you can provide any Graphic Polyline as the input, so it could come from the Sketch widget and update dynamically. I haven't tried interactive updates like that, but it works in my head. Hope that helps clear that up.
... View more
08-17-2022
10:35 AM
|
0
|
1
|
2545
|
|
POST
|
You don't need a Map to use Search by itself in 3x. const search = new Search({}, "search");
search.startup();
search.on("search-results", (event) => {
// do something with search results
console.log(event);
}); You can style the widget and stuff too.
... View more
08-17-2022
08:30 AM
|
0
|
0
|
466
|
|
POST
|
That sample sets the SpatialReference of the View, so when switching to the MapView, don't set the SpatialReference and let the view adopt the SR of the layer if it's the basemap layer.
... View more
08-16-2022
07:21 AM
|
0
|
1
|
2900
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 3 weeks ago | |
| 2 | 3 weeks ago | |
| 1 | 02-27-2026 06:31 AM | |
| 1 | 01-13-2026 02:15 PM | |
| 1 | 12-31-2025 09:05 AM |
| Online Status |
Offline
|
| Date Last Visited |
2 weeks ago
|