diff --git a/examples/ten-thousand-points.html b/examples/ten-thousand-points.html deleted file mode 100644 index e65352fef5..0000000000 --- a/examples/ten-thousand-points.html +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - - - - - - Ten thousand points example - - - - - -
- -
-
-
- - -
-
- -
- -
-

Ten thousand points example

-

Example of a map with ten thousand points.

-
-

See the ten-thousand-points.js source to see how this is done.

-
-
points, vector, openstreetmap
-
- -
- -
- - - - - - diff --git a/examples/ten-thousand-points.js b/examples/ten-thousand-points.js deleted file mode 100644 index 58f59f1bcb..0000000000 --- a/examples/ten-thousand-points.js +++ /dev/null @@ -1,77 +0,0 @@ -goog.require('ol.Map'); -goog.require('ol.RendererHint'); -goog.require('ol.View2D'); -goog.require('ol.control'); -goog.require('ol.control.MousePosition'); -goog.require('ol.geom2.LineStringCollection'); -goog.require('ol.geom2.PointCollection'); -goog.require('ol.layer.Tile'); -goog.require('ol.layer.Vector2'); -goog.require('ol.source.OSM'); -goog.require('ol.source.Vector2'); -goog.require('ol.webgl'); - - -// WARNING -// This example is an experimental testbed for WebGL vector work. The function -// calls used here are internal and low-level and are not representative of the -// final API. - -if (!ol.webgl.SUPPORTED) { - var info = document.getElementById('no-webgl'); - /** - * display error message - */ - info.style.display = ''; -} else { - - var pointCollection = ol.geom2.PointCollection.createEmpty(101 * 101); - var i, j, x, y; - for (i = 0; i < 101; ++i) { - for (j = 0; j < 101; ++j) { - x = 20000000 * (i - 50) / 50; - y = 20000000 * (j - 50) / 50; - pointCollection.add([x, y]); - } - } - - var k = 1000000; - var lineStringCollection = ol.geom2.LineStringCollection.pack([ - [[-20 * k, -20 * k], [20 * k, 20 * k]], - [[-20 * k, 20 * k], [20 * k, -20 * k]], - [[0 * k, 15 * k], - [10 * k, 5 * k], - [5 * k, 5 * k], - [5 * k, -15 * k], - [-5 * k, -15 * k], - [-5 * k, 5 * k], - [-10 * k, 5 * k], - [0 * k, 15 * k]] - ]); - - var map = new ol.Map({ - controls: ol.control.defaults().extend([ - new ol.control.MousePosition({ - undefinedHTML: ' ' - }) - ]), - layers: [ - new ol.layer.Tile({ - source: new ol.source.OSM() - }), - new ol.layer.Vector2({ - source: new ol.source.Vector2({ - lineStringCollections: [lineStringCollection], - projection: 'EPSG:3857', - pointCollections: [pointCollection] - }) - }) - ], - renderer: ol.RendererHint.WEBGL, - target: 'map', - view: new ol.View2D({ - center: [0, 0], - zoom: 0 - }) - }); -}