[Nodeshot] nodes doesn't appear in the map

Nemesis nemesis at ninux.org
Sun Nov 22 20:23:00 CET 2015


Hi Renaud,

sorry for my late response.

There should be no issues in showing the nodes on the map.

I don't remember why the status is allowed to be null but it would be
better to throw a validation error in case is empty.

Have you deployed your project online yet? If I could take a look
debugging would be easier.

Best regards
Federico


On 11/18/2015 02:08 AM, Renaud wrote:
> Following to my previous email I progress a little bit. Now I can show
> my nodes on the map only if:
> - a node have a status (but the model permit None value)
> - I toggle manually the layer (in the toolbar) from ON to OFF and then
> ON again
>
> Have you an idea why at the first load the nodes aren't load on the map
> ? I'm trying to investigate over the map.js and app.js in the default.ui
> but javascript is not my preferred language :)
>
> If you have some tips ;)
> Thanks,
>
> Renaud
>
> Renaud a écrit :
>
>
>> 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
>>
>> _______________________________________________
>> Nodeshot mailing list
>> Nodeshot at ml.ninux.org
>> http://ml.ninux.org/mailman/listinfo/nodeshot
>
> _______________________________________________
> Nodeshot mailing list
> Nodeshot at ml.ninux.org
> http://ml.ninux.org/mailman/listinfo/nodeshot





More information about the Nodeshot mailing list