Skip to content

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
haxzie committed Feb 21, 2022
1 parent e2fb573 commit e351c32
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,3 +196,37 @@ export default {
</style>

```

### Using with multiple map and deck.gl overlays
```javascript

<template>
<div class="deck-container" ref="deckContainerRef">
<v-deckgl
:layers="layers"
:viewState="viewState"
:disableContextMenu="true"
:cursor="cursor"
:controller="{
doubleClickZoom: false,
type: MapController,
scrollZoom: true,
}"
@click="(info, event) => $emit('onClick', info, event)"
@drag="(info, event) => $emit('onDrag', info, event)"
@onDragStart="(info, event) => $emit('onDragStart', info, event)"
@onDragEnd="(info, event) => $emit('onDragEnd', info, event)"
@view-state-change="(viewState) => updateViewState(viewState)"
>
<!-- Base map -->
<template v-slot:background>
<div id="base-map" ref="map"></div>
</template>
<!-- Map Labels -->
<template v-slot:foreground>
<div id="foreground-map" ref="fgmap" v-show="showMapLabels"></div>
</template>
</v-deckgl>
</div>
</template>
```

0 comments on commit e351c32

Please sign in to comment.