Changes between Initial Version and Version 1 of Ticket #15369


Ignore:
Timestamp:
2017-09-29T01:16:04+02:00 (8 years ago)
Author:
ris
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #15369 – Description

    initial v1  
    11There are a good number of reasons it's useful to be able to see the extents of the downloaded area in a SlippyMapBBoxChooser. In the download dialog it makes it possible to line up a new download with the existing downloaded area. The MiniMap does a much better job of giving the user an idea of where they are in their larger work area if they can see the download bounds.
    22
    3 Here I've implemented it deliberately in a near-identical way to how `OsmDataLayer` performs the painting. Why haven't I made an effort to refactor & share the implementation? It turns out it's *just different enough* to make that useful. The differences mostly come from `JMapViewer`'s different idea of projections & geometry to that of `MapView`'s.
     3Here I've implemented it deliberately in a near-identical way to how `OsmDataLayer` performs the painting. Why haven't I made an effort to refactor & share the implementation? It turns out it's ''just different enough'' to make that useful. The differences mostly come from `JMapViewer`'s different idea of projections & geometry to that of `MapView`'s.
    44
    55The hatched texture is fetched from the layer itself via a new accessor method `getHatchedTexture()`. Why did I not make this a static method when the underlying field is static? Because I can foresee a time when it becomes more common to work with multiple downloaded osm layers (especially now we have overpass support) and hatching colour or style could conceivably be used to differentiate between them (?).
    66
    7 Reasons you may *not* want to apply this as-is:
     7Reasons you may **not** want to apply this as-is:
    88
    99It is currently not optional. I was planning to add a control for this to the bottom of the "source button", similar to how openlayers maps (used to) allow optional layers to be controlled. But then I looked at the source of the "source button", and it became clear that this is a horse that has already been flogged a bit far as it is.