diff --git a/examples/symbol-atlas-webgl.html b/examples/symbol-atlas-webgl.html index 36774b6681..666bc43ab5 100644 --- a/examples/symbol-atlas-webgl.html +++ b/examples/symbol-atlas-webgl.html @@ -34,6 +34,12 @@

Symbols with WebGL example

Using symbols in an atlas with WebGL.

+

When using symbol styles with WebGL, OpenLayers would render the symbol + on a temporary image and would create a WebGL texture for each image. For a + better performance, it is recommended to use atlas images (similar to + image sprites with CSS), so that the number of textures is reduced. OpenLayers + provides an AtlasManager, which when passed to the constructor + of a symbol style, will create atlases for the symbols.

See the symbol-atlas-webgl.js source to see how this is done.

webgl, symbol, atlas, vector, point
diff --git a/src/ol/style/atlasmanager.js b/src/ol/style/atlasmanager.js index f53ccb3c24..990a98d622 100644 --- a/src/ol/style/atlasmanager.js +++ b/src/ol/style/atlasmanager.js @@ -30,8 +30,8 @@ ol.style.AtlasManagerInfo; * atlas. After that, when new atlases are created, they will have * twice the size as the latest atlas (until `maxSize` is reached). * - * If an application uses a lot, or a lot of large images, it is recommended to - * set a higher `size` value to avoid the creation of too many atlases. + * If an application uses many images or very large images, it is recommended + * to set a higher `size` value to avoid the creation of too many atlases. * * @constructor * @struct