Last change
on this file since 3715 was 3715, checked in by Upliner, 13 years ago |
Added imagery plugin to josm core. Imagery plugin is union of wmsplugin and slippymap plugins. It includes code by Tim Waters, Petr Dlouhý, Frederik Ramm and others. Also enables the remotecontol which was integrated in [3707].
|
File size:
794 bytes
|
Line | |
---|
1 | package org.openstreetmap.josm.plugins.imagery;
|
---|
2 |
|
---|
3 | import java.io.File;
|
---|
4 |
|
---|
5 | import org.openstreetmap.josm.Main;
|
---|
6 | import org.openstreetmap.josm.data.imagery.ImageryLayerInfo;
|
---|
7 | import org.openstreetmap.josm.data.imagery.OffsetBookmark;
|
---|
8 | import org.openstreetmap.josm.plugins.Plugin;
|
---|
9 | import org.openstreetmap.josm.plugins.PluginInformation;
|
---|
10 |
|
---|
11 | public class ImageryPlugin extends Plugin {
|
---|
12 |
|
---|
13 |
|
---|
14 | public ImageryLayerInfo info = new ImageryLayerInfo();
|
---|
15 | // remember state of menu item to restore on changed preferences
|
---|
16 |
|
---|
17 | public ImageryPlugin(PluginInformation info) {
|
---|
18 | super(info);
|
---|
19 | this.info.load();
|
---|
20 | OffsetBookmark.loadBookmarks();
|
---|
21 |
|
---|
22 | }
|
---|
23 |
|
---|
24 | @Override
|
---|
25 | public String getPluginDir()
|
---|
26 | {
|
---|
27 | return new File(Main.pref.getPluginsDirectory(), "imagery").getPath();
|
---|
28 | }
|
---|
29 |
|
---|
30 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.