Adding geo location to bettermap

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
goochjs
Posts: 10
Joined: Wed Jul 11, 2018 9:24 am

Re: Adding geo location to bettermap

Post by goochjs »

That's a good idea. It does indeed seem to be data-related.

Code: Select all

app.js:11 Error: Invalid LatLng object: (undefined, 53.42979,-2.912128)
    at new e.LatLng (module.js?ver=2.0.0-3.1.1-nagios-5:7)
    at module.js?ver=2.0.0-3.1.1-nagios-5:11
    at Function._a (app.js?ver=2.0.0-3.1.1-nagios-5:10)
    at module.js?ver=2.0.0-3.1.1-nagios-5:11
    at i (app.js?ver=2.0.0-3.1.1-nagios-5:12)
    at app.js?ver=2.0.0-3.1.1-nagios-5:12
    at Object.$eval (app.js?ver=2.0.0-3.1.1-nagios-5:12)
    at Object.$digest (app.js?ver=2.0.0-3.1.1-nagios-5:12)
    at Object.$apply (app.js?ver=2.0.0-3.1.1-nagios-5:12)
    at f (app.js?ver=2.0.0-3.1.1-nagios-5:12)
(anonymous) @ app.js?ver=2.0.0-3.1.1-nagios-5:11
app.js:11 TypeError: f.get_data is not a function
    at Object.f.editSave (app.js?ver=2.0.0-3.1.1-nagios-5:26)
    at app.js?ver=2.0.0-3.1.1-nagios-5:12
    at app.js?ver=2.0.0-3.1.1-nagios-5:12
    at app.js?ver=2.0.0-3.1.1-nagios-5:13
    at Object.$eval (app.js?ver=2.0.0-3.1.1-nagios-5:12)
    at Object.$apply (app.js?ver=2.0.0-3.1.1-nagios-5:12)
    at HTMLButtonElement.<anonymous> (app.js?ver=2.0.0-3.1.1-nagios-5:13)
    at HTMLButtonElement.dispatch (app.js?ver=2.0.0-3.1.1-nagios-5:8)
    at HTMLButtonElement.q.handle (app.js?ver=2.0.0-3.1.1-nagios-5:8)
(anonymous) @ app.js?ver=2.0.0-3.1.1-nagios-5:11
I'll try mapping it to a new field, as separate sub-fields for lat and long, and then cast the new field to a geo-point.

J.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Adding geo location to bettermap

Post by scottwilkerson »

goochjs wrote: I'll try mapping it to a new field, as separate sub-fields for lat and long, and then cast the new field to a geo-point.
that sounds like a good idea
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked