<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi list,<br>
<br>
I'm looking at trying to set up an OpenLayer3 demo using the UTFGrid
format provided by MapServer. <br>
<br>
<a href="http://mapserver.org/development/rfc/ms-rfc-93.html#rfc93">http://mapserver.org/development/rfc/ms-rfc-93.html#rfc93<br>
</a><a href="http://mapserver.org/output/utfgrid_output.html">http://mapserver.org/output/utfgrid_output.html</a><br>
<br>
As luck would have it, it appears OpenLayers2 actually has a better
implementation on the client-side. See links:<br>
<br>
<a href="http://dev.openlayers.org/examples/utfgrid.html">http://dev.openlayers.org/examples/utfgrid.html</a><br>
<a
href="http://dev.openlayers.org/docs/files/OpenLayers/Layer/UTFGrid-js.html"><a class="moz-txt-link-freetext" href="http://dev.openlayers.org/docs/files/OpenLayers/Layer/UTFGrid-js.html">http://dev.openlayers.org/docs/files/OpenLayers/Layer/UTFGrid-js.html</a></a><br>
<br>
OL3 seems to require a server-side component to return a callback
with details on the service. Even if I set this up, it expects the
UTFGrid service to use a tile grid format ({x}{y}{z}). <a
href="http://openlayers.org/en/v3.14.2/examples/tileutfgrid.html"><a class="moz-txt-link-freetext" href="http://openlayers.org/en/v3.14.2/examples/tileutfgrid.html">http://openlayers.org/en/v3.14.2/examples/tileutfgrid.html</a></a><br>
<br>
I can configure MapServer to return UTFGrids using WMS GetMap
requests (as stated in the RFC), but not when using the tile mode -
<a href="http://mapserver.org/output/tile_mode.html">http://mapserver.org/output/tile_mode.html</a><br>
<br>
I can probably hack together a workaround to work out tile numbers
from BBOXes, but I was wondering if I'm missing something simple to
get this to work directly. <br>
Has anyone manged to set this up?<br>
<br>
Thanks for any advice,<br>
<br>
Seth<br>
<br>
<div class="moz-text-html" lang="x-western"> <font color="#888888">--<br>
web:</font><a href="http://geographika.co.uk"><font
color="#888888"> </font>http://geographika.co.uk</a><br>
<font color="#888888">twitter: @geographika<br>
</font><br>
</div>
<br>
<br>
<a href="http://mapserver.org/output/utfgrid_output.html"></a><br>
<br>
</body>
</html>