I am attempting to include a divicon marker in angular leaflet.
component.css:
.leaflet-div-icon2
{
background: #e5001a;
border:5px solid rgba(255,255,255,0.5);
color:blue;
font-weight:bold;
text-align:center;
border-radius:50%;
line-height:30px;
}
component.ts :
var map = L.map('map', {
attributionControl: false,
crs: L.CRS.Simple
});
var bounds = [[0,0], [1000,1000]];
var image = L.imageOverlay('cust_image.png', bounds).addTo(map);
var customMarkerIcon = L.divIcon({className: 'leaflet-div-icon2'});
var m3 = L.latLng([ 348,278.2]);
L.marker(m3, {icon: customMarkerIcon }).addTo(map);
I am not receiving any errors in the console but the marker is not showing up on the map.
This setup works fine on a basic HTML page with CSS and JS, but for some reason it's not working within Angular.
Is there something I am overlooking here?