<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div name="quoted-content">Hi,<br/></div><div name="quoted-content"><br/></div><div name="quoted-content">I activate Logging for MapProxy, but der is no Log for OpenLayers when using the WMTS-Layer. For WMS and TMS Log-Entries will be create. <br/></div><div name="quoted-content"><br/></div><div name="quoted-content">I have configure maxExtent and maxResolution by the demo TMS service. I don't know where the problem can be.<br/><br/>Here is my actual Code for Implementation (OpenLayers Client):<br/><br/><script type="text/javascript"><br/> var map;<br/> function init(){<br/> map = new OpenLayers.Map ("map", {<br/> maxExtent: new OpenLayers.Bounds(11.3768, 50.0743, 15.0967, 51.691),<br/> maxResolution: 0.014530859375,<br/> numZoomLevels: 20,<br/> units: 'degrees',<br/> projection: new OpenLayers.Projection("EPSG:4326"),<br/> displayProjection: new OpenLayers.Projection("EPSG:4326")<br/> } );<br/><br/> wms = new OpenLayers.Layer.WMS( "Meilenblaetter WMS",<br/> "http://geoinformatik.htw-dresden.de/map/service", {layers: 'Meilenblaetter_SN'});<br/><br/> wmts = new OpenLayers.Layer.WMTS({<br/> name: "Meilenblaetter WMTS",<br/> url: "http://geoinformatik.htw-dresden.de/map/wmts/",<br/> layer: "Meilenblaetter_SN",<br/> style: "default",<br/> format: "image/png",<br/> matrixSet: "meilenblatt_grid",<br/> isBaseLayer: "false"<br/> });<br/> <br/><br/> tms = new OpenLayers.Layer.TMS(<br/> "Meilenblaetter TMS",<br/> "http://192.168.178.29/MapProxy/tms/",<br/> {layername: 'Meilenblaetter_SN',<br/> serviceVersion: "1.0.0",<br/> type: 'png',<br/> tileSize: new OpenLayers.Size(256, 256)<br/> });<br/><br/> map.addLayers([wms, tms, wmts]);<br/> map.zoomToMaxExtent();<br/> //map.addControl(new OpenLayers.Control.PanZoomBar());<br/> map.addControl( new OpenLayers.Control.LayerSwitcher());<br/> map.addControl(new OpenLayers.Control.MousePosition());<br/> }<br/> </script><br/></div><div name="quoted-content"><br/></div><div name="quoted-content">Regards,<br/></div><div name="quoted-content"><br/></div><div name="quoted-content">Patrick<br/></div><div name="quoted-content">
<br/>
On 02.03.2012, at 11:05, Patrick Fischer wrote:<br/>
<br/>
> Hi,<br/>
> <br/>
> I’m new in running MapProxy and my first results are to serve a WMS, TMS and WMTS. The Implementation of WMS and TMS into a OpenLayers Client isn’t a big Problem. Only there is a little Coordinate-Difference between these two services. If anybody have an idea, I will be happy J.<br/>
> <br/>
> But my real Problem is, that I can’t implement a WMTS-Service (KVP-Encoding) into the OpenLayers-Client. Only the Grid-Tiles are shown, but not the Tile itself. The Direct-Access to Tiles by Browser by usinghttp://geoinformatik.htw-dresden.de/map/wmts/Meilenblaetter_SN/meilenblatt_grid/01/0/0.png is no Problem.<br/>
<br/>
By default OpenLayers thinks your map displays the whole world, but you only have a local grid. So you need to configure maxExtent and maxResolution. Some tips: watch the log output of MapProxy carefully (what does OpenLayers request) and add a WMS layer with a world map, so you can see if the tiles are aligned.<br/>
<br/>
Regards,<br/>
Oliver<br/>
<br/>
-- <br/>
Oliver Tonnhofer | Omniscale GmbH & Co KG | <a href="http://omniscale.de" target="_blank">http://omniscale.de</a><br/>
<a href="http://mapproxy.org" target="_blank">http://mapproxy.org</a> | <a href="https://bitbucket.org/olt" target="_blank">https://bitbucket.org/olt</a> | @oltonn<br/>
<br/>
<br/>
</div>
</div><div><br/><br/></div></div> <br><br><table cellpadding="0" cellspacing="0" border="0"><tr><td style="font-family:verdana; font-size:12px; line-height:17px;border-top:1px solid #000000">Ihr WEB.DE Postfach immer dabei: die kostenlose WEB.DE Mail App für iPhone und Android. <br><a href="https://produkte.web.de/freemail_mobile_startseite/"><b>https://produkte.web.de/freemail_mobile_startseite/</b></a></td></tr></table>
</body></html>