Hi Rob,
Thanks for your answer, I really apreciate it.
I have tried with the geoserver option, I configured the json like:
{"version": 8,
"name": "areas_poly",
"sources": {
"areas_poly": {
"type": "vector",
"tiles":
["http://localhost:8080/geoserver/gwc/service/wmts?REQUEST=GetTile&SERVICE=WMTS&VERSION=1.0.0&LAYER=test_training:areas_poly&STYLE=&TILEMATRIX=EPSG:900913:{z}&TILEMATRIXSET=EPSG:900913&FORMAT=application/vnd.mapbox-vector-tile&TILECOL={x}&TILEROW={y}"
],
"minZoom": 0,
"maxZoom": 14
}
},
"layers": [{
"id": "areas_poly",
"source": "areas_poly",
"source-layer": "areas_poly",
"type": "fill",
"paint": {
"fill-outline-color": "#FFFFFF",
"fill-color": "#000080",
"fill-opacity": 0.5
}
}]
}
but after run the command python manage.py packages -o add_mapbox_layer -j
areas_poly_geoserver.json -n "areas_poly_geoserver1"
I have several errors of bad request :
Error {status: 400, url:
"http://localhost:8080/geoserver/gwc/service/wmts?R…cation/vnd.mapbox-vector-tile&TILECOL=2&TILEROW=1",
name: "e", message: "Bad Request"}
I have look into the configuration of the tile cache configuration and the
guidance in geoserver but cannot find what is wrong.
Lately I have reading about crunchydata
<https://info.crunchydata.com/blog/dynamic-vector-tiles-from-postgis> using
MVT, is this an option for arches 5? how should be implemented in case it
could be?
Thank you very much for your help in advance Rob.
On Wednesday, 4 November 2020 at 22:47:58 UTC Rob Gaston wrote:
> 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/ec885e4d-b216-498e-b482-083c0c7091f2n%40googlegroups.com.