Hi Lori,

try calling mapView.getOverlay(layerName), then you can do whatever you want with the layer. If you need to access the MapView from an Activity different from the Map Activity, you have a singleton ActivityBundlesManager that contains the current instance of MapView.

To avoid the "black screen" issue, use a thread to load the KML, in fact this is something we should do by default, I'll open a ticket about that.

Regards.

--

Alberto Romeu
---

Prodevelop SL, Valencia (España)
Tlf.: 96.351.06.12 -- Fax: 96.351.09.68
http://www.prodevelop.es
---


El 07/03/12 05:47, ??? escribió:
Hi Alberto:
I try to make the loding kml files run in backgroud instead of opertion in manually,So I use the VectorGPEDriver loading several kml files.and it's work. The qusetion is how could I hide one of them in backgroud instead of opertion manually.I tried the function "driver.getOverlay().setVisible(false);" , But it's not work And loading the kml file cost so much time that the screen show black more then ten second. So ,how can we improve it. yours:lori









_______________________________________________
gvSIG-desktop-devel mailing list
http://joinup.ec.europa.eu/mailman/listinfo/gvsig-desktop-devel
_______________________________________________
gvSIG-desktop-devel mailing list
http://joinup.ec.europa.eu/mailman/listinfo/gvsig-desktop-devel

Reply via email to