leaflet-polygon-fillPattern
leaflet-polygon-fillPattern copied to clipboard
Impossible to customize url dress
Hello thanks to your plugin !
When I give fill a constant value like fill:'url(image.gif)' it works
But when I try to make it with a variable, it doesn't work (can't find the texture) var imageName = image; fill:'url('+imageName+'.gif)'
I can't get the syntax right
Did you try using quotes around image name?
var imageName = 'image';
var styleDefinition = {
fill: 'url(' + imageName + '.gif)'
};
Works in Chrome console