Hi all
Can anyone say whether the "VectorTileLayer" can deal with kml/kmz file like the "esri/layers/KMLLayer" at the "http://js.arcgis.com/3.14/" version ?
Solved! Go to Solution.
KMLLayer is not being removed, but it's not yet implemented.
IMHO it is negative.
"esri/layers/KMLLayer" itself is complex and requires ArcGIS Portal trip to decode KML.
Hi Abdul thank you and shukran
I have got the kml/kmz files ready , and i'm just need to show them on the Esri map. Do you have any Practical Suggestion how to show them Dynamically by Javascript on the 4/0 beta Jsapi
There is no "esri/layers/KMLLayer" class in 4.0 Beta 2. You can try KML | ArcGIS API for JavaScript for 3.14.
According to the documentation
The KMLLayer uses a utility service from ArcGIS.com, therefore your kml/kmz must be publicly accessible on the internet. If your kml/kmz files are behind the firewall you will need to set the esriConfig.defaults.kmlService
to your own utility service. (Requires Portal for ArcGIS).
Hope it would clarified all.
This is an example of KMZ file - publicly accessible on the internet
I edit it by the GOOGLE EARTH utilitys
https://sites.google.com/site/yoavhermoni/italy/ItalyTrackDay4.kmz
Do you belive ther is a way to show it on the 4.0 beta jsapi ?
I am repeating my answer that In My Humble Opinion it is negative that a VectorTileLayer can deal with KML/KMZ. It can not display KML/KMZ.
Furthermore ArcGIS API for JS 3.14 uses "esri/layers/KMLLayer" class to display KML/KMZ and it is not present in Beta 2.
If you have simple KML/KMZ files you should write simple wrapper to parse your KMLs/KMZs to primitive beta 2 symbols.
Just because the 4.0 beta 2 does not currently support KMLLayer does not necessarily mean that it is being removed. Perhaps someone at Esri can confirm whether KMLLayer has been removed or if it just hasn't been implemented in 4.0 yet.
KMLLayer is not being removed, but it's not yet implemented.
I meant to say that it is not present in API docs yet