Changeset 4624 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2011-12-01T13:20:18+01:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/relations/MultipolygonCache.java
r4623 r4624 7 7 import java.util.Map; 8 8 9 import org.openstreetmap.josm.Main; 9 10 import org.openstreetmap.josm.data.osm.DataSet; 10 11 import org.openstreetmap.josm.data.osm.Node; … … 21 22 import org.openstreetmap.josm.data.osm.event.TagsChangedEvent; 22 23 import org.openstreetmap.josm.data.osm.event.WayNodesChangedEvent; 24 import org.openstreetmap.josm.data.projection.Projection; 25 import org.openstreetmap.josm.data.projection.ProjectionChangeListener; 23 26 import org.openstreetmap.josm.gui.MapView.LayerChangeListener; 24 27 import org.openstreetmap.josm.gui.NavigatableComponent; … … 31 34 * 32 35 */ 33 public class MultipolygonCache implements DataSetListener, LayerChangeListener, ZoomChangeListener {36 public class MultipolygonCache implements DataSetListener, LayerChangeListener, ZoomChangeListener, ProjectionChangeListener { 34 37 35 38 private static final MultipolygonCache instance = new MultipolygonCache(); … … 39 42 private MultipolygonCache() { 40 43 this.cache = new HashMap<NavigatableComponent, Map<DataSet, Map<Relation,Multipolygon>>>(); 44 Main.addProjectionChangeListener(this); 41 45 } 42 46 … … 206 210 clear(); 207 211 } 212 213 @Override 214 public void projectionChanged(Projection oldValue, Projection newValue) { 215 clear(); 216 } 208 217 }
Note:
See TracChangeset
for help on using the changeset viewer.