or type file especify is response.MAP it load in file example: Layer Swipe
Geraldo,
That sample is using a Web Map from AGOL. But you can use the swipe widget on a map that has layers loaded in the normal fashion as well using any other supported layer type.
Robert, Thankyou the quick response,
it is possible to use I this example: Layer Swipe and load a file extension: KML, GML, MIF, OOM, ShapeFile or SQL? if possible, how do I do?
Geraldo,
You can add KML and shapefiles to a web map on AGOL anf then use that web map for the swipe. The JS API also supports KMLLayer. You can look at the JS APIs documentation to see a list of supported layer types:
I will try, I will see this documentation, but I'm sure where to change the javascript source code to load kml file, for example.
Can I include my doubts in this post?
sorry for written English, I am Brazilian: My Local: -0.055292, -51.169647
if I can publish on the web for you to see.
Grateful.
Geraldo,
You should look at the KMLLayer sample:
KML | ArcGIS API for JavaScript 3.17
This shows how to add a kml file using the JS API. Then you would just need to combine the layer swipe sample with the KML layer sample. Or you could just add your KML layer to a web map on AGOL and then just use the Layer Swipe sample.
Geraldo,
Sorry it seems like KMLLayer is not supported by the LayerSwipe