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

2019-12-23 Thread Paolo Angelelli
The current map items implementation is a bit buggy and somewhat slow.
There's one new patch line, hopefully landing in 5.15, that should improve
performance and also the visual appearence

On Mon, 23 Dec 2019 09:46:22 +0100
maitai  wrote:

> Yes it includes texts, images (icons), and many kinds of shapes 
> (polygons filled with patterns, etc).
> 
> I am trying to play with geojson for a week or so to see if it fits my 
> needs, but I am facing some issues with polygons, maybe this is on my 
> side so I need to investigate more.
> 
> Is there a clean way to prevent the plugin to try to download tiles from 
> mapbox or elsewhere and just use custom layers, paints, layouts 
> MapParameters? For the time being I am putting a dummy 
> mapboxgl.mapping.additional_style_urls parameter (http://none) but this 
> is not very clean...
> 
> Philippe.
> 
> Le 23-12-2019 02:05, Paolo Angelelli a écrit :
> > 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  
> ___
> 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-23 Thread maitai
Thanks, I will have a close look.

Philippe

Le 22-12-2019 21:51, Ola Røer Thorsen a écrit :

> 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 [1] 
> - 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
 

Links:
--
[1] http://openmaptiles.org___
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-23 Thread maitai
Yes it includes texts, images (icons), and many kinds of shapes 
(polygons filled with patterns, etc).


I am trying to play with geojson for a week or so to see if it fits my 
needs, but I am facing some issues with polygons, maybe this is on my 
side so I need to investigate more.


Is there a clean way to prevent the plugin to try to download tiles from 
mapbox or elsewhere and just use custom layers, paints, layouts 
MapParameters? For the time being I am putting a dummy 
mapboxgl.mapping.additional_style_urls parameter (http://none) but this 
is not very clean...


Philippe.

Le 23-12-2019 02:05, Paolo Angelelli a écrit :

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

___
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 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


[Interest] MapboxGL offline and custom vector tiles source

2019-12-19 Thread maitai

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