|
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
|
2008
|
|
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
|
2120
|
|
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
|
2133
|
|
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
|
2850
|
|
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
|
541
|
|
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
|
3166
|
|
POST
|
You could have some UI, like a dropdown that would change the layer property on the table. https://codepen.io/odoe/pen/oNqQopB?editors=1000
... View more
08-16-2022
07:18 AM
|
0
|
1
|
1408
|
|
POST
|
You can still do that via the input of the widget. Here is a project we did the UC precon showing how this takes the feature of a Popup and uses it as the input for the ElevationProfile. https://github.com/EsriPS/building-stunning-webapps-2022/blob/4-state-and-map/src/data/map.js#L107-L119
... View more
08-12-2022
10:18 AM
|
0
|
4
|
2896
|
|
POST
|
You can accomplish this with visible elements. https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile.html#visibleElements const elevationProfile = new ElevationProfile({
profiles: [
{
type: 'input',
},
{
type: 'ground',
},
],
visibleElements: {
legend: false,
clearButton: false,
settingsButton: false,
sketchButton: false,
selectButton: false,
uniformChartScalingToggle: true,
},
}); And you can get just the profile like this. I've done this to add the ElevationProfile to the Popup.
... View more
08-12-2022
09:13 AM
|
1
|
6
|
2905
|
|
POST
|
reactiveUtils doesn't have a default export, so you can do one of two things. // import all methods
import * as rU from "@arcgis/core/core/reactiveUtils";
// only import the method you're interested in
import { watch } from "@arcgis/core/core/reactiveUtils";
... View more
08-12-2022
06:56 AM
|
0
|
1
|
4024
|
|
POST
|
That's an old sample. I would try a couple of things. Set outFields of layer to ["*"] Or set outFields of query to ["*"] I suspect the fields are not in the query results, so you need to ask for them all.
... View more
08-10-2022
02:27 PM
|
0
|
1
|
2031
|
|
POST
|
If you look at the network traffic in browser dev tools can tell where it's trying to load the resource from? Sounds like it might be a path issue. This can vary based on how you are building your app, CDN, or NPM, and what tools you are using.
... View more
08-09-2022
09:32 AM
|
0
|
0
|
2845
|
|
POST
|
Esri doesn't have a React Native SDK. They wouldn't be implemented in JavaScript. There is also this community project that wraps the Runtime SDK with React Native components. https://github.com/glazou/react-native-arcgis-sdk-demo But again, these are not official libraries and are not supported.
... View more
08-08-2022
06:47 AM
|
0
|
0
|
7261
|
|
POST
|
In 3x, if a Graphic is aggregate, a cluster graphic, it has a method called getChildGraphics you can. use. https://developers.arcgis.com/javascript/3/jsapi/graphic-amd.html#getchildgraphics I have an old blog post from 2017 that might still be useful for 3x here. https://odoe.net/blog/interactive-clusters-arcgis-api-javascript
... View more
08-05-2022
07:57 AM
|
0
|
1
|
1032
|
|
POST
|
Make these changes in your vue file. Your MapView was referencing the div className, and it had no id. <div id="viewDiv" class="mapdiv"></div>
const view = new MapView({
map: map,
container: "viewDiv",
center: [-118.244, 34.052],
zoom: 12
}); You might also need to change the browserlist in the package.json. This is what we support. "browserslist": [
"last 1 Chrome version",
"last 1 Firefox version",
"last 2 Edge major versions",
"last 2 Safari major versions",
"last 2 iOS major versions",
"Firefox ESR"
] Plus, I don't the assets are copied correctly in a production build, they should be in the public folder to get copied in a build, but if you don't use local assets, you don't need to worry about it.
... View more
08-04-2022
11:31 AM
|
0
|
1
|
3428
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | Wednesday | |
| 2 | 05-19-2026 02:12 PM | |
| 1 | 04-24-2026 11:01 AM | |
| 2 | 04-21-2026 07:06 AM | |
| 1 | 02-27-2026 06:31 AM |
| Online Status |
Offline
|
| Date Last Visited |
yesterday
|