-2
showMap() {
        var src = 'https://github.com/Fireflymedia-github/firefly/blob/master/kml/Ligne'
        //var src = 'https://raw.githubusercontent.com/Fireflymedia-github/firefly/kml/Ligne';
        //  var src = 'https://raw.githubusercontent.com/amad1dia/my-pocket/firefly/kml-ff/Ligne';

        const location = { lat: 14, lng: -17 };
        var options = {
            center: location,
            zoom: 100,
        }

        const map = new google.maps.Map(this.mapRef.nativeElement, options);
        for (let index = 1; index < 45; index++) {
            this.addKmlLayer(map, src, index);
        }
        //this.addMarket(map, location);
    }

    addMarket(pos, map) {
        return new google.maps.Marker({
            position: pos,
            map: map,
        });
    }

    addKmlLayer(map, src, index) {
        return new google.maps.KmlLayer({
            //Dans le serveur les fichiers kml sont nommés du genre Ligne1AFTU.kmz
            url: src + index + 'AFTU.kmz?raw=true',
            map: map
        });
    }
Ahmad Alfy
  • 13,107
  • 6
  • 65
  • 99

1 Answers1

-2

You can change the size of your marker by adding a scaledSize or a size property to your marker icon.

More infos here : https://developers.google.com/maps/documentation/javascript/markers#complex_icons

Regards