Select to view content in your preferred language

Add KML/KMZ??

2390
2
01-14-2016 07:38 AM
deleted-user-dbQhBq-o3nyM
Occasional Contributor

I've been researching this topic and can't find much about it. I know you can add KMZs from ArcServer or ArcGIS online. That is not what I want to do.

Is there a custom widget that imports a KML/KMZ to the WAB 1.3 as a temporary layer for users? I know this is available with shapefiles, but it would be nice with KMZs.

Robert​, Kevin

2 Replies
ChadKopplin
Regular Contributor

I could not find anything for this.

0 Kudos
JordanBaumgardner
Occasional Contributor III

Could you -

- Use the "Create a custom widget" example to create a blank widget.

- Use drag n drop or "upload file" to move the KML to your server.

- Open up a kmllayer [KML | ArcGIS API for JavaScript ] and point it to the file you just pushed.

A lot of JS code for you to write I know.

I know of no widget that currently does anything like that.

I have never tried pointing a KMLLayer at a local file. There is a remote chance that might just work.