When i use a hexcolor in my svg the complete svg is not visible..
is that a bug in openlayers??


*WORKING*

var svg = '<svg width="120" height="120" version="1.1" 
xmlns="http://www.w3.org/2000/svg";>'
+ '<rect x="0" y="0" width="40" height="50" *stroke="red"* stroke-width="3" 
"/>'
+ '</svg>';


*NOT WORKING*

var svg = '<svg width="120" height="120" version="1.1" 
xmlns="http://www.w3.org/2000/svg";>'
+ '<rect x="0" y="0" width="40" height="50" *stroke="#ff0000" *stroke-width="3" 
"/>'
+ '</svg>';




var style = new ol.style.Style({
  image: new ol.style.Icon({
opacity: 1,
src: 'data:image/svg+xml;utf8,' + svg,
scale: 1
  })
});

-- 
You received this message because you are subscribed to the Google Groups 
"OpenLayers Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/openlayers-dev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/openlayers-dev/9e24d33d-eca7-4416-85dd-6f2653e859df%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to