How do I change / color the icon / marker on the leaflet

How do I change / color the icon / marker on the leaflet, I use geojson, use 2 different geojson from each other in this case the panels and lights, here I will give the 2 geojson, this is the link in question
https://tholabulilmi.info/apps/datasurvey/map.php?id=436
I want the marker / icon panel to be different from the light point, thank you

enter code here (lampu geojson)

   
        # Pass Longitude and Latitude Columns here
        'coordinates' => array($row['longitude'], $row['latitude'])
    ),
    # Pass other attribute columns here
    'properties' => array(
        //'kode' => $row['kode'],
        //'marker-color' => '#e60f0f',
        'jenis_lampu' => $row['jenis_lampu'],
        'watt' => $row['watt'],
        'tiang' => $row['tiang'],
        'kabel' => $row['kabel'],
        'kondisi' => $row['kondisi'],
        'Date' => $row['Date'],
        //'tipe' => '1',
        'keterangan' => $row['keterangan']
        )
    );
# Add feature arrays to feature collection array
array_push($geojson['features'], $feature);

}

    # Pass other attribute columns here
    'properties' => array(
        //'marker-color' => '#e60f0f',
        'Idpel' => $row2['idpel'],
        'Rayon' => $row2['rayon'],
        'Daya' => $row2['daya'],
        'Alamat Lengkap' => $row2['alamat_lengkap'],
        'Date' => $row2['Date'],
        //'tipe' => '0',
        'Keterangan' => $row2['keterangan']
        )
    );
    array_push($geojson['features'], $feature);

6 thoughts on “How do I change / color the icon / marker on the leaflet”

  1. 93414 483713Oh my goodness! an outstanding article dude. Thanks a whole lot Even so Im experiencing difficulty with ur rss . Do not know why Struggle to register for it. Can there be any person locating identical rss concern? Anyone who knows kindly respond. Thnkx 952951

    Reply
  2. 139310 548365Spot on with this write-up, I should say i believe this superb website needs considerably much more consideration. Ill probably be once once more to learn a fantastic deal far more, several thanks that data. 378767

    Reply

Leave a Comment