Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Updated references to Mgl... prefixed components #1421

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions docs/guide/composition.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,20 @@ For example, adding map controls:
:accessToken="accessToken"
:mapStyle.sync="mapStyle"
>
<MglNavigationControl position="top-right"/>
<MglGeolocateControl position="top-right" />
<VControlNavigation position="top-right"/>
<VControlGeolocate position="top-right" />
</mgl-map>
</div>
</template>

<script>
import { VMap, MglNavigationControl, MglGeolocateControl } from "v-mapbox";
import { VMap, VControlNavigation, VControlGeolocate } from "v-mapbox";

export default {
components: {
VMap,
MglNavigationControl,
MglGeolocateControl
VControlNavigation,
VControlGeolocate
},
data() {
return {
Expand All @@ -42,8 +42,8 @@ Adding a popup:
<template>
<div id="#app">
<VMap :accessToken="accessToken" :mapStyle.sync="mapStyle">
<MglNavigationControl position="top-right" />
<MglGeolocateControl position="top-right" />
<VControlNavigation position="top-right" />
<VControlGeolocate position="top-right" />
<VPopup :coordinates="popupCoordinates">
<span>Hello world!</span>
</VPopup>
Expand All @@ -54,16 +54,16 @@ Adding a popup:
<script>
import {
VMap,
MglNavigationControl,
MglGeolocateControl,
VControlNavigation,
VControlGeolocate,
VPopup
} from "v-mapbox";

export default {
components: {
VMap,
MglNavigationControl,
MglGeolocateControl,
VControlNavigation,
VControlGeolocate,
VPopup
},
data() {
Expand Down
28 changes: 15 additions & 13 deletions docs/guide/controls.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,31 +16,33 @@ _All controls_:
:mapStyle.sync="mapStyle"
:attributionControl="false"
>
<MglAttributionControl />
<MglNavigationControl position="top-right" />
<MglGeolocateControl position="top-right" />
<MglNavigationControl position="top-right" />
<MglGeolocateControl position="top-right" />
<MglScaleControl />
<VControlAttribution />
<VControlNavigation position="top-right" />
<VControlGeolocate position="top-right" />
<VControlFullscreen position="top-right" />
<VControlScale />
</VMap>
</div>
</template>

<script>
import {
VMap,
MglAttributionControl,
MglNavigationControl,
MglGeolocateControl,
MglFullscreenControl,
MglScaleControl
VControlAttribution,
VControlNavigation,
VControlGeolocate,
VControlFullscreen,
VControlScale
} from "v-mapbox";

export default {
components: {
VMap,
MglNavigationControl,
MglGeolocateControl
VControlAttribution,
VControlNavigation,
VControlGeolocate,
VControlFullscreen,
VControlScale
},
data() {
return {
Expand Down
6 changes: 3 additions & 3 deletions docs/guide/layers-and-sources.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ For example adding a layer with GeoJSON data:
<template>
<VMap :accessToken="accessToken" :mapStyle.sync="mapStyle">
<!-- Adding navigation control -->
<MglNavigationControl position="top-right" />
<VControlNavigation position="top-right" />
<!-- Adding GeoJSON layer -->
<VLayerMapboxGeojson
:sourceId="geoJsonSource.id"
Expand All @@ -26,12 +26,12 @@ For example adding a layer with GeoJSON data:
</template>

<script>
import { VMap, MglNavigationControl, VLayerMapboxGeojson } from "v-mapbox";
import { VMap, VControlNavigation, VLayerMapboxGeojson } from "v-mapbox";

export default {
components: {
VMap,
MglNavigationControl,
VControlNavigation,
VLayerMapboxGeojson
},
data() {
Expand Down