Merge pull request #4815 from fredj/synthetic_wrap

wrapX false in synthetic examples
This commit is contained in:
Frédéric Junod
2016-02-11 11:49:45 +01:00
3 changed files with 4 additions and 59 deletions

View File

@@ -7,60 +7,3 @@ docs: >
tags: "vector" tags: "vector"
--- ---
<div id="map" class="map"></div> <div id="map" class="map"></div>
<p>Performance results:</p>
<table border="1">
<thead>
<tr>
<th>Device/Browser</th>
<th>200 lines</th>
<th>500 lines</th>
<th>1000 lines</th>
<th>2000 lines</th>
<th>5000 lines</th>
<th>10000 lines</th>
<th>20000 lines</th>
</tr>
</thead>
<tbody>
<tr>
<td>Mac Book Air / Chrome 33 canary</td>
<td>60 fps</td>
<td>60 fps</td>
<td>60 fps</td>
<td>60 fps</td>
<td>60 fps</td>
<td>60 fps</td>
<td>60 fps</td>
</tr>
<tr>
<td>Mac Book Air / FireFox 25</td>
<td>60 fps</td>
<td>60 fps</td>
<td>60 fps</td>
<td>60 fps</td>
<td>60 fps</td>
<td>22 fps</td>
<td>6 fps</td>
</tr>
<tr>
<td>Mac Book Air / Safari 7</td>
<td>60 fps</td>
<td>60 fps</td>
<td>60 fps</td>
<td>40 fps</td>
<td>10 fps</td>
<td>N/A</td>
<td>N/A</td>
</tr>
<tr>
<td>iPhone 4S / iOS 7 / Safari</td>
<td>60 fps</td>
<td>33 fps</td>
<td>15 fps</td>
<td>5 fps</td>
<td>N/A</td>
<td>N/A</td>
<td>N/A</td>
</tr>
</tbody>
</table>

View File

@@ -38,7 +38,8 @@ for (i = 0; i < count; ++i) {
var vector = new ol.layer.Vector({ var vector = new ol.layer.Vector({
source: new ol.source.Vector({ source: new ol.source.Vector({
features: features features: features,
wrapX: false
}), }),
style: new ol.style.Style({ style: new ol.style.Style({
stroke: new ol.style.Stroke({ stroke: new ol.style.Stroke({

View File

@@ -41,7 +41,8 @@ var styles = {
}; };
var vectorSource = new ol.source.Vector({ var vectorSource = new ol.source.Vector({
features: features features: features,
wrapX: false
}); });
var vector = new ol.layer.Vector({ var vector = new ol.layer.Vector({
source: vectorSource, source: vectorSource,