<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi Stefan,<div><br></div><div>The service responds to <a href="https://htonl.dev.openstreetmap.org/ngi-tiles/tiles/50k/${z}/${x}/${y}.png">https://htonl.dev.openstreetmap.org/ngi-tiles/tiles/50k/${z}/${x}/${y}.png</a></div><div><br></div><div>But if I set it as a TMS instead of a XYZ GeoExplorer builds the following URL</div><div><a href="https://htonl.dev.openstreetmap.org/ngi-tiles/tiles/1.0.0/50k/${z}/${x}/${y}.png">https://htonl.dev.openstreetmap.org/ngi-tiles/tiles/1.0.0/50k/${z}/${x}/${y}.png</a></div><div><br></div><div>I can have the correct "y" but cannot remove the service version in the URL.</div><div><br></div><div><br></div><div>Best,</div><div><br></div><div><br></div><div>Paolo</div><div><br><br></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Feb 18, 2019 at 9:39 PM Stefan Steiniger <<a href="mailto:ssteiniger@uc.cl">ssteiniger@uc.cl</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="auto"><div>Hi Paolo,<div dir="auto"><br></div><div dir="auto">Why woyld you have negative tile ids? This does not make sense to me that a tile service would not account for it. Did you check the standard? </div><div dir="auto"><br></div><div dir="auto">Perhaps this link helps? <a href="https://wiki.openstreetmap.org/wiki/TMS" target="_blank">https://wiki.openstreetmap.org/wiki/TMS</a></div><div dir="auto"><br></div><div dir="auto">Cheers,</div><div dir="auto">Stefan</div><br><br><div class="gmail_quote"><div dir="ltr">On Mon, Feb 18, 2019, 13:49 Alessio Fabiani <<a href="mailto:alessio.fabiani@gmail.com" target="_blank">alessio.fabiani@gmail.com</a> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Paolo,<div>I'm afraid you will need to create a custom ptype, similar to OSM as an instance, which is able to correctly parse and create urls for this particular use case.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno lun 18 feb 2019 alle ore 17:28 Paolo Pasquali <<a href="mailto:paolo.pasquali@gmail.com" rel="noreferrer" target="_blank">paolo.pasquali@gmail.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Dear all,<div><br></div><div>I understand this is more a GeoExplorer matter but maybe you can help...</div><div><br></div><div>I would like to add a XYZ layer as a basemap so I've changed my settings accordingly.</div><div>The problem is that I cannot solve the z/x/y url pattern, in particular I should have (my guess, since the tiles goes on the other side of the equator) a negative y. Here is my settings:</div><div><br></div><div><div><font face="monospace, monospace" size="1">{</font></div><div><font face="monospace, monospace" size="1"> "source": {"ptype": "gxp_olsource"},</font></div><div><font face="monospace, monospace" size="1"> "type": "<a href="http://OpenLayers.Layer.XYZ" rel="noreferrer" target="_blank">OpenLayers.Layer.XYZ</a>",</font></div><div><font face="monospace, monospace" size="1"> "title": "CD:NGI Topo",</font></div><div><font face="monospace, monospace" size="1"> "args": ["CD:NGI Topo", "<a href="https://htonl.dev.openstreetmap.org/ngi-tiles/tiles/50k/$%7Bz%7D/$%7Bx%7D/$%7B-y%7D.png" rel="noreferrer" target="_blank">https://htonl.dev.openstreetmap.org/ngi-tiles/tiles/50k/${z}/${x}/${-y}.png</a>"],</font></div><div><font face="monospace, monospace" size="1"> "name": "background",</font></div><div><font face="monospace, monospace" size="1"> "attribution": "State Copyright © 1996–2013 <a href=\"<a href="http://www.ngi.gov.za" rel="noreferrer" target="_blank">http://www.ngi.gov.za</a>\">Chief Directorate: National Geo-spatial Information</a>",</font></div><div><font face="monospace, monospace" size="1"> "visibility": False,</font></div><div><font face="monospace, monospace" size="1"> "wrapDateLine": True,</font></div><div><font face="monospace, monospace" size="1"> "fixed": True,</font></div><div><font face="monospace, monospace" size="1"> "group":"background"</font></div><div><font face="monospace, monospace" size="1">},</font></div></div><div><br></div><div>Unfortunately, OpenLayers (or GeoExplorer) cannot solve the -y because I get this for a tile:</div><div><a href="https://htonl.dev.openstreetmap.org/ngi-tiles/tiles/50k/5/17/$%7B-y%7D.png" rel="noreferrer" target="_blank">https://htonl.dev.openstreetmap.org/ngi-tiles/tiles/50k/5/17/$%7B-y%7D.png</a></div><div><br></div><div>Is there a way to handle this? I've also tried with <span style="font-family:monospace,monospace">OpenLayers.Layer.OSM </span>but had the same result.</div><div><br></div><div>Thanks in advance for your help.</div><div><br></div><div>Best,</div><div><br></div><div><br></div><div>Paolo</div><div><br></div><div><br></div><div><span style="font-family:monospace,monospace;font-size:x-small"><br></span></div><div><br></div></div></div></div></div></div></div></div></div></div>
_______________________________________________<br>
geonode-users mailing list<br>
<a href="mailto:geonode-users@lists.osgeo.org" rel="noreferrer" target="_blank">geonode-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/geonode-users" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/geonode-users</a><br>
</blockquote></div>
_______________________________________________<br>
geonode-users mailing list<br>
<a href="mailto:geonode-users@lists.osgeo.org" rel="noreferrer" target="_blank">geonode-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/geonode-users" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/geonode-users</a><br>
</blockquote></div></div></div>
</blockquote></div>