Hi,

that behaviour is run by the AcetateOverlay, take a look to its onSingleTapUp method, it currently opens the ResultSearchActivity if you need to open your custom activity, just override that method and set your own AcetateOverlay to the MapView.

Regards.

--

Alberto Romeu
---

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


El 08/03/12 02:41, ??? escribió:
/Hi Alberto:
/
/      Thanks you very much;/
//
/ I find the overlayname defined in the file /VectorGPEDriver.java, in the function initialize():
     if (ov.getName() == null || ov.getName().length() == 0) {
             ov.setName(getFilePath() + i);
     }
So the real name of overlay is define in the kml files,for example ,the kml file as follow:

<?xml version='1.0' encoding='UTF-8'?>

<kml xmlns='http://earth.google.com/kml/2.2'>

<Document><name>20111027_0845xxx-xxx.kml</name>

So the name will be "20111027_0845xxx-xxx.kml".and the way we should call the function is as follow:(both of them works):

ActivityBundlesManager./getInstance/().getMapView().getOverlay("20111027_0845xxx-xxx.kml").setVisible(*false*);

//this.getMapView().getOverlay("20111027_0845xxx-xxx._kml_").setVisible(false);

There is another question here,when click on the position the gvsig show the dialog "show details".How can I jump to a acvitity which show the details of the position when I click this dialog.

   thank you

                               yours:lori



------------------------------------------------------------------------
? ??,?????????! <http://pub.t.163.com/special/weibotupian/3838.html?from=mail>


_______________________________________________
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