I apologize to OL users, the mistake (better say, blunder) is mine.
Now, I see where the problem is. The layer is created with this peace of
code:

    myLayer = new OpenLayers.Layer.Vector("gotoMarkers",
        {
          styleMap: new OpenLayers.StyleMap({
                "default": new OpenLayers.Style({
                    externalGraphic: "./img/marker.png",
                    graphicXOffset: -14,
                    graphicYOffset: -28,
                    pointRadius: 14 
                }),
                "select": new OpenLayers.Style({
                    externalGraphic: "./img/marker-gold.png",
                    graphicXOffset: -17,
                    graphicYOffset: -34,
                    pointRadius: 17 
                    })
            }),
            isBaseLayer: false,
            setVisibility: true,
            displayInLayerSwitcher: false,
            rendererOptions: {yOrdering: true}
        }
    );
    map.addLayer(myLayer);

Instead of "visibility: true", I have miswritten "setVisibility: true"
Of course, there will be problems with setVisibility() function; it was
overridden with the new introduced property.

Sorry, again!


--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/OpenLayers-Layer-Vector-setVisibility-true-false-tp6715514p6717677.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to