elshae wrote:
> 
> Hello OpenLayers,
> 
> I have a vector layer with features that I customize using a style map.  I
> am trying to put a white border around my features (which are photos from
> the Panoramio API) to make them stand out on darker base layers like
> Google Hybrid and Google Physical.  When I change other attributes of this
> style map, I can see my features changing i.e. if I change pointRadius I
> do see the size of my features change, so it seems like my code is
> correct.  Yet when I go ahead and test my stroke attributes, I do not see
> any changes nor do I see a border around my vector features.  Here is a
> snippet of my code, if anyone can point out my errors I'd be very
> grateful.
> 
> var panoramio_style2 = new OpenLayers.StyleMap({'default':
> OpenLayers.Util.applyDefaults({
>               pointRadius: 15,
>               fillColor: "white",
>               fillOpacity: 1,
>               stroke: true,
>               strokeColor: "white",
>               strokeWidth: 1,
>               strokeLinecap: "square",
>               externalGraphic: "${photo_file_url}"
>       }, OpenLayers.Feature.Vector.style["default"])});
> 
>       var vectorPano = new OpenLayers.Layer.Vector("Panoramio Photos", {
>               projection: "none",
>               styleMap: panoramio_style2
>       }, {isBaseLayer: false, visibility: false, displayInLayerSwitcher:
> false});
> 
>       vectorPano.addFeatures(features);
>       map.addLayer(vectorPano);
> 
> Thank you for all your time,
> 
> elshae
> 

What happens if you add 

strokeOpacity: 1

I do not know if there is a default Opacity and what the value is, but give
it a try...
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Customized-Border-on-Vector-Feature-tp5899787p5905428.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