I required my style sheet at the top, which is being compiled by webpack
require('./searchResults.scss');
which contains:
.labels {
color: white;
font-family: 'Roboto'
}
Created a new marker:
createMarker(lat, lng) {
var marker = new google.maps.LatLng(
lat, lng
);
return new MarkerWithLabel({
position: marker,
map: this.map,
icon: this.state.icon,
labelContent: '14'
labelClass: "labels", // the CSS class for the label
})
}
However my styles are not showing up. Styles for other elements do show up.
I required my style sheet at the top, which is being compiled by webpack
require('./searchResults.scss');which contains:
Created a new marker:
createMarker(lat, lng) {
However my styles are not showing up. Styles for other elements do show up.