[gvSIG-devel] [Gvsig_english] How could hidden the route in gvsig mini project
刘应杰
lyj_uptech at 126.com
Thu Mar 8 02:41:48 CET 2012
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://joinup.ec.europa.eu/mailman/archives/gvsig-desktop-devel/attachments/20120308/39336e2d/attachment.html>
More information about the gvSIG-desktop-devel
mailing list