|
POST
|
Hi there, You need to set the GeoRSSLayer.pointSymbol to your PictureMarkerSymbol. I updated the GeoRSSLayer sample to show you how to do this. The following code snippet shows how it is done. But when you are using PictureMarkerSymbol you need to follow the CORs rule. var symbol = new PictureMarkerSymbol({
url: "https://static.arcgis.com/images/Symbols/Shapes/BlackStarLargeB.png",
width: "64px",
height: "64px"
});
var layer = new GeoRSSLayer({
url: "https://arcgis.github.io/arcgis-samples-javascript/sample-data/layers-georss/sample-georss.xml",
pointSymbol: symbol
}); Hope this helps, -Undral
... View more
11-19-2019
07:54 AM
|
1
|
1
|
1944
|
|
POST
|
Can you copy paste the logic for the select option? Maybe you are creating new instances of the time slider from the select option?
... View more
11-19-2019
07:37 AM
|
0
|
6
|
3251
|
|
POST
|
Hi there, I am guessing you are setting up the TimeSlider widget to be used with different layers but to use one layer at a time. If this is not the case please let me know. In any case, in the function where you are changing the layer and setting the timeSlider, you should set the TimeSlider fullTimeExtent, stops and values properties as shown below: function setTimeSlider(timeLayer) {
const fullTimeExtent = timeLayer.timeInfo.fullTimeExtent;
timeSlider.fullTimeExtent = fullTimeExtent;
timeSlider.stops = {
interval: timeLayer.timeInfo.interval
};
var start = timeLayer.timeInfo.fullTimeExtent.start;
var end = timeLayer.timeInfo.fullTimeExtent.end;
// const end = new Date(start);
// end.setDate(end.getFullYear() + timeLayer.timeInfo.interval.value);
timeSlider.values = [start, end];
} This simple test app shows how to set the timeSlider widget with one layer at a time at runtime.
... View more
11-18-2019
03:11 PM
|
1
|
8
|
3251
|
|
POST
|
Hi there, You have to pass in an instance of symbol to addBreaks method. You are passing in a color object in your code. I modified your test app. -Undral
... View more
11-15-2019
08:13 AM
|
2
|
0
|
1759
|
|
POST
|
Hi there, Starting at version 4.10, WebGL is used to draw all layers in JS API. So there is no flag to switch between webgl and svg. We have lots of web symbols you can use. Please take a look at 2D web symbols and 3D symbols. Also there are a couple of samples that show you how to create custom webgl objects to the map. Custom WebGL layer view | ArcGIS API for JavaScript 4.13 Animated lines with WebGL | ArcGIS API for JavaScript 4.13 -Undral
... View more
11-15-2019
07:57 AM
|
0
|
0
|
1498
|
|
POST
|
Hi there, Fill extrusions are not supported in JS API for ArcGIS at this time. It will be added in the future but I do not have a concrete timeframe for this. -Undral
... View more
11-14-2019
07:34 AM
|
0
|
0
|
2177
|
|
POST
|
Hi there, You should watch for view.updating property to get the updated scale value. Please look at the Watch for Property changes section in this document. Hope this helps, -Undral
... View more
11-11-2019
11:07 AM
|
0
|
1
|
1076
|
|
POST
|
Looks like you are missing "dojo/string" in your test app.
... View more
11-01-2019
08:37 AM
|
0
|
0
|
1255
|
|
POST
|
Hi there, This issue will be fixed at 4.14. But you can test the fix with our `next` release. See this sample for the fix. -Undral
... View more
10-25-2019
11:24 AM
|
1
|
0
|
6035
|
|
POST
|
Hi there, As Robert Scheitlin, GISP, you should use standard sql query to query dates. When you are setting FeatureLayer.definitionExpression you are making Rest API query call (search for where). This blog talks about how to query date fields. With all of the above said, you should not have to set the layer's definitionExpression whenever the timeSlider's timeExtent changes. You can set the TimeSlider.view property and all time-aware layers will automatically update to conform to the view's timeExtent. Please look through the TimeSlider SDK doc (see Update the view's doc section). I have updated your app to do that and here is the link. I noticed that your service's time interval units is set to unknown. So in the test app, I am setting TimeSlider's stop.interval to one day as shown below: const timeSlider = new TimeSlider({
container: "timeSlider",
playRate: 300,
view: view,
stops: {
interval: {
value: 1,
unit: "days"
}
}
});
... View more
10-21-2019
11:02 AM
|
1
|
1
|
5398
|
|
POST
|
You should not use toFixed! You should just pass in the actual values to get the correct results. longitude: pt.latitude.toFixed(5),
latitude: pt.longitude.toFixed(5)
... View more
10-17-2019
08:39 AM
|
0
|
1
|
2228
|
|
POST
|
Hi there, You can prevent the move operation for graphics by the cancel method on Sketch or SketchViewModel as shown below. if (event.toolEventInfo && event.toolEventInfo.type.includes("move")){
sketch.cancel();
}
... View more
10-16-2019
02:00 PM
|
1
|
4
|
3820
|
|
POST
|
Hi there, Yep it only works with ImageLayer and the service has to be ImageService. -Undral
... View more
09-26-2019
08:17 AM
|
1
|
1
|
986
|
|
POST
|
Hi there, It looks like Access-Control-Allow-Origin is missing from the response header as the errors indicate. This header must be included in all valid CORS responses; omitting the header will cause the CORS request to fail. Please refer to this document for more explanation. -Undral
... View more
09-19-2019
11:02 AM
|
1
|
0
|
6970
|
|
POST
|
Hi there, This issue will be fixed at version 4.13 which is expected to be released early October. -Undral
... View more
09-16-2019
01:53 PM
|
1
|
0
|
12999
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 11-17-2025 03:29 PM | |
| 1 | 07-09-2025 08:48 AM | |
| 2 | 07-08-2025 08:09 AM | |
| 2 | 07-07-2025 03:57 PM | |
| 1 | 06-11-2025 03:25 PM |
| Online Status |
Offline
|
| Date Last Visited |
12-01-2025
08:03 AM
|