Changeset 13260 in osm for applications/editors
- Timestamp:
- 2009-01-19T16:22:15+01:00 (16 years ago)
- Location:
- applications/editors/josm/plugins/slippy_map_chooser/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/slippy_map_chooser/src/SlippyMapChooser.java
r12778 r13260 29 29 import org.openstreetmap.gui.jmapviewer.interfaces.TileLoader; 30 30 import org.openstreetmap.gui.jmapviewer.interfaces.TileSource; 31 import org.openstreetmap.josm.Main; 31 32 import org.openstreetmap.josm.gui.download.DownloadDialog; 32 33 import org.openstreetmap.josm.gui.download.DownloadSelection; … … 74 75 setMaxTilesInmemory(SlippyMapChooserPlugin.MAX_TILES_IN_MEMORY); 75 76 addComponentListener(this); 77 78 String mapStyle = Main.pref.get("slippy_map_chooser.mapstyle", "mapnik"); 79 if(mapStyle.equals("osmarender")) { 80 iSourceButton.setIsMapStyleMapnik(false); 81 this.setTileSource(sources[1]); 82 } 83 else { 84 if(!mapStyle.equals("mapnik")) 85 Main.pref.put("slippy_map_chooser.mapstyle", "mapnik"); 86 } 76 87 } 77 88 … … 249 260 if (mapSource == SourceButton.MAPNIK) { 250 261 this.setTileSource(sources[0]); 262 Main.pref.put("slippy_map_chooser.mapstyle", "mapnik"); 251 263 } else { 252 264 this.setTileSource(sources[1]); 265 Main.pref.put("slippy_map_chooser.mapstyle", "osmarender"); 253 266 } 254 267 } -
applications/editors/josm/plugins/slippy_map_chooser/src/SourceButton.java
r12778 r13260 86 86 return 0; 87 87 } 88 89 public void setIsMapStyleMapnik (boolean style) { 90 isMapnik = style; 91 } 88 92 }
Note:
See TracChangeset
for help on using the changeset viewer.