Changeset 36125 in osm for applications/editors/josm/plugins
- Timestamp:
- 2023-08-28T22:14:59+02:00 (15 months ago)
- Location:
- applications/editors/josm/plugins/pmtiles/src/main/java/org/openstreetmap/josm/plugins/pmtiles/gui/layers
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/pmtiles/src/main/java/org/openstreetmap/josm/plugins/pmtiles/gui/layers/PMTilesImageLayer.java
r36115 r36125 7 7 import org.openstreetmap.gui.jmapviewer.interfaces.TileLoader; 8 8 import org.openstreetmap.josm.data.imagery.vectortile.mapbox.MVTFile; 9 import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor; 9 10 import org.openstreetmap.josm.gui.layer.AbstractCachedTileSourceLayer; 10 11 import org.openstreetmap.josm.plugins.pmtiles.data.imagery.PMTilesImageryInfo; … … 69 70 return PMTilesLayer.super.getChangesetSourceTag(); 70 71 } 72 73 @Override 74 public void visitBoundingBox(BoundingXYVisitor v) { 75 super.visitBoundingBox(v); 76 PMTilesLayer.super.visitBoundingBox(v); 77 } 71 78 } -
applications/editors/josm/plugins/pmtiles/src/main/java/org/openstreetmap/josm/plugins/pmtiles/gui/layers/PMTilesLayer.java
r36115 r36125 4 4 import static org.openstreetmap.josm.tools.Utils.getSystemProperty; 5 5 6 import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor; 6 7 import org.openstreetmap.josm.plugins.pmtiles.data.imagery.PMTilesImageryInfo; 7 8 import org.openstreetmap.josm.tools.TextUtils; … … 49 50 return sb.toString(); 50 51 } 52 53 /** 54 * Visits the content bounds of this layer. The behavior of this method depends on the layer, 55 * but each implementation should attempt to cover the relevant content of the layer in this method. 56 * @param v The visitor that gets notified about the contents of this layer. 57 * @see org.openstreetmap.josm.gui.layer.Layer#visitBoundingBox 58 */ 59 default void visitBoundingBox(BoundingXYVisitor v) { 60 v.visit(this.getInfo().getBounds()); 61 } 51 62 } -
applications/editors/josm/plugins/pmtiles/src/main/java/org/openstreetmap/josm/plugins/pmtiles/gui/layers/PMTilesMVTLayer.java
r36115 r36125 8 8 import org.openstreetmap.josm.data.imagery.vectortile.mapbox.MVTFile; 9 9 import org.openstreetmap.josm.data.imagery.vectortile.mapbox.MapboxVectorTileSource; 10 import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor; 10 11 import org.openstreetmap.josm.gui.layer.imagery.MVTLayer; 11 12 import org.openstreetmap.josm.plugins.pmtiles.data.imagery.PMTilesImageryInfo; … … 70 71 return PMTilesLayer.super.getChangesetSourceTag(); 71 72 } 73 74 @Override 75 public void visitBoundingBox(BoundingXYVisitor v) { 76 super.visitBoundingBox(v); 77 PMTilesLayer.super.visitBoundingBox(v); 78 } 72 79 }
Note:
See TracChangeset
for help on using the changeset viewer.