Re: [Interest] MapboxGL offline and custom vector tiles source

2019-12-22 Thread Paolo Angelelli
Hi, a semi-OT reply:

do your own geojson tiles include text or are you only going to display 
geometric
shapes in the map?
Asking because since 5.14 there's some GeoJson support, and, together with a 
custom model
that could be used to populate a map with custom vectors


On Thu, 19 Dec 2019 17:22:25 +0100
maitai  wrote:

> Hello,
> 
> We would like to serve custom vector tiles, ideally though an API call 
> or eventually a local server/stream. We don't want to add data or layers 
> to an existing mapbox chart, but rather respond to tile queries by 
> sending our own geojson tiles. We have already done that for OSM plugin 
> (with raster tiles), but we don't really know where to start with 
> concerning mapbox vector tiles.
> 
> The tiles are not stored in a database or mbtiles, but need to be 
> generated on request.
> 
> What would be the best approach to achieve that?
> 
> Thanks for any tip
> Philippe.
> ___
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest

___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] MapboxGL offline and custom vector tiles source

2019-12-22 Thread Ola Røer Thorsen
tor. 19. des. 2019 kl. 17:24 skrev maitai :

> We would like to serve custom vector tiles, ideally though an API call
> or eventually a local server/stream. We don't want to add data or layers
> to an existing mapbox chart, but rather respond to tile queries by
> sending our own geojson tiles. We have already done that for OSM plugin
> (with raster tiles), but we don't really know where to start with
> concerning mapbox vector tiles.
>
>
Some tips in general for custom vector tiles that have worked for me:
- take a look at everything at openmaptiles.org
- to have your Qt mapbox-gl plugin to load data from your own tile server,
use the "mapboxgl.mapping.additional_style_urls" plugin parameter
- your own map style needs to point to your own tile server for the source
data

There are several open source mbtiles servers out there, or you can write
your own and even run it as a part of your main application.


> The tiles are not stored in a database or mbtiles, but need to be
> generated on request.
>

Maybe this here is relevant,
https://openmaptiles.org/docs/generate/custom-vector-from-shapefile-geojson/

Cheers,
Ola
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest