Skip to content

Commit deeae5c

Browse files
committed
closes #1; draw snap modify interactions added
1 parent 67d09ed commit deeae5c

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/App.vue

+2-8
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,7 @@ Click clustered features for expand
7474
</ol-interaction-modify>
7575

7676
<ol-interaction-draw v-if="drawEnable" :type="drawType" @drawend="drawend" @drawstart="drawstart">
77-
<ol-style>
78-
<ol-style-stroke color="yellow" :width="5"></ol-style-stroke>
79-
<ol-style-fill color="rgba(0,0,0,0.1)"></ol-style-fill>
80-
<ol-style-circle :radius="7">
81-
<ol-style-fill color="blue"></ol-style-fill>
82-
</ol-style-circle>
83-
</ol-style>
77+
8478
</ol-interaction-draw>
8579

8680
<ol-interaction-snap v-if="drawEnable" />
@@ -166,7 +160,7 @@ export default {
166160
const vectorsource = ref(null)
167161
const view = ref(null);
168162
169-
const drawEnable = ref(true)
163+
const drawEnable = ref(false)
170164
const drawType = ref("Point")
171165
172166
contextMenuItems.value = [{

0 commit comments

Comments
 (0)