[Nodeshot] nodes doesn't appear in the map
Renaud
ml+nodeshot at manda.tagmail.eu
Mon Nov 16 17:35:07 CET 2015
Hello,
First of all thanks for your amazing project !
I'm creating an app based on nodeshot but without the "networking" part.
Indeed my goal s just to be able to represent a set of points on a
Google/OS map. Something simple.
To do it, I created an independent Django app and I created a
synchroniser to sync nodeshot Nodes and the place present inside my
django app.
At first sight everything seems to work as expected after sync I see in
postgres nodes with infos injected by our synchroniser.
However when I load the /#map/ I don't see any points on my maps.
Here what I've done on the nodeshot side:
- create an external layer
- configure the layer to use my synchroniser
- force sync in cmdline
If I look at the requests, I see the XHR request to
//api/v1/nodes.geojson with inside my nodes.
ex:
{"type":"FeatureCollection","features":[{"id":"edouard-leon-scott-de-martinville-deces","type":"Feature","geometry":{"type":"Point","coordinates":[48.867885,2.339592]},"properties":{"name":"Édouard-Léon
Scott de Martinville
Décès","layer":"events-characters","layer_name":"events
characters","user":null,"status":null,"elev":null,"address":"9 Rue
Vivienne,
Paris","description":null,"updated":"2020-11-12T15:20:03.880312Z","added":"2020-11-12T15:20:03.877398Z","details":"http://192.168.2.136:8000/api/v1/nodes/edouard-leon-scott-de-martinville-deces/"}},{"id":"edouard-leon-scott-de-martinville-residence","type":"Feature","geometry":{"type":"Point","coordinates":[48.867885,2.339592]},"properties":{"name":"Édouard-Léon
Scott de Martinville
Résidence","layer":"events-characters","layer_name":"events
characters","user":null,"status":null,"elev":null,"address":"9 Rue
Vivienne,
Paris","description":null,"updated":"2020-11-12T15:20:03.868556Z","added":"2020-11-12T15:20:03.865316Z","details":"http://192.168.2.136:8000/api/v1/nodes/edouard-leon-scott-de-martinville-residence/"}},...}]}
I used the default.ui provided by nodeshot less the call to
links.geosjon, because in my case I've no "links".
When I try to watch vars inside maps.js or app.js I see the nodes....
I don't have JS error (in the Chrome console) and the layer is flag
visible in the toolbar (layer part)...
Is someone have an idea of what could happen ?
Cheers,
Renaud
More information about the Nodeshot
mailing list