That’s what I did Dave…
msg.payload={name:"Joe", lat:51, lon:-1.05};
done in a function node feeding the map node – which is fed by a simple injector. Works a treat FOR THE EXAMPLE perhaps with a different name.
And if I change it to msg.payload={name:"Brian", lat:51, lon:-1.05};
and inject that after hitting refresh on the map – I get the nice red mark again – and it says Brian.. LOVELY.
But… if I change the coordinates – even slightly … for example
msg.payload={name:"Brian2", lat:52, lon:-1.05};
I get zilch – nothing – no red mark, no moving map to the new coordinates..
I am msg.payload = {name:"Pete", lat:37.73, lon:-2.55};
Under no circumstances do I see any marker, nor the map whizzing off to Spain.
The only thing that seems to work – is the example! (obviously I have return msg; at the end of the function)
Pete.
--
http://nodered.org
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to a topic in the Google Groups "Node-RED" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/node-red/UkwR4MfoxzQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to node-red+u...@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
For more options, visit https://groups.google.com/d/optout.
I’ve tried again with my Spanish address and realised that in fact I am there – the little red indicator – but the map made no attempt to move to that location – I had to find it. It just stays in England until you manually go zooming out… What am I missing, do you know?
From: node...@googlegroups.com [mailto:node...@googlegroups.com] On Behalf Of Dave C-J
Sent: 30 May 2016 23:26
To: node...@googlegroups.com
Subject: Re: [node-red] node-red-contrib-web-worldmap issues
Peter
--
Yes thanks once I got your email - but you have to do that every time you start up the map…. Can we make that the default? Surely that should be the default behaviour???
Pete.
From: node...@googlegroups.com [mailto:node...@googlegroups.com] On Behalf Of Dave C-J
Sent: 31 May 2016 01:06
To: node...@googlegroups.com
Subject: Re: [node-red] node-red-contrib-web-worldmap issues
Did you try hitting the hamburger menu icon top right ?
--
Re; other email - so I have to set that pan feature every time I start up the map – also the zoom level is right out – ie when it pans to my address in Spain – I can see most of Spain….yet the original London picture showed a small area. Again am I missing something – can’t see a zoom setting you can do in Node-Red…
Pete.
From: node...@googlegroups.com [mailto:node...@googlegroups.com] On Behalf Of Dave C-J
Sent: 31 May 2016 01:06
To: node...@googlegroups.com
Subject: Re: [node-red] node-red-contrib-web-worldmap issues
Did you try hitting the hamburger menu icon top right ?
--
Not when you are plotting lots of things. Bouncing around is very annoying. You can change the start position by going to where you want and selecting the map you want. Then going to menu and turn lock on, (and off again).
And zoom is standard + and - top left
Or mouse wheel. Or double click to zoom in.
Ok, understand – not quite what I thought it was – thanks for the clarification – that’s great….
Just a thought – if it were possible to make both zoom and pan options controllable by node-red--- if I were taking in location info from say a moving mobile phone – tracking someone – I’d want it to stay zoomed in and tracking… that was more my line of thinking…
Pete.
--
Does anyone ever read the documentation ?
https://www.npmjs.com/package/node-red-contrib-web-worldmap#control
Rarely :-) Ta.
On 31 May 2016 08:07:27 Dave C-J <dce...@gmail.com> wrote:
Does anyone ever read the documentation ?
https://www.npmjs.com/package/node-red-contrib-web-worldmap#control
--
That command object... doc says send via websocket. Can you send that directly into the input as per the other input material example you gave???
On 31 May 2016 08:07:27 Dave C-J <dce...@gmail.com> wrote:
Does anyone ever read the documentation ?
https://www.npmjs.com/package/node-red-contrib-web-worldmap#control
--
Wonderful. Thank you!!
Pete
On 31 May 2016 10:39:12 Dave C-J <dce...@gmail.com> wrote:
yes - used to use websocket - now all via the node... - docs now updated (v1.0.5)
--
My thoughts exactly but I’m very grateful for that link because actually, it was easy and solved my problem – maybe- in very FEW circumstances there is some justification for reading manuals. I wouldn’t do it for a living though J
From: node...@googlegroups.com [mailto:node...@googlegroups.com] On Behalf Of Julian Knight
Sent: 01 June 2016 21:19
To: Node-RED <node...@googlegroups.com>
Subject: Re: [node-red] node-red-contrib-web-worldmap issues
Docu-what?
--
Yup – that’s EXACTLY what I was thinking – but let us know if you get the latter to work reliably. When I tried Cloudtrax – going in and out of WIFI and GPRS etc… eventually it would lose the plot – it might have improved…
Between the two of them – we have ourselves a tracking system J
We're well off topic now but hey...
I've also just recently installed one of their AC-lite access points. Brilliant so far. Rock solid, better signal range, config was not hard, and so far I seem to be the only 5ghz ap around...
Surely tempted to turn on the visitor landing page with credit card, to limit the kids :-)