Hi Gabriel,

Looks like the example you are using and perhaps the documentation are both 
out of date on this topic.

The example you are trying to use is for TileStache, which we removed at 
version 5.

If you are trying to use a layer from Geoserver or similar, you’ll need to 
craft your mapbox style JSON (
https://docs.mapbox.com/mapbox-gl-js/style-spec/) with your custom map 
layers and sources, then use the add_mapbox_layer command (
https://arches.readthedocs.io/en/dev-5.1/creating-new-map-layers/#mapbox-layers
)

Additionally, I don’t think that custom popups are currently supported in 
5.1 but there is a feature ticket for that, so I imagine it will be added 
soon.

I hope that helps.
- Rob

On Thursday, October 29, 2020 at 4:02:20 AM UTC-7 [email protected] 
wrote:

> I am configuring the .json following the sample for arches4-example-pkg 
> <https://github.com/archesproject/arches4-example-pkg/blob/master/map_layers/tile_server/overlays/vector_example/vector_example.json>,
>  
> in the .json doesn't have a section for the "sources", so when I run the 
> scrypt to add_mapbox_layer return me with the keyerror: "sources". I have 
> follow the documents 
> <https://arches.readthedocs.io/en/dev-5.1/creating-new-map-layers/>, but 
> there are something that  I am missing, when defining the source in the 
> "sources" section, I have search in the Mapbox documents too but I cannot 
> find how should be added this section, if should be added.
>
> Thanks in advance for pointing me in some direction.
>
>
> Regards,
>  
>
>
>
>
>  
>
>
>
> On Thursday, 22 October 2020 at 12:42:27 UTC+1 Gabriel Contreras wrote:
>
>> Hello,
>>
>> I am adding some layers to my arches project, I have added some samples 
>> using geoserver using postgis as WMS services.
>> I would like to have the same layer but having the capability of popup 
>> information from each feature. 
>>
>> I have tried to add it by using the example and adding it following this 
>> instructions in arches documentation 
>> <https://arches.readthedocs.io/en/stable/creating-new-map-layers/>, but 
>> I am missing something and is not working, I have tried with the samples 
>> provided in arches-4-example 
>> <https://github.com/archesproject/arches4-example-pkg/tree/master/map_layers/tile_server/overlays/vector_example>
>>  for 
>> vector examples, but still something I am missing.
>>
>> I run the SQL query for the table poly_testing and to add the source I 
>> have tried both way, adding directly the source to django administration 
>> and the layer ()
>>
>> [image: Screenshot from 2020-10-22 12-33-52.png]
>>
>> [image: Screenshot from 2020-10-22 12-33-34.png]
>>
>>
>>
>> And also running the scrypt from the same folder where the 
>> poly_testing.json and meta.json are located :
>>
>> python  manage.py packages -o add_mapbox_layer -j  poly_testing.json -n 
>> "poly_testing"
>>
>> NExt step I will try is to customize map popup. 
>>
>>
>> Than you very much in advance. 
>>
>> Best
>>
>

-- 
-- To post, send email to [email protected]. To unsubscribe, send 
email to [email protected]. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/3e9cab96-4948-43f8-956c-2a593fc00b78n%40googlegroups.com.

Reply via email to