nbs-system / mapster

Live events map as a Kibana plugin
GNU General Public License v3.0
73 stars 34 forks source link

functions doesn't work on kibana 4.5.0 and 4.5.1 #8

Closed y0uzha closed 7 years ago

y0uzha commented 7 years ago

hi. i'm trying to using this plugin on kibana 4.5.0 and 4.5.1 but it doesn't work normally on it. all the functions doesn't work. for example : 2d map, timestamp, target location, etc. it only shows 3d maps and there are no any arrows showed event i've set the geohash field.

is there any config that i've missed? pls advice

screenshot from 2017-07-19 13 35 58

xarkes commented 7 years ago

Hi, This should be working on 4.5.1 as well as on 4.5.0. Are you sure you read the Readme correctly ? The aggregations order and types are strict. If you want a 2D map you have to (un)check it into the parameters panel (right of the Data panel as you can see on your screenshot).

xarkes commented 7 years ago

Also note that the multiple target location might be broken, so try with a single target first, and let me know about it. Another usefull thing would be to print the javascript logs of your browser, there might be some warnings and error there.

y0uzha commented 7 years ago

Hi,

i've uncheck use a 3d map and apply changes but it still show 3d map on there and i've got some error message on my js logs like pictures below

screenshot from 2017-07-19 14 14 44

screenshot from 2017-07-19 14 19 48

xarkes commented 7 years ago

I think you have to refresh for the effects to take place. Also as you can see, you forgot one required aggregation, this is the one which is going to set the type and color of your event. After setting it and refreshing with F5 everything should be fine.

y0uzha commented 7 years ago

i have try to refresh with f5 and now i've got the blank white map. i've got an error renderer message like below. this error only showed when i try to renderer 2d map.

screenshot from 2017-07-19 14 45 24

xarkes commented 7 years ago

Yes there was a small issue, try again with the latest commit

y0uzha commented 7 years ago

The error renderer still shows with the latest commit. and now there is another error too with it. screenshot from 2017-07-19 15 52 39

y0uzha commented 7 years ago

sorry, i think the two errors below renderer error just because target location is not set. so i try to set the target location and then i found a new one error message.

screenshot from 2017-07-19 15 58 20

xarkes commented 7 years ago

Ok sorry I did some refactoring, now it should be working fine !

y0uzha commented 7 years ago

so sorry but the error still same like before

screenshot from 2017-07-19 16 44 30

i think the geohash.toLowerCase error caused by target location parameter. that error appear only when i use target location parameter. even i'm using 3d map

xarkes commented 7 years ago

Hmm have you tried restarting Kibana ? There might be some code cached which is why it cannot find the render function (which was not declared before). About the toLowerCase error I don't know where it comes from, it is used by some libraries, maybe their API changed and they might need an update. But try first restarting Kibana so there's no old Mapster version cached.

y0uzha commented 7 years ago

yap i've already restart kibana before. i'm sure there is no cached anymore. i'm using the private window too on my browser but it still error like before

xarkes commented 7 years ago

I'm sorry but I cannot test on my computer now. Can you try with commit 0493ef24187cdb86c5b8a973029edd439cb81fef ?

xarkes commented 7 years ago

But are you sure you followed the instructions in the README ?

rm -r optimize/bundles
./bin/kibana
y0uzha commented 7 years ago

ah you're right. i'm really sorry for my mistakes. i forgot to delete the bundles directory after i clone the new commit. now the 2d maps has been successfully rendered.

thank you so much for your help.

xarkes commented 7 years ago

You're welcome.