Open bozdoz opened 3 years ago
should be easy enough to alter the svg through Leaflet options in JavaScript, or maybe through PHP (not a fan).
For example: https://github.com/bozdoz/wp-plugin-leaflet-map/blob/master/scripts/leaflet-svg-icon.js#L37-L44
var path = svgCreate('path', { fill: this.options.background, d: 'M182.9,551.7c0,0.1,0.2,0.3,0.2,0.3S358.3,' + '283,358.3,194.6c0-130.1-88.8-186.7-175.4-186.9' + 'C96.3,7.9,7.5,64.5,7.5,194.6c0,88.4,175.3,357.4,' + '175.3,357.4S182.9,551.7,182.9,551.7z', });
d could be this.options.path, or something.
We could set some default values in the admin ("svg path", or something with the default).
Good pick for a custom variable #118
should be easy enough to alter the svg through Leaflet options in JavaScript, or maybe through PHP (not a fan).
For example: https://github.com/bozdoz/wp-plugin-leaflet-map/blob/master/scripts/leaflet-svg-icon.js#L37-L44
d could be this.options.path, or something.
We could set some default values in the admin ("svg path", or something with the default).