Add renderMode option to ol.layer.Vector

This also deprecates ol.source.ImageVector.
This commit is contained in:
Andreas Hocevar
2017-11-22 20:58:27 +01:00
parent 29e3dd39e4
commit dde81d8585
14 changed files with 408 additions and 78 deletions

View File

@@ -3,9 +3,7 @@ layout: example.html
title: Image Vector Layer
shortdesc: Example of an image vector layer.
docs: >
<p>This example uses a <code>ol.source.ImageVector</code> source. That source gets vector features from the
<code>ol.source.Vector</code> it's configured with, and draw these features to an HTML5 canvas element that
is then used as the image of an image layer.</p>
<p>This example uses <code>ol.layer.Vector</code> with `renderMode: 'image'`. This mode results in faster rendering during interaction and animations, at the cost of less accurate rendeering.</p>
tags: "vector, image"
---
<div id="map" class="map"></div>