Skip to content

How to use this with ReactJS? #13

Description

@EngineeredTruth

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions