forked from xkjyeah/vue-google-maps
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(docs): update and improve documentation
I also add a new section to document the API of every component fo the plugin
- Loading branch information
Showing
49 changed files
with
635 additions
and
23,557 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
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
50 changes: 50 additions & 0 deletions
50
packages/documentation/docs/.vuepress/components/eg-circle.vue
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,50 @@ | ||
<template> | ||
<div> | ||
<gmap-map | ||
:center="center" | ||
:zoom="4" | ||
style="width: 100%; height: 500px" | ||
ref="map" | ||
> | ||
<gmap-circle | ||
v-if="radius" | ||
:editable="editable" | ||
:draggable="draggable" | ||
:radius="radius" | ||
:center="circleCenter" | ||
:options="options" | ||
ref="circle" | ||
> | ||
</gmap-circle> | ||
</gmap-map> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: "eg-circle", | ||
data() { | ||
return { | ||
center: { lat: 40.714, lng: -74.005 }, | ||
editable: true, | ||
draggable: true, | ||
population: 8405837, | ||
circleCenter: { lat: 40.714, lng: -74.005 }, | ||
options: { | ||
strokeColor: "#FF0000", | ||
strokeOpacity: 0.8, | ||
strokeWeight: 2, | ||
fillColor: "#FF0000", | ||
fillOpacity: 0.35, | ||
}, | ||
}; | ||
}, | ||
computed: { | ||
radius() { | ||
return Math.sqrt(this.population) * 100; | ||
}, | ||
}, | ||
}; | ||
</script> | ||
|
||
<style lang="css" scoped></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
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
25 changes: 16 additions & 9 deletions
25
packages/documentation/docs/.vuepress/components/eg-kml-layer.vue
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 |
---|---|---|
@@ -1,24 +1,31 @@ | ||
<template> | ||
<div> | ||
<gmap-map :center="center" :zoom="7" style="width: 100%; height: 500px"> | ||
<google-kml-layer v-for="l in kmlLayers" :url="l.url" :clickable="true"></google-kml-layer> | ||
<gmap-kml-layer | ||
v-for="(l, index) of kmlLayers" | ||
:key="index" | ||
:url="l.url" | ||
:clickable="true" | ||
></gmap-kml-layer> | ||
</gmap-map> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'eg-kml-layer', | ||
data () { | ||
name: "eg-kml-layer", | ||
data() { | ||
return { | ||
center: { | ||
lat: -19.257753, | ||
lng: 146.823688 | ||
lng: 146.823688, | ||
}, | ||
kmlLayers: [{ | ||
url: 'https://developers.google.com/maps/documentation/javascript/examples/kml/westcampus.kml' | ||
}], | ||
} | ||
kmlLayers: [ | ||
{ | ||
url: "https://developers.google.com/maps/documentation/javascript/examples/kml/westcampus.kml", | ||
}, | ||
], | ||
}; | ||
}, | ||
} | ||
}; | ||
</script> |
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
2 changes: 1 addition & 1 deletion
2
packages/documentation/docs/.vuepress/components/eg-overlay.vue
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.