it is possible to set visibility to false via option. Use visibility:false Arnd
-----Ursprüngliche Nachricht----- Von: [email protected] [mailto:[email protected]] Im Auftrag von Wyo Gesendet: Sonntag, 9. Januar 2011 21:53 An: [email protected] Betreff: [OpenLayers-Users] Re: AW: Displaying relations and download as KMLfile Arnd Wippermann wrote: > 1. Set the visibility of the layer to false before adding to the map. > > layers[i].setVisibility(false); > map.addLayer (layers[i]); > Thanks that works albeit I'm wondering if it isn't possible to set visiblility to false via option. I prefer to use options wherever possible, the souce code seems more readable then. > 2. This example may help > http://dev.openlayers.org/releases/OpenLayers-2.10/examples/vector-for > mats.h > tml > That means I just have to write format kml into a variable and change it afterwards to my liking (e.g. change it to a single way). Besides is there anywhere a sample how to remove coordinates close together? In the overview page they don't need to be so detailed. Wyo _______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users _______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
