Skip to content
Permalink
Browse files

implemented a basic sectorizing (tiling) and updated documentation

  • Loading branch information...
kilsedar
kilsedar committed Aug 18, 2017
1 parent 152eb2f commit f1872fa8df2d212ee719d03b471b26bbba6f9751
Showing with 908 additions and 2,467 deletions.
  1. +3 −2 example/main.js
  2. +0 −8 libraries/geojson-vt-master/.gitignore
  3. +0 −4 libraries/geojson-vt-master/.npmignore
  4. +0 −7 libraries/geojson-vt-master/.travis.yml
  5. +0 −15 libraries/geojson-vt-master/LICENSE
  6. +0 −149 libraries/geojson-vt-master/README.md
  7. +0 −1 libraries/geojson-vt-master/debug/data/route.json
  8. +0 −1 libraries/geojson-vt-master/debug/data/tiles.json
  9. +0 −35 libraries/geojson-vt-master/debug/debug.js
  10. +0 −24 libraries/geojson-vt-master/debug/index.html
  11. +0 −211 libraries/geojson-vt-master/debug/viz.js
  12. +0 −46 libraries/geojson-vt-master/package.json
  13. +0 −149 libraries/geojson-vt-master/src/clip.js
  14. +0 −121 libraries/geojson-vt-master/src/convert.js
  15. +0 −43 libraries/geojson-vt-master/src/feature.js
  16. +0 −242 libraries/geojson-vt-master/src/index.js
  17. +0 −74 libraries/geojson-vt-master/src/simplify.js
  18. +0 −106 libraries/geojson-vt-master/src/tile.js
  19. +0 −41 libraries/geojson-vt-master/src/transform.js
  20. +0 −56 libraries/geojson-vt-master/src/wrap.js
  21. +0 −1 libraries/geojson-vt-master/test/fixtures/collection-tiles.json
  22. +0 −10 libraries/geojson-vt-master/test/fixtures/collection.json
  23. +0 −1 libraries/geojson-vt-master/test/fixtures/dateline-tiles.json
  24. +0 −257 libraries/geojson-vt-master/test/fixtures/dateline.json
  25. +0 −4 libraries/geojson-vt-master/test/fixtures/empty.json
  26. +0 −7 libraries/geojson-vt-master/test/fixtures/feature-null-geometry.json
  27. +0 −1 libraries/geojson-vt-master/test/fixtures/feature-tiles.json
  28. +0 −13 libraries/geojson-vt-master/test/fixtures/feature.json
  29. +0 −1 libraries/geojson-vt-master/test/fixtures/single-geom-tiles.json
  30. +0 −12 libraries/geojson-vt-master/test/fixtures/single-geom.json
  31. +0 −1 libraries/geojson-vt-master/test/fixtures/us-states-tiles.json
  32. +0 −1 libraries/geojson-vt-master/test/fixtures/us-states-z7-37-48.json
  33. +0 −54 libraries/geojson-vt-master/test/fixtures/us-states.json
  34. +0 −28 libraries/geojson-vt-master/test/gen-tiles.js
  35. +0 −79 libraries/geojson-vt-master/test/test-clip.js
  36. +0 −42 libraries/geojson-vt-master/test/test-full.js
  37. +0 −38 libraries/geojson-vt-master/test/test-get-tile.js
  38. +0 −62 libraries/geojson-vt-master/test/test-multi-world.js
  39. +0 −59 libraries/geojson-vt-master/test/test-simplify.js
  40. +1 −1 out/BuildingShape.html
  41. +1 −1 out/BuildingShape.js.html
  42. +1 −1 out/GeoJSONParserTriangulation.html
  43. +3 −3 out/GeoJSONParserTriangulation.js.html
  44. +1 −1 out/GeoJSONParserTriangulationOSM.html
  45. +3 −3 out/GeoJSONParserTriangulationOSM.js.html
  46. +1 −1 out/OSMBuildingLayer.html
  47. +9 −9 out/OSMBuildingLayer.js.html
  48. +244 −17 out/OSMLayer.html
  49. +59 −21 out/OSMLayer.js.html
  50. +69 −145 out/OSMTBuildingLayer.html
  51. +120 −110 out/OSMTBuildingLayer.js.html
  52. +1 −1 out/index.html
  53. +1 −2 require.conf.js
  54. +2 −2 src/GeoJSONParserTriangulation.js
  55. +2 −2 src/GeoJSONParserTriangulationOSM.js
  56. +8 −8 src/OSMBuildingLayer.js
  57. +57 −19 src/OSMLayer.js
  58. +119 −109 src/OSMTBuildingLayer.js
  59. +199 −0 src/OSMTBuildingLayer_0.js
  60. +4 −5 test/OSMLayer.test.js
@@ -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 = {
@@ -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

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit f1872fa

Please sign in to comment.
You can’t perform that action at this time.