Skip to content

Commit

Permalink
implemented a basic sectorizing (tiling) and updated documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
kilsedar committed Aug 18, 2017
1 parent 152eb2f commit f1872fa
Show file tree
Hide file tree
Showing 60 changed files with 908 additions and 2,467 deletions.
5 changes: 3 additions & 2 deletions example/main.js
Expand Up @@ -34,7 +34,7 @@ define(['libraries/WebWorldWind/src/WorldWind',
// var source = {type: "boundingBox", coordinates: [9.1705, 45.4557, 9.2021, 45.4735]}; // Milan (center)
// var source = {type: "boundingBox", coordinates: [9.2, 45.48, 9.21, 45.49]}; // Milan (buggy region - nodes)
// var source = {type: "boundingBox", coordinates: [9.48, 45.18, 9.53, 45.19]}; // region tested in GRASS
// var source = {type: "GeoJSONFile", path: "data/newYork.geojson"};
// var source = {type: "GeoJSONFile", path: "data/prin_small_med.geojson"};
// var source = {type: "GeoJSONData", data: {"type":"FeatureCollection","features":[{"type":"Feature","properties":{},"geometry":{"type":"Polygon","coordinates":[[[37.0458984375,40.85537053192494],[36.639404296875,40.3130432088809],[36.881103515625,39.95185892663005],[37.056884765625,40.23760536584024],[37.55126953125,40.772221877329024],[37.0458984375,40.85537053192494]]]}}]}};

var configuration = {
Expand All @@ -43,15 +43,16 @@ define(['libraries/WebWorldWind/src/WorldWind',
interiorColor: new WorldWind.Color(1.0, 0.1, 0.1, 1.0),
applyLighting: true,
extrude: true,
// altitude: {type: "number", value: 100},
altitude: {type: "osm"},
// altitude: {type: "property", value: "height_median"},
// altitude: {type: "number", value: 2000},
altitudeMode: WorldWind.RELATIVE_TO_GROUND,
heatmap: {enabled: true, thresholds: [0, 10, 30, 50, 900]}
};

var test = new OSMTBuildingLayer(configuration, source);
test.add(worldWindow);
test.boundingBox = source.coordinates;
// test.boundingBox = [9.15651, 45.44919, 9.20246, 45.48449]; // prin_small_med.geojson
// test.boundingBox = [9.18307, 45.46073, 9.20421, 45.46957]; // prin_smaller_med.geojson
// test.boundingBox = [-74.03, 40.70, -73.99, 40.72]; // newYork.geojson
Expand Down
8 changes: 0 additions & 8 deletions libraries/geojson-vt-master/.gitignore

This file was deleted.

4 changes: 0 additions & 4 deletions libraries/geojson-vt-master/.npmignore

This file was deleted.

7 changes: 0 additions & 7 deletions libraries/geojson-vt-master/.travis.yml

This file was deleted.

15 changes: 0 additions & 15 deletions libraries/geojson-vt-master/LICENSE

This file was deleted.

149 changes: 0 additions & 149 deletions libraries/geojson-vt-master/README.md

This file was deleted.

1 change: 0 additions & 1 deletion libraries/geojson-vt-master/debug/data/route.json

This file was deleted.

1 change: 0 additions & 1 deletion libraries/geojson-vt-master/debug/data/tiles.json

This file was deleted.

35 changes: 0 additions & 35 deletions libraries/geojson-vt-master/debug/debug.js

This file was deleted.

24 changes: 0 additions & 24 deletions libraries/geojson-vt-master/debug/index.html

This file was deleted.

0 comments on commit f1872fa

Please sign in to comment.