According to the documentation on Vue2Leaflet, a marker can be created using
<l-marker :lat-lng="latLng" ></l-marker>
.
However, due to certain requirements, I need to create the marker from JavaScript rather than within the
<template></template>
. Can I achieve this using a syntax similar to Google Maps? (e.g.,
new google.maps.Marker({
position: latLng,
map: map,
});
Thank you!