<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">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">alessio.fabiani@gmail.com</a> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;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" target="_blank" rel="noreferrer">paolo.pasquali@gmail.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid 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" target="_blank" rel="noreferrer">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" target="_blank" rel="noreferrer">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 &copy; 1996&ndash;2013 <a href=\"<a href="http://www.ngi.gov.za" target="_blank" rel="noreferrer">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" target="_blank" rel="noreferrer">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" target="_blank" rel="noreferrer">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" target="_blank" rel="noreferrer">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>