POST
|
In ArcGis Online, the map looks correct, with the labels above the streets. When I open the same map in JavaScript, it puts the label on top of the street line and gives this error: "Found invalid label placement type above-along for esriGeometryPolyline. Defaulting to center-along". I am not doing anything in JavaScript with the label placement, I am simply opening the map that was created in ArcGis Online.
... View more
08-24-2020
01:26 PM
|
0
|
1
|
557
|
POST
|
Ah! Thank you so much for that picture. I was missing that part. The URL doesn't show at all until after it is shared with everyone. You have helped me very much!!!
... View more
07-20-2020
03:27 PM
|
1
|
1
|
618
|
POST
|
So just make it public and use the amazon link? Or is there some special arcgis/esri rest api link that I should use?
... View more
07-20-2020
03:16 PM
|
0
|
3
|
618
|
POST
|
I have 2 use cases here: #1 I upload a .png file to ArcGis Online and I want to use that as a custom symbol. What is the URL to that file? I tried going to the file in the portal and using the URL generated by the "download" button, which gave me something like https://ago-item-storage.s3.region.amazonaws.com/abcdefg1234567890/my_custom_file.png?X-Amz-Security-Token=xxxxxxxxxxxxxxxxxxxx&X-Amz-SignedHeaders=host&X-Amz-Expires=300&X-Amz-Credential=xxxxxxxxxxxxxxxxxx&X-Amz-Signature=xxxxxxxxxxxxxx That worked, but only for a few days, then it no longer existed. I think that link expires. So, is there a way to get a permanent URL to these files? #2 Similar use case, but using a png image in javascript to put on top of the map. I'm using a similar link to the above, and it also expires after a few days.
... View more
07-20-2020
02:13 PM
|
0
|
5
|
704
|
POST
|
How can I catch errors while the map is running in a browser? For example, I have this code: require([
"esri/WebMap",
"esri/views/MapView"
], function(WebMap, MapView) {
webmap = new WebMap({
portalItem: {
id: "000000000000000000000000000000"
}
});
view = new MapView({
container: "viewDiv",
map: webmap
}
}); Everything works fine, but if I don't renew the token in time, or something happens to invalidate the token before it is time to be regenerated, I would get an error like this: dojo-lite.js:261 [esri.views.2d.layers.features.controllers.OnDemandController] f {name: "featurelayer-controller:tile-error", message: "Encountered an error when handling tile response", details: {…}} details: {name: "request:server", message: "Invalid token.", details: {…}} message: "Encountered an error when handling tile response" name: "featurelayer-controller:tile-error" How can I catch that with JavaScript? If I can catch it, I can generate a new token and handle it properly.
... View more
07-02-2020
06:12 PM
|
0
|
1
|
819
|
POST
|
Hi, I followed your example, but my webmap still prompts to login. I receive the JSON properly, with the generated token, but then it pops up and asks me to login. How are you doing the authentication? I think that the generated token is only allowing the JSON to be received, it is not also allowing the map to be viewed with that received JSON. How do you send the authentication to the webmap?
... View more
07-01-2020
09:36 PM
|
0
|
1
|
2693
|
Title | Kudos | Posted |
---|---|---|
1 | 07-20-2020 03:27 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|