|
POST
|
I haven't tested this out, but I wonder if actually using WGS84 (4326) for the source point might help? view.on("click", function(event){
console.log(event.mapPoint.longitude,event.mapPoint.latitude);
const WGS84 = new SpatialReference({ wkid: 4326});
const NAD83 = new SpatialReference({ wkid: 26912 });
let point = new Point({
spatialReference: WGS84,
x: event.mapPoint.longitude,
y: event.mapPoint.latitude
})
projection.load().then(function(){
// const transformations = projection.getTransformations(WGS84, NAD83);
// console.log(transformations);
point = projection.project(point, NAD83);
console.log(point);
});
});
... View more
04-16-2021
08:13 AM
|
2
|
0
|
3895
|
|
POST
|
You import the class Point and then redefine this variable in your code to an object instance. Try these changes: const myPoint ={
type: "point",
longitude: props.data[23],
latitude: props.data[24]
};
const pointGraphic = new Graphic({
geometry: myPoint,
symbol: simpleMarkerSymbol
});
... View more
04-13-2021
07:26 AM
|
0
|
3
|
2824
|
|
POST
|
Not sure what the question is, but you should be able to find the interior ring by using the isClockwise(...) method.
... View more
03-12-2021
08:08 AM
|
0
|
1
|
1844
|
|
POST
|
Sorry, I misinterpreted the use case. I think that using a self-hosted resource proxy as described in the 'Application login' section would be an option. The calls to the secure service from the public app would go through the proxy.
... View more
03-10-2021
03:22 PM
|
0
|
0
|
2343
|
|
POST
|
I normally share content to a group only and then create an item for my app, register it, and use OAuth in the application to access the services, and you can even provide a referrer for your app.
... View more
03-10-2021
01:01 PM
|
0
|
2
|
2350
|
|
POST
|
Do you have a CodePen where we can experience the issue?
... View more
03-08-2021
12:24 PM
|
0
|
1
|
6195
|
|
POST
|
You need to make sure you're returning the geometries from your query in the correct spatial reference or you'll subsequently be creating geometries with a defined spatial reference different than the coordinates themselves. parcelsQuery.outSpatialReference = App.policyView.spatialReference; https://codepen.io/john-grayson/pen/eYBPMgv I hope this helps...
... View more
03-08-2021
12:23 PM
|
0
|
1
|
3403
|
|
POST
|
I wonder if this might help in your use-case: https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#fetchFeatures https://developers.arcgis.com/javascript/latest/sample-code/widgets-feature-multiplelayers/
... View more
03-08-2021
11:26 AM
|
0
|
3
|
3572
|
|
POST
|
Could you maybe create a CodePen where a few of the locations from the csv are created manually?
... View more
03-08-2021
11:19 AM
|
0
|
3
|
3407
|
|
POST
|
I wonder if something like this might help? view.goTo({target: polygonGraphic.geometry.extent.center, zoom:16}).then(()=>{
graphicsLayer.addMany([polygonGraphic, ptGraphic]);
});
... View more
03-08-2021
11:18 AM
|
0
|
3
|
6199
|
|
POST
|
Sounds like you might be looking to create the convex hull around a set of points? Maybe something similar to this might work for your needs: https://codepen.io/john-grayson/pen/NWbLGaR If not, maybe you could provide a CodePen using your data so we can see what might be going on?
... View more
03-05-2021
03:22 PM
|
0
|
5
|
3441
|
|
POST
|
Check out all of the available renderers and yes, maybe the RasterColormapRenderer or RasterShadedReliefRenderer might be better fits for what you need.
... View more
03-03-2021
08:01 AM
|
0
|
0
|
2586
|
|
POST
|
The doc says "The RasterColormapRenderer is only available if a color map is present in an ImageryLayer or ImageryTileLayer." but the service you are trying to use doesn't have a color map defined. Instead, you can use a ClassBreaksRenderer to achieve what you'd like; check out this CodePen: https://codepen.io/john-grayson/pen/RwoJbPq
... View more
03-02-2021
01:26 PM
|
0
|
0
|
2603
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 03-07-2024 04:14 PM | |
| 1 | 02-23-2024 12:40 PM | |
| 1 | 03-01-2024 10:48 AM | |
| 2 | 08-03-2023 02:34 PM | |
| 2 | 07-19-2023 12:05 PM |
| Online Status |
Offline
|
| Date Last Visited |
10-24-2024
06:01 PM
|