Closed fogs closed 1 year ago
Are you sure you're passing iconSize
in the right place? I just tried to reproduce your issue and the icon size is correctly applied when used along startIconUrl
.
Note that the iconSize
needs to be passed under marker_options
in the options
object:
new L.GPX(url, {
async: true,
marker_options: {
startIconUrl: 'pin-icon-start.png',
endIconUrl: 'pin-icon-end.png',
shadowUrl: 'pin-shadow.png',
iconSize: [16, 22],
},
}).on('loaded', function(e) {
// ...
});
Feel free to re-open if that still doesn't do it.
...same applies to other options, same applies to endIconUrl.
To reproduce, create a
new L.GPX
with the optioniconSize: [330, 500]
- the markers now should be huge.The problem seems to be that
only takes into consideration the Url, but not the other default parameters. I could fix it by replacing it with this:
(but I am not sure if this is the right way to do. Also for endIcon it needs to be adapted as well)