[Talk-us] JOSM zoom limits per server solved (fixes Tiger grey overlay )

Dale Puch dale.puch at gmail.com
Mon Sep 24 06:27:48 BST 2012


Not to get into the coding as I have no idea how it is handled, but better
to not offer a 404 page, but to keep the min/max zoom tile as the reply in
this case.
Ie if asking for zoom 20+ return with zoom 19 instead.  More of a redirect
instead of 404 if zoom is out of bounds.

One possibility to slightly abuse the zoom limits...  tms[19,19]:http://...
probably fine for lots of stuff as you would probably end up at that level
anyhow.
Could we get just 2 zoom levels?  say 16 and 19?

Dale

On Sun, Sep 23, 2012 at 2:21 PM, Ian Dees <ian.dees at gmail.com> wrote:

> The "root cause" if you will, is that TileStache doesn't support 404ing
> instead of grey tiles when a request falls out of the specified bounds. If
> someone wants to code that up and submit a pull request, I would much
> rather use that.
>
>
> On Sun, Sep 23, 2012 at 1:18 PM, Alan Millar <grunthos503 at yahoo.com>wrote:
>
>> I also found there is a minimum zoom also. Put it in the url as min,max
>> like
>>
>> tms[16,19]:http://...
>>
>> Fixes the grey tiles when I zoom back out.
>>
>> - Alan
>>
>>
>> On Sep 23, 2012, at 12:54 AM, Toby Murray <toby.murray at gmail.com> wrote:
>>
>> I knew about the max zoom setting but for some reason never thought about
>> applying it to the TIGER tiles to fix the grey....
>>
>> Toby
>> On Sep 21, 2012 1:23 PM, "Alan Millar" <grunthos503 at yahoo.com> wrote:
>>
>>> Maybe everyone else knows this, but I just discovered it myself so I
>>> thought I would share it.
>>>
>>> I've been using Remap-a-tron to fix up US roads.  I use both the Bing
>>> imagery and the TIGER 2012 tiles overlaid, and it makes it really
>>> useful.
>>>
>>> However, I've been frustrated that I can pretty far in with the Bing
>>> images, but if I go too far, the Tiger (normally transparent) tiles turn
>>> grey and obscure the Bing images.  I've been continually turning off and
>>> back on the Tiger layer, which is a bit annoying after a while.
>>>
>>> JOSM has an easy limit in the Preferences for the maximum zoom, but it
>>> affects everything.  I set it to 19, and then I did not get the grey
>>> boxes from Tiger, but did not get the higher detailed photos from Bing
>>> either.
>>>
>>> As it turns out, JOSM does have a max-zoom per tile server feature; it
>>> just is not obvious or clearly documented that I could find.
>>>
>>> You can enter it as part of the TMS url like this:
>>>
>>> tms[19]:http://{switch:a,b,c}.
>>> tile.openstreetmap.us/tiger2012_roads/{zoom}/{x}/{y}.png<http://tile.openstreetmap.us/tiger2012_roads/%7Bzoom%7D/%7Bx%7D/%7By%7D.png>
>>>
>>> The number 19, right up front, says that the maximum zoom to use for
>>> this layer is 19.  This solved the whole thing for me.
>>>
>>> I also found that if you go into Josm preferences in expert mode, and
>>> dig and dig and dig into the imagery providers entries, this is labeled
>>> as max-zoom.  Too bad it isn't easier to find.
>>>
>>> Anyways, hope this helps others too.
>>>
>>> - Alan
>>>
>>>
>>>
>>> _______________________________________________
>>> Talk-us mailing list
>>> Talk-us at openstreetmap.org
>>> http://lists.openstreetmap.org/listinfo/talk-us
>>>
>> _______________________________________________
>> Talk-us mailing list
>> Talk-us at openstreetmap.org
>> http://lists.openstreetmap.org/listinfo/talk-us
>>
>>
>> _______________________________________________
>> Talk-us mailing list
>> Talk-us at openstreetmap.org
>> http://lists.openstreetmap.org/listinfo/talk-us
>>
>>
>
> _______________________________________________
> Talk-us mailing list
> Talk-us at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/talk-us
>
>


-- 
Dale Puch
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk-us/attachments/20120924/060243d3/attachment-0001.html>


More information about the Talk-us mailing list