POST
|
Hi Kristian, Here Is a code example. https://codepen.io/greenGoose45/pen/WNbPvNL To simulate the error, press the "addlayer to group button" once the map has loaded and look for the added layer within the innermost grouplayer. The legend is not generated for these layer and if you put a breakpoint in the console, the listItemCreatedFunction does not trigger. I'm also attaching the html file if that works better. Best, Nick
... View more
01-22-2020
09:59 AM
|
1
|
0
|
551
|
POST
|
I am adding/removing layers nested within group layers. These modifications do not seem to always cause a refresh/ trigger the listItemCreatedFunction to rerun. I need the listItemCreatedFunction to run everytime i add/remove layers from the map/nested groups. How can I force a refresh of the layerlist? I have noticed that the layerlist triggers listItemCreatedFunction at initial creation and also when using sketchviewmodel.complete(). I've considered creating a new layerlist and replacing the existing list, but that seems like a resource intensive option. Any suggestions?
... View more
01-21-2020
04:02 PM
|
0
|
2
|
654
|
POST
|
When trying to print out a map that contains a simple heatmap rendered feature layer using a print task i get the following error: (look at the attachment -- the insert image button was giving me trouble) I also attached the file that produces the problem. Any help/direction is appreciated!
... View more
09-17-2019
10:10 AM
|
0
|
1
|
489
|
POST
|
I am trying to access this property so that i can toggle off certain or all create buttons like the point and circle buttons. I attempted to utilize this property but found that it was not on the created object:
... View more
08-21-2019
04:46 PM
|
0
|
1
|
632
|
POST
|
I create my ui widgets in an enclosed function so i lose their reference when the function completes. I want to be able to find these objects/variables without passing them globally. For example, I want to find my sketch widget after creation and after it is no longer in the local scope.
... View more
08-21-2019
04:18 PM
|
0
|
1
|
754
|
POST
|
I am creating graphics and adding them to a graphics layer- this is a simplified version of what i'm doing. symbol = {
type: "picture-marker",
url: item.attributes.iconUrl,
width: sizeL[0] + "px",
height: sizeL[1] + "px"
}
var gO = {
geometry: item.geometry,
attributes: item.attributes,
symbol: symbol
}
var g = new Graphic(gO);
layer = new GraphicsLayer();
layer.graphics = [gO];
map.add(layer); No error occur until after the layer is added to the map and i get cors error for the picture url: Access to image at 'xxx.png' from origin 'http://localhost:xxxx has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Then the markers are still rendered, they just are black dots: How can i intercept the error so that I can either suppress it in the console or delete the graphics layer and reconstruct it with a working image?
... View more
07-17-2019
04:31 PM
|
0
|
1
|
981
|
Title | Kudos | Posted |
---|---|---|
1 | 01-22-2020 09:59 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|