Closed dceejay closed 3 years ago
I'm not seeing anything on the map when I click the inject buttons in the example flow.
Do I need to enable a layer on the left hand side?
Odd - latest worldmap ? and it has connected ? should just get
Worldmap v2.8.1
How would I know it's connected?
Hmm, looks to work on Chrome but not firefox
bottom left green = connected :-) - or indeed
Ignore me, firefox autocomplete URL had stuck me on the wrong instance. Looks good
so yes - still to debate... I went with action - send... as the worldmap actually send out all it's feedback with an action property so we could (at some point) feed them straight in to update a fence... but... the worldmap itself (for most things) takes a "command" property - and reality is may not want all actions going into fence as a) not necessary and b) it can only handle one shape at a time (currently) so needs to be some logic in front to only allow a certain (matching name?) updates in.. maybe... dunno... and 2) I used send because err. - is show better ? or even showFence ? or...
I still think it should output the input to the worldmap on an optional second output so users don't need to filter the output before putting it through any other down stream nodes.
why ? it would only be sent if they ask so won't affect existing (as they won't know to ask). What sort of nodes would care ?
I'm assuming that the output of the geofence node is not just connected to the worldmap node and is being used to trigger events based on the in/out status of the messages
true - but in that case (not going to worldmap) why would you ask it to send the fence out ?
(at end of the day I don't mind a second output - just seems like extra ui/config/things to think about/hassle)
I'm saying the output goes to both the worldmap and something else, or through other things before going to the worldmap
Hi,
ok - couldn't resist... added action property to allow sending in options to geofence... Initial PR just add msg.payload.action == "send" to send out existing fence shape in a format suitable direct to worldmap. Currently uses node name as the shape name, add to a layer to geofence, and the border colour = red for trigger when inside, green = trigger when outside and yellow for the "both"/inout behaviour.
Example flow below