[OSM-dev] Informationfreeway

80n 80n80n at gmail.com
Tue Aug 7 16:55:44 BST 2007


On 8/7/07, Sebastian Spaeth <Sebastian at sspaeth.de> wrote:
>
> On Tue, Aug 07, 2007 at 01:59:29PM +0100, 80n wrote:
>
> > While you are working on the configuration of the web-server, is there
> > anything that can be done about the [Error] tiles and black tiles that
> are
> > visible here?
> >
> http://www.informationfreeway.org/?lat=84.63876259044923&lon=179.86915921767266&user=80n&zoom=2&layers=B000F000
> >
> > The [Error] tiles are generated when the slippy map requests a tile with
> > y=-1 and the black tiles when x is too large.  I tried fixing OpenLayers
> to
> > not request tiles outside the required area, but that seemed to mess up
> > permalinks and ctrl+drag zooming so I backed out much changes.
>
> I agree, that looks ugly as hell.
>
> Sure, I made the regexp recognize negative numbers as well, so the error
> tiles are gone. We have now black tiles above and to the right of the map,
> as those are send back for "invalid" coordinates (too big/small x,y,z).
> However that is totally configurable what we send back in that case, would
> you prefer a completely transparent tile? Should it continue to be black?
> Shouldn't we send back anything at all but rather reply with a standard 404
> not found?


I think a transparent tile would be the best response.  This will then allow
whatever background the client has chosen to show through.

However, I just looked at the t at h layer on the main OSM site.  That appears
to display "More OSM coming soon" tiles where infofreeway is displaying
black tiles - so maybe I should investigate how that happens before we make
any more changes.




I'm open for suggestions on this one.
>
> spaetz
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20070807/62da44d3/attachment.html>


More information about the dev mailing list