Skip to content

Commit 7a0dd00

Browse files
committed
docs(perf): reduce AppDemo data and uncomment webgl layer
closes #290
1 parent 994d1b0 commit 7a0dd00

File tree

1 file changed

+1
-24
lines changed

1 file changed

+1
-24
lines changed

src/demos/AppDemo.vue

+1-24
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@
184184
preview="https://raw.githubusercontent.com/MelihAltintas/vue3-openlayers/main/src/assets/cluster.png"
185185
>
186186
<ol-source-vector ref="vectorsource">
187-
<ol-feature v-for="index in 500" :key="index">
187+
<ol-feature v-for="index in 300" :key="index">
188188
<ol-geom-point
189189
:coordinates="[
190190
getRandomInRange(24, 45, 3),
@@ -255,13 +255,6 @@
255255
</ol-animation-path>
256256
</ol-source-vector>
257257
</ol-vector-layer>
258-
259-
<ol-webgl-points-layer :styles="webglPointsStyle">
260-
<ol-source-webglpoints
261-
:format="geoJson"
262-
url="https://openlayers.org/en/latest/examples/data/geojson/world-cities.geojson"
263-
/>
264-
</ol-webgl-points-layer>
265258
</ol-map>
266259
</template>
267260

@@ -428,22 +421,6 @@ const zones = [
428421
extent: [-0.101752, 47.49888, 20.827203, 54.043465],
429422
},
430423
];
431-
432-
const webglPointsStyle = {
433-
"circle-radius": 6,
434-
"circle-fill-color": "yellow",
435-
"circle-stroke-width": 2,
436-
"circle-stroke-color": "darkblue",
437-
"circle-opacity": [
438-
"interpolate",
439-
["linear"],
440-
["get", "population"],
441-
40000,
442-
0.6,
443-
2000000,
444-
0.92,
445-
],
446-
};
447424
</script>
448425

449426
<style scoped>

0 commit comments

Comments
 (0)