• Hi there.
    My shortcode to display a kml containing several Placemark, where the custom icon is declared inside <Icon>, is as following:
    [leaflet-kml src="https://xxxxx"]{name} - {description}[/leaflet-kml]
    where {name} and {description} are kml <Placemark> fields
    but I’m not able to discover the correct way to display my custom marker icon. It still display the default marker icon…
    So, please help me. Thanx in advantage.
    Stefano

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor hupe13

    (@hupe13)

    You can change the icon with iconurl in options.

    Thread Starter Stefano

    (@stizzy)

    Ok, many thanks. So the final shortcode will be:
    [leaflet-kml src=https://.../file_name.kml iconUrl="https://.../my_icon.png" iconsize=20,20]{name} - {description}[/leaflet-kml]
    Reagards

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘kml custom icon’ is closed to new replies.