Select to view content in your preferred language

Temporal Renderer at Stream layer in 4.X?

170
0
02-13-2023 11:34 PM
Chae-youngOh
Esri Contributor

Hi,

I'm using javascript 4.24 version and trying to symbolize stream layer with previous observations and track lines.

I found Temporal renderer documentation at ArcGIS API for JavaScript ver 3.42.

https://developers.arcgis.com/javascript/3/jssamples/renderer_temporal.html 

However, It does not apply to version 4.X. All symbols are disappear and only basic symbols show.

Is there any ways to draw track lines using Javascript API ver 4.X?

Any suggestions or help would be much appreciated!

Thanks!

 

I test with this web map: https://webmaps.maps.arcgis.com/home/webmap/viewer.html?webmap=f03cb753b3384bd8a3dd36ed2c4958d4 

And when I open this web map it looks like below.

ChaeyoungOh_0-1676359983134.png

 

 

require(["esri/views/MapView", "esri/WebMap","esri/config"], (MapView, WebMap, esriConfig) => {
/************************************************************
* Creates a new WebMap instance. A WebMap must reference
* a PortalItem ID that represents a WebMap saved to
* arcgis.com or an on-premise portal.
*
* To load a WebMap from an on-premise portal, set the portal
* url with esriConfig.portalUrl.
************************************************************/
esriConfig.portalUrl = "https://esri-korea.maps.arcgis.com/"

const webmap = new WebMap({
portalItem: {
// autocasts as new PortalItem()
id: "c20800fc520c4c6c87fd594d5065d58f"
}
});

/************************************************************
* Set the WebMap instance to the map property in a MapView.
************************************************************/
const view = new MapView({
map: webmap,
container: "viewDiv"
});
});

0 Kudos
0 Replies