or type file especify is response.MAP it load in file example: Layer Swipe
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?
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:
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.
You should look at the KMLLayer sample:
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.
ok, I use this example: Click KML
look Zoom direction map in Brazil > Amapá
I go test other examples..... but I need use this example: Geo with my map KML understand?
Sorry it seems like KMLLayer is not supported by the LayerSwipe
Retrieving data ...