Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 229678

Why style settings for map marker is not effective?

$
0
0

I used custom image for map marker but scss settings is not effective. I don’t understand what is wrong with that.


 CurrentMarker(location) {
    let content: any;
    let image = 'assets/img/start.svg';
    let marker = new google.maps.Marker({
      map: this.map,
      animation: google.maps.Animation.DROP,
      position: location,
      icon: image
    });
}

scss



page-mapmodal {
background: rgb(229, 227, 223);

#map {
  width: 100%;
  height: 100%;
}

#map .gmnoprint img {
  width: 60px;
  height: 80px;
}

the output As you can see marker as same size as is.


Viewing all articles
Browse latest Browse all 229678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>