Hi Undral,
Thanks for your explanation! I'm Fayu Lai's colleague from the same company.
I have two questions about this topic:
1. Do you have any plan to support Expressions for data-driven style of VectorTileLayer?
2. I followed your instructions and published a vector tiles using ArcGIS Pro 2.2:
https://tiles.arcgis.com/tiles/LjXACVRBffrUtGL8/arcgis/rest/services/Conduit/VectorTileServer
It has a Line layer called "ssGravityMain" which element color is based on "PipeLength" property.
I noticed it has similar style settings as you suggested:
"line-color":{"property":"PipeLength","default":"#000000","stops":[[-5,"#17F4F7"],[998.804,"#5719F4"],[2002.61,"#FF25F5"]]}
in its default styles:
https://tiles.arcgis.com/tiles/LjXACVRBffrUtGL8/arcgis/rest/services/Conduit/VectorTileServer/resour...
Everything works fine if I show it using built-in map view of ArcGIS Online.
But it doesn't work if I use ArcGIS API for JavaScript version 4.9. Here is a simple sample code:
https://codepen.io/anon/pen/WaEOJy
You can find "Bad buffer type 8" error message on Chrome console:
That is exactly the same error when I used the Fayu's first snippet before.
Thanks,
Xing