POST
|
Sometimes using something simpler is the way to go. If you console.log() the JSON.parse result what does it do? It should print a JSON object to the console which should contain the elements that your JSON string contains
... View more
11-07-2019
06:24 AM
|
0
|
1
|
1291
|
POST
|
If your JSON is a string you should use JSON.parse to make into an object for the feature layer. Trying modifying this: renderer: rendererJsonUtils.fromJSON(sr) into this: renderer: JSON.parse(sr)
... View more
11-07-2019
05:20 AM
|
0
|
3
|
1291
|
POST
|
Hello everyone! I've been dealing with the following problem on ArcGIS Javascript API (versions 4.12 & 4.13) When using a color variable some smartphones show only one color. For example, opening this sample of the API Data-driven continuous color - 4.13 in certain smartphones shows the following result: This sample is supposed to color the polygons according to a value using the color ramp shown on the Legend. This is not reproducible in every smartphone. The screenshot comes from a Huawei P9 Lite but we have also encountered it with Samsung devices. The problem is that not all of them do it and there is also no pattern on the version of Android used. Also, the used browser does not make a difference. We haven't tested it on iPhones so I don't know if it also appears on those. We first encountered it on version 4.12 but it was not fixed on the 4.13 update. After googling around a bit I haven't found anything relevant (since I don't know the cause my keywords may not be totally correct) Any help will be appreciated since now I am stuck with using unique-values renderers and that is not really the correct way to show my data on the map. Thank you in advance!
... View more
10-31-2019
04:03 AM
|
0
|
0
|
214
|
POST
|
Hello Matt! Thanks a lot for the explanation! I guess that for now we will stick to 4.12 which shows everything and then just use a different field for the labeling, populated only by some of the polygons to reduce the shown labels a bit. Thank you for the help!
... View more
10-23-2019
11:36 PM
|
0
|
0
|
708
|
POST
|
Hello Noah! I am attaching two images showing the same area (same layer without any changes), after only applying the update from version 4.12 to version 4.13. The update has the same effect throughout the whole layer The problem is not that the labels are less after the update since it probably helps with the speed of the rendering. It would be good though if a way to affect it programmatically through the API existed. Version 4.13: Version 4.12:
... View more
10-22-2019
11:40 PM
|
0
|
2
|
708
|
POST
|
Hello everyone! I have a question concerning the ArcGIS JS 4.13 API Up until now I've been using 4.12 version of the API to show a hosted Feature Layer containing Polygon geometries. To that, I have added a labelingInfo object in order to show a Field from the data of the Polygons. In 4.12 many labels were shown throughout the map even without zooming. After updating to 4.13, the number of labels has been reduced almost by half without changing anything in the code. I don't see anything relevant in the Changelogs though I think that the change happened for optimisation purposes. Is there a way to change the density of the shown labels? There isn't anything mentioned in the docs concerning such an option Thank you everyone in advance! PS. I can provide screenshots if needed
... View more
10-20-2019
11:28 PM
|
0
|
4
|
906
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|