POST
|
This was resolved in a GitHub issue: https://github.com/Esri/esri-leaflet-geocoder/issues/277
... View more
07-29-2021
02:27 PM
|
1
|
0
|
977
|
POST
|
Thank you for the report. It seems like there may be an issue with how the sprites REST endpoint handles the call when an API key with a referer restriction is used. We are investigating.
... View more
07-28-2021
08:05 AM
|
1
|
1
|
1038
|
POST
|
Hi, did you follow the instructions on the top of the page here: https://esri.github.io/arcgis-rest-js/guides/node ? Specifically, installing these modules: npm install @esri/arcgis-rest-request @esri/arcgis-rest-auth cross-fetch isomorphic-form-data
... View more
07-21-2021
10:57 AM
|
0
|
0
|
1551
|
POST
|
Hi, thanks for the question. It looks like that service is a "Tiled Imagery Layer" (see that on the item details page). Given that, I think it would probably be better to use L.esri.tiledMapLayer(). I tested using L.esri.tiledMapLayer(): https://codepen.io/gavinr/pen/QWvvdpm?editors=0010 If you open the developer console, you'll see the message "L.esri.TiledMapLayer is using a non-mercator spatial reference". In other words, the service is published in a non-web-mercator WKID. Specifically it's using WGS84 (4326). So the first task will be to get that 4326 layer onto your map. See these resources: http://esri.github.io/esri-leaflet/examples/non-mercator-projection.html https://leafletjs.com/reference-1.7.1.html#map-crs https://leafletjs.com/reference-1.7.1.html#crs-l-crs-epsg4326 Additionally, if you look more at that service, you'll notice the format is LERC2D. I do not think L.esri.tiledMapLayer() will currently support that. There was a discussion on supporting this in Esri Leaflet: https://github.com/Esri/esri-leaflet/issues/726 That issue was closed due to lack of activity, but perhaps with interest in this new service (and others like it) now is the time. If you'd like to chime in on that issue or create a new one, your feedback (or code contributions, if you figure out how to do it) would be appreciated.
... View more
07-16-2021
11:19 AM
|
2
|
4
|
1997
|
POST
|
I think that's a good way to do it. This sample uses L.Util.template which is a slightly different way to do it, so that's an alternative for you too.
... View more
06-29-2021
11:41 AM
|
0
|
0
|
516
|
POST
|
Hi, if your points are stored in an ArcGIS Online Hosted Feature Layer, you can use the "L.esri.featureLayer" module from Esri Leaflet. Example: https://esri.github.io/esri-leaflet/examples/simple-feature-layer.html Tutorial: https://developers.arcgis.com/esri-leaflet/layers/add-a-feature-layer-as-geojson/
... View more
06-29-2021
11:37 AM
|
0
|
0
|
674
|
POST
|
Answered here: https://github.com/Esri/esri-leaflet-vector/issues/93
... View more
06-14-2021
03:04 PM
|
0
|
0
|
1144
|
POST
|
One way to do this is to use the "Export Web Map Task". It can output images (PNGs, JPGs, etc) as well as PDFs based on a configuration of layers (Web_Map_as_JSON) that you pass in as a parameter. Documentation: https://developers.arcgis.com/rest/services-reference/enterprise/export-web-map-task.htm Depending on your requirements, you can send this request via GET or POST. See this endpoint form for help on constructing the request: https://utility.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task/execute Demo: I cannot copy/paste the full URL here because it's too long, so you can go here and copy/paste this URL into your browser. It will send back a JSON response that contains a link to the image. https://www.arcgis.com/sharing/content/items/fe52496307ff4defa1fb8f9c55533f3d/resources/get-image-url-example.txt
... View more
05-27-2021
08:55 AM
|
1
|
1
|
1478
|
POST
|
Hi, you can provide feedback by following these instructions: https://support.esri.com/en/technical-article/000011831 Thank you!
... View more
04-15-2021
12:07 PM
|
1
|
0
|
458
|
POST
|
Daniel, could you please share the leaflet code that is causing that issue?
... View more
04-02-2021
09:01 AM
|
0
|
0
|
1755
|
POST
|
Hi, yes you can do that. Simply move the arcgisRest.UserSession.completeOAuth2() call into the main page. The key is to detect if you're in the state where the access_token has been passed by the URL. One way to do it would be something like this: // Define a global session variable.
let session = null;
// ADDED: ---------------------------------
const clientIdFromURL = new URLSearchParams(window.location.search).get('clientID');
const parsedHash = new URLSearchParams(
window.location.hash.substr(1) // skip the first char (#)
);
var accessTokenFromURL = parsedHash.get('access_token');
// only call completeOAuth2 if we have the clientID and access token:
if(clientIdFromURL && accessTokenFromURL) {
session = arcgisRest.UserSession.completeOAuth2({
clientId: clientIdFromURL,
});
localStorage.setItem('__ARCGIS_REST_USER_SESSION__', session.serialize());
}
// END ADDED SECTION: ---------------------------------
// Check to see if there is a serialized session in local storage.
const serializedSession = localStorage.getItem('__ARCGIS_REST_USER_SESSION__'); If you do this, the thing to think about would be: since you're not doing the "redirect via authenticate.html" thing, the access_token is right in the URL bar: which is not ideal, security-wise. So I would recommend using some JavaScript to remove that.
... View more
03-26-2021
07:36 AM
|
0
|
0
|
1937
|
POST
|
Hi, have you tried setting the "popup" property to false in the example (here)? I think that should work fine - let us know if it's not working and we can try to fix. Your redirect URI will be the page that has CompleteOauth2 function call in it - in the sample, that is called here.
... View more
03-25-2021
03:50 PM
|
0
|
2
|
1947
|
POST
|
Hi, there are a few ways you can do this: you could use some code to push the data to a Feature Service (in ArcGIS Online or ArcGIS Enterprise) via the REST API (addFeatures endpoint). Alternatively, you could have a process the regularly runs and pulls the data from your third party service into a Feature Service. A third option might be Koop.
... View more
03-04-2021
01:09 PM
|
0
|
0
|
522
|
POST
|
Can you please double-check the codepen URL you posted? It currently goes to a blank page.
... View more
01-07-2021
07:55 AM
|
0
|
0
|
1062
|
POST
|
One option is to use the Search widget within the Expand Widget. Demo: https://codepen.io/gavinr/pen/NWRGaGw?editors=0010
... View more
12-02-2020
06:06 AM
|
1
|
1
|
777
|
Title | Kudos | Posted |
---|---|---|
1 | 03-06-2024 07:59 AM | |
1 | 12-29-2022 01:20 PM | |
1 | 07-08-2022 06:45 AM | |
1 | 06-21-2022 06:17 AM | |
1 | 04-01-2022 07:45 AM |
Online Status |
Offline
|
Date Last Visited |
2 weeks ago
|