4.0beta 02 jsapi kml/kmzeile

3539
8
Jump to solution
11-28-2015 05:44 AM
yoavhermoni
New Contributor III

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 ?

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
YannCabon
Esri Contributor

KMLLayer is not being removed, but it's not yet implemented.

View solution in original post

8 Replies
omega_cancer
Occasional Contributor II

IMHO it is negative.

"esri/layers/KMLLayer" ​itself is complex and requires ArcGIS Portal trip to decode KML.

0 Kudos
yoavhermoni
New Contributor III

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

0 Kudos
omega_cancer
Occasional Contributor II

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.

0 Kudos
yoavhermoni
New Contributor III

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 ?

0 Kudos
omega_cancer
Occasional Contributor II

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.

0 Kudos
JeffJacobson
Occasional Contributor III

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.

0 Kudos
YannCabon
Esri Contributor

KMLLayer is not being removed, but it's not yet implemented.

omega_cancer
Occasional Contributor II

I meant to say that it is not present in API docs yet

0 Kudos