web-js: testing geojson
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
package org.oscim.web.js;
|
||||
|
||||
import org.oscim.tiling.source.geojson.OsmLanduseJsonTileSource;
|
||||
import org.timepedia.exporter.client.ExportOverlay;
|
||||
import org.timepedia.exporter.client.ExportPackage;
|
||||
|
||||
@ExportPackage("vtm")
|
||||
public class JsOsmLanduseJsonTileSource implements ExportOverlay<OsmLanduseJsonTileSource> {
|
||||
public JsOsmLanduseJsonTileSource() {
|
||||
}
|
||||
}
|
||||
@@ -13,12 +13,15 @@ import org.oscim.map.Map;
|
||||
import org.oscim.renderer.LayerRenderer;
|
||||
import org.oscim.theme.IRenderTheme;
|
||||
import org.oscim.tiling.TileSource;
|
||||
import org.oscim.tiling.source.geojson.HighroadJsonTileSource;
|
||||
import org.oscim.tiling.source.oscimap4.OSciMap4TileSource;
|
||||
import org.timepedia.exporter.client.Export;
|
||||
import org.timepedia.exporter.client.ExportOverlay;
|
||||
import org.timepedia.exporter.client.ExportPackage;
|
||||
import org.timepedia.exporter.client.Exportable;
|
||||
|
||||
public final class JsOverlays {
|
||||
@ExportPackage("")
|
||||
public class JsOverlays implements Exportable {
|
||||
@ExportPackage("vtm")
|
||||
@Export("Layers")
|
||||
public interface XLayers extends ExportOverlay<Layers> {
|
||||
@@ -66,20 +69,6 @@ public final class JsOverlays {
|
||||
}
|
||||
}
|
||||
|
||||
@ExportPackage("vtm")
|
||||
@Export("VectorTileLayer")
|
||||
public static class XVectorTileLayer implements ExportOverlay<VectorTileLayer> {
|
||||
public XVectorTileLayer(Map map, TileSource tileSource) {
|
||||
}
|
||||
|
||||
public boolean setTileSource(TileSource tileSource) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public void setRenderTheme(IRenderTheme theme) {
|
||||
}
|
||||
}
|
||||
|
||||
@ExportPackage("vtm")
|
||||
@Export("OsmTileLayer")
|
||||
public static class XOsmTileLayer implements ExportOverlay<OsmTileLayer> {
|
||||
@@ -94,21 +83,13 @@ public final class JsOverlays {
|
||||
}
|
||||
}
|
||||
|
||||
// @ExportPackage("vtm")
|
||||
// @Export("OsmLanduseJsonTileSource")
|
||||
// public static class XOsmLanduseJsonTileSource implements
|
||||
// ExportOverlay<OsmLanduseJsonTileSource> {
|
||||
// public XOsmLanduseJsonTileSource() {
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// @ExportPackage("vtm")
|
||||
// @Export("HighroadJsonTileSource")
|
||||
// public static class XHighroadJsonTileSource implements
|
||||
// ExportOverlay<HighroadJsonTileSource> {
|
||||
// public XHighroadJsonTileSource() {
|
||||
// }
|
||||
// }
|
||||
@ExportPackage("vtm")
|
||||
@Export("HighroadJsonTileSource")
|
||||
public static class XHighroadJsonTileSource implements
|
||||
ExportOverlay<HighroadJsonTileSource> {
|
||||
public XHighroadJsonTileSource() {
|
||||
}
|
||||
}
|
||||
|
||||
@ExportPackage("vtm")
|
||||
@Export("OSciMap4TileSource")
|
||||
|
||||
21
vtm-web-js/src/org/oscim/web/js/JsVectorTileLayer.java
Normal file
21
vtm-web-js/src/org/oscim/web/js/JsVectorTileLayer.java
Normal file
@@ -0,0 +1,21 @@
|
||||
package org.oscim.web.js;
|
||||
|
||||
import org.oscim.layers.tile.vector.VectorTileLayer;
|
||||
import org.oscim.map.Map;
|
||||
import org.oscim.theme.IRenderTheme;
|
||||
import org.oscim.tiling.TileSource;
|
||||
import org.timepedia.exporter.client.ExportOverlay;
|
||||
import org.timepedia.exporter.client.ExportPackage;
|
||||
|
||||
@ExportPackage("vtm")
|
||||
public class JsVectorTileLayer implements ExportOverlay<VectorTileLayer> {
|
||||
public JsVectorTileLayer(Map map, TileSource tileSource) {
|
||||
}
|
||||
|
||||
public boolean setTileSource(TileSource tileSource) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public void setRenderTheme(IRenderTheme theme) {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user