All Apps and Add-ons

Can we get access to the L.map object to implement our own features?

jeffland
SplunkTrust
SplunkTrust

I was wondering if I as a dashboard user could access the leaflet map object which was created by the visualization in my own javascript code somehow. My intention is to add some lines and other things which would require me to add a layer or two to the map and draw on them.

Maybe I'm thinking too specific, but I don't really see any other way to change the content of the map other than having the actual object.

Thanks!

0 Karma

sundareshr
Legend

You can create your own map using leaflet libraries

http://leafletjs.com/index.html

0 Karma

jeffland
SplunkTrust
SplunkTrust

But I already have a map object created by the viz, I don't need another one.

0 Karma

shaskell_splunk
Splunk Employee
Splunk Employee

Currently there is no way to expose any hooks into the javascript to the end-user via the API. I'll reach out to you via email shortly to see what your use case is and potentially extend the app to support drawing on the map.

0 Karma
Get Updates on the Splunk Community!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...