web-js: testing geojson
This commit is contained in:
parent
de27227ed7
commit
e8aa7d55bd
@ -37,7 +37,6 @@ dependencies {
|
|||||||
evaluationDependsOn(':vtm')
|
evaluationDependsOn(':vtm')
|
||||||
evaluationDependsOn(':vtm-themes')
|
evaluationDependsOn(':vtm-themes')
|
||||||
evaluationDependsOn(':vtm-gdx')
|
evaluationDependsOn(':vtm-gdx')
|
||||||
//evaluationDependsOn(':vtm-extras')
|
|
||||||
evaluationDependsOn(':vtm-web')
|
evaluationDependsOn(':vtm-web')
|
||||||
|
|
||||||
gwt {
|
gwt {
|
||||||
@ -58,7 +57,6 @@ gwt {
|
|||||||
src += files(project(':vtm-themes').sourceSets.main.allJava.srcDirs)
|
src += files(project(':vtm-themes').sourceSets.main.allJava.srcDirs)
|
||||||
src += files(project(':vtm-themes').sourceSets.main.resources.srcDirs)
|
src += files(project(':vtm-themes').sourceSets.main.resources.srcDirs)
|
||||||
src += files(project(':vtm-gdx').sourceSets.main.allJava.srcDirs)
|
src += files(project(':vtm-gdx').sourceSets.main.allJava.srcDirs)
|
||||||
//src += files(project(':vtm-extras').sourceSets.main.allJava.srcDirs)
|
|
||||||
src += files(project(':vtm-web').sourceSets.main.allJava.srcDirs)
|
src += files(project(':vtm-web').sourceSets.main.allJava.srcDirs)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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.renderer.LayerRenderer;
|
||||||
import org.oscim.theme.IRenderTheme;
|
import org.oscim.theme.IRenderTheme;
|
||||||
import org.oscim.tiling.TileSource;
|
import org.oscim.tiling.TileSource;
|
||||||
|
import org.oscim.tiling.source.geojson.HighroadJsonTileSource;
|
||||||
import org.oscim.tiling.source.oscimap4.OSciMap4TileSource;
|
import org.oscim.tiling.source.oscimap4.OSciMap4TileSource;
|
||||||
import org.timepedia.exporter.client.Export;
|
import org.timepedia.exporter.client.Export;
|
||||||
import org.timepedia.exporter.client.ExportOverlay;
|
import org.timepedia.exporter.client.ExportOverlay;
|
||||||
import org.timepedia.exporter.client.ExportPackage;
|
import org.timepedia.exporter.client.ExportPackage;
|
||||||
|
import org.timepedia.exporter.client.Exportable;
|
||||||
|
|
||||||
public final class JsOverlays {
|
@ExportPackage("")
|
||||||
|
public class JsOverlays implements Exportable {
|
||||||
@ExportPackage("vtm")
|
@ExportPackage("vtm")
|
||||||
@Export("Layers")
|
@Export("Layers")
|
||||||
public interface XLayers extends ExportOverlay<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")
|
@ExportPackage("vtm")
|
||||||
@Export("OsmTileLayer")
|
@Export("OsmTileLayer")
|
||||||
public static class XOsmTileLayer implements ExportOverlay<OsmTileLayer> {
|
public static class XOsmTileLayer implements ExportOverlay<OsmTileLayer> {
|
||||||
@ -94,21 +83,13 @@ public final class JsOverlays {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// @ExportPackage("vtm")
|
@ExportPackage("vtm")
|
||||||
// @Export("OsmLanduseJsonTileSource")
|
@Export("HighroadJsonTileSource")
|
||||||
// public static class XOsmLanduseJsonTileSource implements
|
public static class XHighroadJsonTileSource implements
|
||||||
// ExportOverlay<OsmLanduseJsonTileSource> {
|
ExportOverlay<HighroadJsonTileSource> {
|
||||||
// public XOsmLanduseJsonTileSource() {
|
public XHighroadJsonTileSource() {
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
//
|
|
||||||
// @ExportPackage("vtm")
|
|
||||||
// @Export("HighroadJsonTileSource")
|
|
||||||
// public static class XHighroadJsonTileSource implements
|
|
||||||
// ExportOverlay<HighroadJsonTileSource> {
|
|
||||||
// public XHighroadJsonTileSource() {
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
@ExportPackage("vtm")
|
@ExportPackage("vtm")
|
||||||
@Export("OSciMap4TileSource")
|
@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) {
|
||||||
|
}
|
||||||
|
}
|
@ -20,11 +20,11 @@ function createLayers() {
|
|||||||
// map.addLayer(new vtm.BuildingLayer(m, l))
|
// map.addLayer(new vtm.BuildingLayer(m, l))
|
||||||
// map.addLayer(new vtm.LabelLayer(m, l))
|
// map.addLayer(new vtm.LabelLayer(m, l))
|
||||||
|
|
||||||
// t = map.loadTheme("TRONRENDER")
|
t = map.loadTheme("TRONRENDER")
|
||||||
// ts = new vtm.OsmLanduseJsonTileSource()
|
ts = new vtm.OsmLanduseJsonTileSource()
|
||||||
// l = new vtm.VectorTileLayer(m, ts)
|
l = new vtm.VectorTileLayer(m, ts)
|
||||||
// l.setRenderTheme(t)
|
l.setRenderTheme(t)
|
||||||
// map.addLayer(l)
|
map.addLayer(l)
|
||||||
}
|
}
|
||||||
|
|
||||||
function canvasResize() {
|
function canvasResize() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user