Dashboards & Visualizations

Wierd JavaScript differences between instances (Dashboard with LeafLet Map)

hbrandt84
Path Finder

Hi,

I'm currently stumped with with wierd JavaScript problems while migrating a Dashboard with a Leaflet Map from a physical 7.0.1 machine instance to a virtual 7.1.1 one (running on Axure).

I've reduced the Problem to this code:

alt text

the script is run successfully on the 7.0.1 instance, but the 7.1.1 has problems.
Namely this part:

alt text

with following message:
"leaflet.js:6 Uncaught TypeError: Cannot read property '_leaflet' of null"

But as I see it, its the most barebone way to initialize a new map object.
Plus, the line "console.log(L);" indicates in the js console that L is included and i can browse all functions, even "map:ƒ (e,t)"...

so, I am absolutely clueless what could cause such a different behaviour.
Perhaps a permission issue or something?

Any insight is would be highly appriciated...

thanks,
Henning

p.s.
sorry 'bout the images.
But the tags didn't seem to work for me...

0 Karma
1 Solution

jeffland
SplunkTrust
SplunkTrust

Check out this problem I had some time ago here, maybe it helps if you require leaflet separately (it also had to do with changing versions back then).

View solution in original post

0 Karma

jeffland
SplunkTrust
SplunkTrust

Check out this problem I had some time ago here, maybe it helps if you require leaflet separately (it also had to do with changing versions back then).

0 Karma

hbrandt84
Path Finder

thx, worked for me

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...