Skip to content

Commit

Permalink
closes #22, No map visible because the map container's width or heigh…
Browse files Browse the repository at this point in the history
…t are 0 bug fix
  • Loading branch information
MelihAltintas committed Sep 6, 2021
1 parent 304f1d7 commit b19ea31
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue3-openlayers",
"version": "0.1.43",
"version": "0.1.44",
"description": "Openlayers Wrapper for Vue3",
"repository": {
"type": "git",
Expand Down
7 changes: 6 additions & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@
<ol-feature ref="animationPath">
<ol-geom-line-string :coordinates="path"></ol-geom-line-string>
<ol-style>
<ol-style-stroke color="red" width="7"></ol-style-stroke>
<ol-style-stroke color="red" :width="7"></ol-style-stroke>
</ol-style>
</ol-feature>
<ol-animation-path v-if="animationPath" :path="animationPath.feature" :duration="4000" :repeat="10">
Expand Down Expand Up @@ -287,6 +287,10 @@ export default {
console.log(event)
}
const videoStopped = (event) => {
console.log(event)
}
const swipeControl = ref(null)
const jawgLayer = ref(null)
const osmLayer = ref(null)
Expand Down Expand Up @@ -345,6 +349,7 @@ export default {
drawend,
modifystart,
modifyend,
videoStopped,
drawEnable,
drawType,
layerList,
Expand Down
13 changes: 13 additions & 0 deletions src/assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,17 @@

.ol-layerswitcher-image li.ol-layer-hidden{
opacity:1 !important;
}

.ol-overviewmap.ol-collapsed .ol-overviewmap-map, .ol-overviewmap.ol-uncollapsible button {
display: block;
opacity:0
}

.ol-collapsed {
background-color: rgba(255,255,255,0);
}

.ol-collapsed:hover {
background-color: rgba(255,255,255,0);
}

0 comments on commit b19ea31

Please sign in to comment.