-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
1,082 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,8 +23,8 @@ The following components are available: | |
| [MapboxImage](https://vue-mapbox-gl.meta.fr/components/MapboxImage) | Load an image to be used on the map. | ✅ | | ||
| [MapboxImages](https://vue-mapbox-gl.meta.fr/components/MapboxImages) | Load multiple images to be used on the map. | ✅ | | ||
| [MapboxLayer](https://vue-mapbox-gl.meta.fr/components/MapboxLayer) | Display a layer on the map. | ❌ | | ||
| [MapboxNavigationControl](https://vue-mapbox-gl.meta.fr/components/MapboxNavigationControl) | Display the map's navigation controls | ❌ | | ||
| [MapboxPopup](https://vue-mapbox-gl.meta.fr/components/MapboxPopup) | Display a popup on the map | ❌ | | ||
| [MapboxNavigationControl](https://vue-mapbox-gl.meta.fr/components/MapboxNavigationControl) | Display the map's navigation controls | ✅ | | ||
| [MapboxPopup](https://vue-mapbox-gl.meta.fr/components/MapboxPopup) | Display a popup on the map | ✅ | | ||
| [MapboxSource](https://vue-mapbox-gl.meta.fr/components/MapboxSource) | Load a source of data to be used on the map | ❌ | | ||
|
||
## To do | ||
|
@@ -42,20 +42,20 @@ git clone [email protected]:studiometa/vue-mapbox-gl.git | |
# Cd in the repository | ||
cd vue-mapbox-gl | ||
# Install dependencies | ||
yarn | ||
npm i | ||
``` | ||
|
||
### Useful commands | ||
|
||
```bash | ||
# Build for deployment | ||
yarn run build | ||
npm run build | ||
# Test before deployment | ||
yarn run test | ||
npm run test | ||
# Lint files | ||
yarn run lint | ||
npm run lint | ||
# Fix linting errors | ||
yarn run fix | ||
npm run fix | ||
``` | ||
|
||
## Note | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<template> | ||
<div> | ||
<mapbox-map | ||
style="margin-top: 1em; height: 400px;" | ||
:access-token="MAPBOX_API_KEY" | ||
map-style="mapbox://styles/mapbox/streets-v11"> | ||
<mapbox-navigation-control position="bottom-right" /> | ||
</mapbox-map> | ||
</div> | ||
</template> | ||
|
||
<style lang="scss"> | ||
// Import mapbox stylesheet to get + - and compass buttons styles | ||
@import '~mapbox-gl/dist/mapbox-gl'; | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<template> | ||
<mapbox-map | ||
style="margin-top: 1em; height: 400px;" | ||
:access-token="MAPBOX_API_KEY" | ||
map-style="mapbox://styles/mapbox/streets-v11"> | ||
<mapbox-popup :lng-lat="[10, 10]"> | ||
<p>Hello world !</p> | ||
</mapbox-popup> | ||
</mapbox-map> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.