ios – Chosen Marker Decrease Opacity (Ionic Angular Framework)

[ad_1]

this.stations.forEach((station) => {
        const marker = new google.maps.Marker({
          map: this.googleMap,
          icon:
            station.worth >= 1 && station.worth <= 1.7
              ? 'belongings/photos/custom_marker_Green.svg'
              : station.worth > 1.7 && station.worth <= 1.8
              ? 'belongings/photos/custom_marker_Yellow.svg'
              : station.worth > 1.8
              ? 'belongings/photos/custom_marker_Red.svg'
              : 'belongings/photos/custom_marker_Grey.svg',
          label:  ' + 'D: €' + station.d_price,
            fontSize: '10px',
            fontWeight: 'daring',
            coloration:
              station.worth > 1.7 && station.worth <= 1.8
                ? '#000000'
                : '#000000',
          ,
          place: {
            lat: Quantity(station.latitude),
            lng: Quantity(station.longitude),
          },
          customInfo: station,
        });
        this.markerlist.push(marker);

[ad_2]

Leave a Reply