All Apps and Add-ons

KML files not displaying...

dbeuth
Explorer

Hi,

I am trying to overlay my map with a KML or KMZ. I have tried multiple files and have had no luck.

Steps taken
Copied KML and KMZ to
/opt/splunk/etc/apps/leaflet_maps_app/appserver/static/visualizations/leaflet_maps/contrib/kml

Selected format visualization
Selected Overlays
Entered the KML name
Saved
Reloaded dashboard.

Am I doing something wrong?

Cheers

Dan

Tags (1)
0 Karma
1 Solution

dbeuth
Explorer

Found the issue the KML and KMZ files need to be in the maps_plus directory not leaflet_maps

/opt/splunk/etc/apps/leaflet_maps_app/appserver/static/visualizations/maps-plus/contrib/kml

View solution in original post

0 Karma

dbeuth
Explorer

Found the issue the KML and KMZ files need to be in the maps_plus directory not leaflet_maps

/opt/splunk/etc/apps/leaflet_maps_app/appserver/static/visualizations/maps-plus/contrib/kml

0 Karma

t_walter
New Member

Hello Dan

could you post an example kml file. I tried several ones, but they are not displayed. I also check the file location and it seems to be correct.

regards
Thomas

0 Karma

dbeuth
Explorer

Hi Thomas,

Sure, please see below a KML of the Northern Territory in Australia. I created this one using the Shapester app in Splunk.

<kml xmlns="http://www.opengis.net/kml/2.2">
    <Document id="root_doc">
        <Schema name="nt_aus" id="nt_aus">
            <SimpleField name="Name" type="string"/>
        </Schema>
        <Folder>
            <name>nt_aus</name>
        <Placemark>
    <name>NT-Australia</name>
    <Style><LineStyle><color>ff0000ff</color></LineStyle><PolyStyle><fill>0</fill></PolyStyle></Style>
    <Polygon><outerBoundaryIs><LinearRing><coordinates>128.935546875,-14.8810871591 129.001464844,-25.9580446733 137.966308594,-25.9580446733 137.98828125,-16.5730227192 135.3515625,-14.8386115534 136.823730469,-12.3185359417 132.077636719,-11.1568452752 130.275878906,-11.1568452752 130.012207031,-11.8458470441 130.144042969,-12.9189065742 128.935546875,-14.8810871591</coordinates></LinearRing></outerBoundaryIs></Polygon>
</Placemark></Folder>
    </Document>
</kml>

Hope this helps.

Cheers

Dan

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

What Is Splunk? Here’s What You Can Do with Splunk

Hey Splunk Community, we know you know Splunk. You likely leverage its unparalleled ability to ingest, index, ...

Level Up Your .conf25: Splunk Arcade Comes to Boston

With .conf25 right around the corner in Boston, there’s a lot to look forward to — inspiring keynotes, ...

Manual Instrumentation with Splunk Observability Cloud: How to Instrument Frontend ...

Although it might seem daunting, as we’ve seen in this series, manual instrumentation can be straightforward ...