[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mapserver-users
Subject:    Re: [mapserver-users] Status of MVT vector tiles?
From:       Miha_Požauko <mihapozauko () gmail ! com>
Date:       2018-07-16 9:24:07
Message-ID: CAJOgNEA4te0tK=KbmJM-NmC3RW=kHNm9=KzrniUpL-Si4wMiXw () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


It took me some time to configure everything because I migrated everything
on a fresh ubuntu machine where i compiled and installed mapserver and
mapacache for the first time ever (you can imagine the strugle). But
following your instructions i have a working mapserver+mapcache with MVT
support now. Thanks!

Miha

V V čet., 28. jun. 2018 ob 21:57 je oseba Lime, Steve D (MNIT) <
steve.lime@state.mn.us> napisala:

> It generates vector tiles based on WMS requests. MapCache computes the
> proper extent based on the requested tile and then kicks off a WMS call for
> vector tile. The pull request creates support for a new generic "raw"
> format. MapCache doesn't know much about files in this format, just a
> mime-type, so things like metatiling, image processing or tile assembly
> aren't supported. You do get the cache management though. The raw format is
> not specific to vector tiles so you could use it for other formats like
> GeoJSON or UTFGrid.
> 
> 
> 
> Anyway, in my mapcache.xml file I have the following setup:
> 
> 
> 
> <!—define a new raw format to use for MapBox vector tiles -->
> 
> <format name="MVT" type="RAW">
> 
> <extension>mvt</extension>
> 
> <mime_type>application/vnd.mapbox-vector-tile</mime_type>
> 
> </format>
> 
> 
> 
> <!—this WMS source fetches MapBox vector tiles (.mvt) -->
> 
> <source name="wms_mvt" type="wms">
> 
> <http>
> 
> <url>http://mapserver.localhost/cgi-bin/mapserv?</url>
> 
> </http>
> 
> <getmap>
> 
> <params>
> 
> <LAYERS>sna,wma,lakes,major_roads,places</LAYERS>
> 
> <FORMAT>application/vnd.mapbox-vector-tile</FORMAT>
> 
> <MAP>/Users/sdlime/work/mvt-demo/demo.map </MAP>
> 
> </params>
> 
> </getmap>
> 
> </source>
> 
> 
> 
> <!—and finally the tileset -->
> 
> <tileset name="mvt">
> 
> <source>wms_mvt</source>
> 
> <grid>g</grid>
> 
> <cache>disk</cache>
> 
> <format>MVT</format>
> 
> </tileset>
> 
> 
> 
> Then, if you look at the simple.json file in my demo repo you just change
> the source for the vector tiles layer to reference MapCache (I was running
> as FastCGI) instead of MapServer (mode=tile), so from:
> 
> 
> 
> "tiles": ["
> http://mapserver.localhost/cgi-bin/mapserv?map=/Users/sdlime/work/mvt-demo/demo.map&mode=tile&tilemode=gmap&tile={x}+{y}+{z}&layers=all&map.imagetype=mvt
>  <http://mapserver.localhost/cgi-bin/mapserv?map=/Users/sdlime/work/mvt-demo/demo.ma \
> p&mode=tile&tilemode=gmap&tile=%7Bx%7D+%7By%7D+%7Bz%7D&layers=all&map.imagetype=mvt>
>  "],
> 
> 
> 
> to:
> 
> 
> 
> "tiles": ["
> http://mapserver.localhost/cgi-bin/mapcache.fcgi/gmaps/mvt@g/{z}/{x}/{y}.mvt
> "]
> 
> 
> 
> One thing to note is that you can control the resolution that each tile is
> created at. Each tile has a grid associated with it and that is used to
> convert the features to a grid-based coordinate system. The higher the
> resolution of that grid the more detail is represented in the tile. The
> default is 4096x4096. You can change that value via the MVT output format,
> for example:
> 
> 
> 
> OUTPUTFORMAT
> 
> NAME "mvt"
> 
> DRIVER MVT
> 
> FORMATOPTION "EXTENT=512"
> 
> END
> 
> 
> 
> A smaller resolution or extent will generally result in smaller tiles.
> 
> 
> 
> --Steve
> 
> 
> 
> *From:* Miha Požauko [mailto:mihapozauko@gmail.com]
> *Sent:* Tuesday, June 26, 2018 3:09 AM
> *To:* Lime, Steve D (MNIT) <steve.lime@state.mn.us>
> *Cc:* mapserver-users@lists.osgeo.org
> *Subject:* Re: [mapserver-users] Status of MVT vector tiles?
> 
> 
> 
> I found that pull request before thanks, will play around with it some
> more. When you say it relies on WMS requests does that mean it generates
> raster tiles or vector tiles in PBD file format? I don't have mine mapcache
> example working yet so i don't know what to expect.
> 
> 
> 
> About canceled requests i found related "issue" discussed on leaflet forum:
> 
> https://github.com/Leaflet/Leaflet.VectorGrid/issues/136
> 
> But i don't see a problem with that because all entities are loaded on my
> map.
> 
> 
> 
> I will have to find that secret souce yes, will try to optimize my map
> file for different scales. Pregenerated vector tiles would also help.
> 
> 
> 
> Thanks for your answers. Will track your github for further updates.
> 
> 
> 
> Miha
> 
> 
> 
> 
> 
> V V pon., 25. jun. 2018 ob 23:57 je oseba Lime, Steve D (MNIT) <
> steve.lime@state.mn.us> napisala:
> 
> Will do. I have a working MapCache example on my dev box that I can share
> pieces from. First step is to get MapCache working with the pull-request I
> submitted some time ago. It relies on WMS requests to MapServer for the MVT
> tiles. Pull request is at:
> 
> https://github.com/mapserver/mapcache/pull/166
> 
> Regarding the canceled requests:
> 
> I'm not sure what up with those.  However, I don't believe those are a
> server issue, rather a client-based. You can see the same behavior on other
> sites using vector tiles from other services (
> https://openmaptiles.com/downloads/dataset/osm/#0.23/0/-26) in Chrome
> DevTools. Could be related to pre-fetching resources.
> 
> Regarding a unresponsive browser:
> 
> There's likely a secret sauce in terms of the matching min/max scales you
> should offer a layer at, whether you should manage multiple resolutions of
> your data on the server and other filtering. The demo is very naïve in that
> regard so you can end up with big tiles. At this point it's not something I
> can offer a ton of help with - I don't have a production MVT application
> yet.
> 
> Steve
> 
> -----Original Message-----
> From: mapserver-users [mailto:mapserver-users-bounces@lists.osgeo.org] On
> Behalf Of mp-surv
> Sent: Saturday, June 23, 2018 6:28 PM
> To: mapserver-users@lists.osgeo.org
> Subject: Re: [mapserver-users] Status of MVT vector tiles?
> 
> Hey Steve.
> I have a working demo using your data and when zooming out not all vector
> tiles load and browser becomes unresponsive (image below). To avoid
> overloading my computer when zooming out and causing my browser to crash I
> would like to use mapcache, but I'm struggling to set it upt. Can you
> please
> give a working example using mapache?
> 
> <http://osgeo-org.1560.x6.nabble.com/file/t368111/Capture.png>
> 
> I can see there are also a lot of canceled requests but they are not
> causing
> my browser to crash. Do you know what produces them?
> 
> Thanks.
> 
> 
> 
> 
> 
> 
> 
> --
> Sent from:
> http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html
> _______________________________________________
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
> 
> 
> 
> 
> --
> 
> Lp,
> 
> Miha
> 


-- 
Lp,
Miha


[Attachment #5 (text/html)]

<div dir="ltr"><div class="gmail_default" style="font-family:courier \
new,monospace;font-size:small;color:#0b5394">It took me some time to configure \
everything because I migrated everything on a fresh ubuntu machine where i compiled \
and installed mapserver and mapacache for the first time ever (you can imagine the \
strugle). But following your instructions i have a working mapserver+mapcache with \
MVT support now. Thanks!<br></div><div class="gmail_default" \
style="font-family:courier \
new,monospace;font-size:small;color:#0b5394"><br></div><div class="gmail_default" \
style="font-family:courier \
new,monospace;font-size:small;color:#0b5394">Miha</div></div><br><div \
class="gmail_quote"><div dir="ltr">V V čet., 28. jun. 2018 ob 21:57 je oseba Lime, \
Steve D (MNIT) &lt;<a \
href="mailto:steve.lime@state.mn.us">steve.lime@state.mn.us</a>&gt; \
napisala:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="blue" vlink="purple">
<div class="m_3342358146720742695WordSection1">
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">It \
generates vector tiles based on WMS requests. MapCache computes the proper extent \
based on the requested tile and then kicks off a WMS call for vector tile.  The pull \
request creates support for a new generic "raw" format. MapCache doesn't know much \
about files in this format, just a mime-type, so things like metatiling, image \
processing or tile assembly aren't supported. You do get the cache management though. \
The raw format is not specific to vector tiles so you could use it for other formats \
like GeoJSON or UTFGrid.<u></u><u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d"><u></u> \
<u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">Anyway, \
in my mapcache.xml file I have the following setup:<u></u><u></u></span></p> <p \
class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d"><u></u> \
<u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">&lt;!—define \
a new raw format to use for MapBox vector tiles --&gt;<u></u><u></u></span></p> <p \
class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">&lt;format \
name=&quot;MVT&quot; type=&quot;RAW&quot;&gt; <u></u><u></u></span></p>
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">    \
&lt;extension&gt;mvt&lt;/extension&gt;<u></u><u></u></span></p> <p \
class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">    \
&lt;mime_type&gt;application/vnd.mapbox-vector-tile&lt;/mime_type&gt;<u></u><u></u></span></p>
 <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">&lt;/format&gt;<u></u><u></u></span></p>
 <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d"><u></u> \
<u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">&lt;!—this \
WMS source fetches MapBox vector tiles (.mvt) --&gt;<u></u><u></u></span></p> <p \
class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">&lt;source \
name=&quot;wms_mvt&quot; type=&quot;wms&quot;&gt;<u></u><u></u></span></p> <p \
class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">   \
&lt;http&gt;<u></u><u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">    \
&lt;url&gt;<a href="http://mapserver.localhost/cgi-bin/mapserv" \
target="_blank">http://mapserver.localhost/cgi-bin/mapserv</a>?&lt;/url&gt;<u></u><u></u></span></p>
 <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">   \
&lt;/http&gt;<u></u><u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">   \
&lt;getmap&gt;<u></u><u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">    \
&lt;params&gt;<u></u><u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">    \
&lt;LAYERS&gt;sna,wma,lakes,major_roads,places&lt;/LAYERS&gt;<u></u><u></u></span></p>
 <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">    \
&lt;FORMAT&gt;application/vnd.mapbox-vector-tile&lt;/FORMAT&gt;<u></u><u></u></span></p>
 <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">    \
&lt;MAP&gt;/Users/sdlime/work/mvt-demo/demo.map &lt;/MAP&gt;<u></u><u></u></span></p> \
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">    \
&lt;/params&gt;<u></u><u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">   \
&lt;/getmap&gt;<u></u><u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">&lt;/source&gt;<u></u><u></u></span></p>
 <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d"><u></u> \
<u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">&lt;!—and \
finally the tileset --&gt;<u></u><u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">&lt;tileset \
name=&quot;mvt&quot;&gt;<u></u><u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">   \
&lt;source&gt;wms_mvt&lt;/source&gt;<u></u><u></u></span></p> <p \
class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">   \
&lt;grid&gt;g&lt;/grid&gt;<u></u><u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">   \
&lt;cache&gt;disk&lt;/cache&gt;<u></u><u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">   \
&lt;format&gt;MVT&lt;/format&gt;<u></u><u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">&lt;/tileset&gt;<u></u><u></u></span></p>
 <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d"><u></u> \
<u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">Then, \
if you look at the simple.json file in my demo repo you just change the source for \
the vector tiles layer to reference MapCache (I was running as FastCGI)  instead of \
MapServer (mode=tile), so from:<u></u><u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d"><u></u> \
<u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">&quot;tiles&quot;: \
[&quot;<a href="http://mapserver.localhost/cgi-bin/mapserv?map=/Users/sdlime/work/mvt- \
demo/demo.map&amp;mode=tile&amp;tilemode=gmap&amp;tile=%7Bx%7D+%7By%7D+%7Bz%7D&amp;layers=all&amp;map.imagetype=mvt" \
target="_blank">http://mapserver.localhost/cgi-bin/mapserv?map=/Users/sdlime/work/mvt- \
demo/demo.map&amp;mode=tile&amp;tilemode=gmap&amp;tile={x}+{y}+{z}&amp;layers=all&amp;map.imagetype=mvt</a>&quot;],<u></u><u></u></span></p>
 <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d"><u></u> \
<u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">to:<u></u><u></u></span></p>
 <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d"><u></u> \
<u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">&quot;tiles&quot;: \
[&quot;<a href="http://mapserver.localhost/cgi-bin/mapcache.fcgi/gmaps/mvt@g/%7Bz%7D/%7Bx%7D/%7By%7D.mvt" \
target="_blank">http://mapserver.localhost/cgi-bin/mapcache.fcgi/gmaps/mvt@g/{z}/{x}/{y}.mvt</a>&quot;]<u></u><u></u></span></p>
 <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d"><u></u> \
<u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">One \
thing to note is that you can control the resolution that each tile is created at. \
Each tile has a grid associated with it and that is used to convert the  features to \
a grid-based coordinate system. The higher the resolution of that grid the more \
detail is represented in the tile. The default is 4096x4096. You can change that \
value via the MVT output format, for example:<u></u><u></u></span></p> <p \
class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d"><u></u> \
<u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">OUTPUTFORMAT<u></u><u></u></span></p>
 <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">   \
NAME "mvt"<u></u><u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">   \
DRIVER MVT<u></u><u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">   \
FORMATOPTION "EXTENT=512"<u></u><u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">END<u></u><u></u></span></p>
 <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d"><u></u> \
<u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">A \
smaller resolution or extent will generally result in smaller \
tiles.<u></u><u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d"><u></u> \
<u></u></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">--Steve<u></u><u></u></span></p>
 <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d"><u></u> \
<u></u></span></p> <p class="MsoNormal"><b><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">From:</span></b><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif"> Miha Požauko \
[mailto:<a href="mailto:mihapozauko@gmail.com" \
target="_blank">mihapozauko@gmail.com</a>] <br>
<b>Sent:</b> Tuesday, June 26, 2018 3:09 AM<br>
<b>To:</b> Lime, Steve D (MNIT) &lt;<a href="mailto:steve.lime@state.mn.us" \
target="_blank">steve.lime@state.mn.us</a>&gt;<br> <b>Cc:</b> <a \
href="mailto:mapserver-users@lists.osgeo.org" \
target="_blank">mapserver-users@lists.osgeo.org</a><br> <b>Subject:</b> Re: \
[mapserver-users] Status of MVT vector tiles?<u></u><u></u></span></p> <p \
class="MsoNormal"><u></u>  <u></u></p> <div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Courier \
New&quot;;color:#0b5394">I found that pull request before thanks, will play around \
with it some more. When you say it relies on WMS requests does that mean it generates \
raster tiles or vector tiles in PBD file  format? I don&#39;t have mine mapcache \
example working yet so i don&#39;t know what to expect.<u></u><u></u></span></p> \
</div> <div>
<p class="MsoNormal"><span style="font-family:&quot;Courier \
New&quot;;color:#0b5394"><u></u>  <u></u></span></p> </div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Courier \
New&quot;;color:#0b5394">About canceled requests i found related &quot;issue&quot; \
discussed on leaflet forum:<u></u><u></u></span></p> </div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Courier \
New&quot;;color:#0b5394"><a \
href="https://github.com/Leaflet/Leaflet.VectorGrid/issues/136" \
target="_blank">https://github.com/Leaflet/Leaflet.VectorGrid/issues/136</a></span><u></u><u></u></p>
 </div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Courier \
New&quot;;color:#0b5394">But i don&#39;t see a problem with that because all entities \
are loaded on my map.</span><u></u><u></u></p> </div>
<div>
<p class="MsoNormal"><u></u>  <u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Courier \
New&quot;;color:#0b5394">I will have to find that secret souce yes, will try to \
optimize my map file for different scales. Pregenerated vector tiles would also \
help.</span><u></u><u></u></p> </div>
<div>
<p class="MsoNormal"><u></u>  <u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Courier \
New&quot;;color:#0b5394">Thanks for your answers. Will track your github for further \
updates.</span><u></u><u></u></p> </div>
<div>
<p class="MsoNormal"><u></u>  <u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Courier \
New&quot;;color:#0b5394">Miha  </span><u></u><u></u></p> </div>
<div>
<p class="MsoNormal"><u></u>  <u></u></p>
</div>
</div>
<p class="MsoNormal"><u></u>  <u></u></p>
<div>
<div>
<p class="MsoNormal">V V pon., 25. jun. 2018 ob 23:57 je oseba Lime, Steve D (MNIT) \
&lt;<a href="mailto:steve.lime@state.mn.us" \
target="_blank">steve.lime@state.mn.us</a>&gt; napisala:<u></u><u></u></p> </div>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in \
6.0pt;margin-left:4.8pt;margin-right:0in"> <p class="MsoNormal">Will do. I have a \
working MapCache example on my dev box that I can share pieces from. First step is to \
get MapCache working with the pull-request I submitted some time ago. It relies on \
WMS requests to MapServer for the MVT tiles. Pull  request is at:<br>
<br>
   <a href="https://github.com/mapserver/mapcache/pull/166" \
target="_blank">https://github.com/mapserver/mapcache/pull/166</a><br> <br>
Regarding the canceled requests:<br>
<br>
  I&#39;m not sure what up with those.   However, I don&#39;t believe those are a \
server issue, rather a client-based. You can see the same behavior on other sites \
using vector tiles from other services (<a \
href="https://openmaptiles.com/downloads/dataset/osm/#0.23/0/-26" \
target="_blank">https://openmaptiles.com/downloads/dataset/osm/#0.23/0/-26</a>)  in \
Chrome DevTools. Could be related to pre-fetching resources.<br> <br>
Regarding a unresponsive browser:<br>
<br>
There&#39;s likely a secret sauce in terms of the matching min/max scales you should \
offer a layer at, whether you should manage multiple resolutions of your data on the \
server and other filtering. The demo is very naïve in that regard so you can end up \
with big  tiles. At this point it&#39;s not something I can offer a ton of help with \
- I don't have a production MVT application yet. <br>
<br>
Steve<br>
<br>
-----Original Message-----<br>
From: mapserver-users [mailto:<a \
href="mailto:mapserver-users-bounces@lists.osgeo.org" \
                target="_blank">mapserver-users-bounces@lists.osgeo.org</a>] On \
                Behalf Of mp-surv<br>
Sent: Saturday, June 23, 2018 6:28 PM<br>
To: <a href="mailto:mapserver-users@lists.osgeo.org" \
                target="_blank">mapserver-users@lists.osgeo.org</a><br>
Subject: Re: [mapserver-users] Status of MVT vector tiles?<br>
<br>
Hey Steve.<br>
I have a working demo using your data and when zooming out not all vector<br>
tiles load and browser becomes unresponsive (image below). To avoid<br>
overloading my computer when zooming out and causing my browser to crash I<br>
would like to use mapcache, but I&#39;m struggling to set it upt. Can you please<br>
give a working example using mapache?<br>
<br>
&lt;<a href="http://osgeo-org.1560.x6.nabble.com/file/t368111/Capture.png" \
target="_blank">http://osgeo-org.1560.x6.nabble.com/file/t368111/Capture.png</a>&gt; \
<br> <br>
I can see there are also a lot of canceled requests but they are not causing<br>
my browser to crash. Do you know what produces them?<br>
<br>
Thanks.<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html" \
target="_blank"> http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html</a><br>
 _______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org" \
target="_blank">mapserver-users@lists.osgeo.org</a><br> <a \
href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" \
target="_blank">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a><u></u><u></u></p>
 </blockquote>
</div>
<p class="MsoNormal"><br clear="all">
<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u>  <u></u></p>
</div>
<p class="MsoNormal">-- <u></u><u></u></p>
<div>
<div>
<p class="MsoNormal">Lp,<u></u><u></u></p>
<div>
<p class="MsoNormal">Miha<u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>

</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" \
class="gmail_signature" data-smartmail="gmail_signature"><div \
dir="ltr">Lp,<div>Miha</div></div></div>


[Attachment #6 (text/plain)]

_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic