forked from xkjyeah/vue-google-maps
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(all): remove unnecesary files and upgrade dependcies
Also I change all components in the SFC way
- Loading branch information
Showing
130 changed files
with
32,581 additions
and
50,714 deletions.
There are no files selected for viewing
File renamed without changes.
Large diffs are not rendered by default.
Oops, something went wrong.
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
39 changes: 39 additions & 0 deletions
39
packages/documentation/docs/.vuepress/components/eg-rectangle.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,39 @@ | ||
<template> | ||
<div> | ||
<gmap-map | ||
:center="center" | ||
:zoom="12" | ||
style="width: 100%; height: 500px" | ||
ref="map" | ||
> | ||
<gmap-rectangle | ||
:editable="editable" | ||
:draggable="draggable" | ||
:bounds="bounds" | ||
ref="rectangle" | ||
> | ||
</gmap-rectangle> | ||
</gmap-map> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: "eg-rectangle", | ||
data() { | ||
return { | ||
center: { lat: 1.38, lng: 103.8 }, | ||
editable: true, | ||
draggable: true, | ||
bounds: { | ||
north: 33.685, | ||
south: 33.671, | ||
east: -116.234, | ||
west: -116.251 | ||
} | ||
}; | ||
} | ||
}; | ||
</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
91 changes: 86 additions & 5 deletions
91
packages/documentation/docs/code/components/place-input.md
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,20 +1,101 @@ | ||
--- | ||
title: place-input | ||
--- | ||
# place-input | ||
|
||
# PlaceInput | ||
PlaceInput component | ||
|
||
::: tip Tags | ||
|
||
**deprecated**: true<br />**see**: [source code](/guide/place-input.html#source-code)<br />**see**: [Map Bounds](https://developers.google.com/maps/documentation/javascript/places-autocomplete#set-the-bounds-on-creation-of-the-autocomplete-object)<br /> | ||
::: | ||
|
||
## Table of contents | ||
[[toc]] | ||
|
||
## Props | ||
|
||
### bounds (`object`) | ||
::: tip Tags | ||
**value**: new google.maps.LatLngBounds(...)<br />**see**: [Map Bounds](https://developers.google.com/maps/documentation/javascript/places-autocomplete#set-the-bounds-on-creation-of-the-autocomplete-object)<br /> | ||
::: | ||
|
||
|
||
|type|default|description| | ||
|:-|:-|:-|:-| | ||
|`object`|-|Map bounds this is an LatLngBounds | ||
object builded with| | ||
### defaultPlace (`string`) | ||
::: tip Tags | ||
**value**: string<br /> | ||
::: | ||
|
||
|
||
|type|default|description| | ||
|:-|:-|:-|:-| | ||
|`string`|''|A default value for the html input| | ||
### componentRestrictions (`object`) | ||
::: tip Tags | ||
**value**: `{[key: string]: string}`<br />**see**: [componentRestrictions](https://developers.google.com/maps/documentation/javascript/places-autocomplete#restrict-the-search-to-a-specific-country)<br /> | ||
::: | ||
|
||
|
||
|type|default|description| | ||
|:-|:-|:-|:-| | ||
|`object`|null|Restrict the search to a specific country| | ||
### types (`array`) | ||
::: tip Tags | ||
**value**: string[]<br />**see**: [Map Bounds](https://developers.google.com/maps/documentation/javascript/places-autocomplete#set-the-bounds-on-creation-of-the-autocomplete-object)<br /> | ||
::: | ||
|
||
|
||
|type|default|description| | ||
|:-|:-|:-|:-| | ||
|`array`|[]|Map types this is an array of strings| | ||
### placeholder (`string`) | ||
::: tip Tags | ||
**value**: string<br /> | ||
::: | ||
|
||
|
||
|type|default|description| | ||
|:-|:-|:-|:-| | ||
|`string`|-|A placeholder for the html input| | ||
### className (`string`) | ||
::: tip Tags | ||
**value**: string<br /> | ||
::: | ||
|
||
|
||
|type|default|description| | ||
|:-|:-|:-|:-| | ||
|`string`|-|A html class name for the html input| | ||
### label (`string`) | ||
::: tip Tags | ||
**value**: string<br /> | ||
::: | ||
|
||
|
||
|type|default|description| | ||
|:-|:-|:-|:-| | ||
|`string`|null|A label for the html input| | ||
### selectFirstOnEnter (`boolean`) | ||
::: tip Tags | ||
**value**: boolean<br /> | ||
::: | ||
|
||
|
||
|type|default|description| | ||
|:-|:-|:-|:-| | ||
|`boolean`|false|If true the first element on the list will be selected | ||
when you press enter in the html input.| | ||
|
||
|
||
## Events | ||
|
||
### place_changed (undefined) | ||
|
||
undefined | ||
|
||
Place change event | ||
#### Properties | ||
| name | type | description | ||
|:-|:-|:-| | ||
|place|`object`|`this.$autocomplete.getPlace()` | ||
|
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,89 @@ | ||
--- | ||
title: polygon | ||
--- | ||
# GmapPolygon | ||
Polygon component | ||
|
||
::: tip Tags | ||
**see**: [source code](/guide/polygon.html#source-code)<br />**see**: [official docs](https://developers.google.com/maps/documentation/javascript/examples/polygon-arrays?hl=es)<br /> | ||
::: | ||
|
||
## Table of contents | ||
[[toc]] | ||
|
||
## Props | ||
|
||
### deepWatch (`boolean`) | ||
::: tip Tags | ||
**value**: boolean<br /> | ||
::: | ||
|
||
|
||
|type|default|description| | ||
|:-|:-|:-|:-| | ||
|`boolean`|false|If set true the object will be deep watched| | ||
### draggable (`boolean`) | ||
::: tip Tags | ||
**value**: true, false<br />**see**: [Polygon dragable](https://developers.google.com/maps/documentation/javascript/reference/polygon?hl=es#PolylineOptions.draggable)<br /> | ||
::: | ||
|
||
|
||
|type|default|description| | ||
|:-|:-|:-|:-| | ||
|`boolean`|-|Indicates if the polygon is draggable| | ||
### editable (`boolean`) | ||
::: tip Tags | ||
**value**: true, false<br />**see**: [Polygon editable](https://developers.google.com/maps/documentation/javascript/reference/polygon?hl=es#PolylineOptions.editable)<br /> | ||
::: | ||
|
||
|
||
|type|default|description| | ||
|:-|:-|:-|:-| | ||
|`boolean`|-|Indicates if the polygon is editable| | ||
### options (`object`) | ||
::: tip Tags | ||
**value**: boolean<br /> | ||
::: | ||
|
||
|
||
|type|default|description| | ||
|:-|:-|:-|:-| | ||
|`object`|-|More options that you can pass to the component| | ||
### path (`array`) | ||
::: tip Tags | ||
**value**: Array<br />**see**: [Polygon path](https://developers.google.com/maps/documentation/javascript/reference/polygon?hl=es#PolylineOptions.path)<br /> | ||
::: | ||
|
||
|
||
|type|default|description| | ||
|:-|:-|:-|:-| | ||
|`array`|-|Indicates if the polygon is editable| | ||
### paths (`array`) | ||
::: tip Tags | ||
**value**: Array<br />**see**: [Polygon paths](https://developers.google.com/maps/documentation/javascript/reference/polygon?hl=es#PolygonOptions.paths)<br /> | ||
::: | ||
|
||
|
||
|type|default|description| | ||
|:-|:-|:-|:-| | ||
|`array`|-|Indicates if the polygon is editable| | ||
|
||
|
||
## Events | ||
|
||
### paths_changed (undefined) | ||
|
||
An event to detect when a paths changes | ||
#### Properties | ||
| name | type | description | ||
|:-|:-|:-| | ||
|paths|`array`|`this.$polygonObject.getPaths()` |### path_changed (undefined) | ||
|
||
### path_changed (undefined) | ||
|
||
An event to detect when a path change | ||
#### Properties | ||
| name | type | description | ||
|:-|:-|:-| | ||
|path|`array`|`this.$polygonObject.getPath()` | ||
|
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,72 @@ | ||
--- | ||
title: polyline | ||
--- | ||
# GmapPolyline | ||
PolyLine component | ||
|
||
::: tip Tags | ||
**see**: [source code](/guide/polyline.html#source-code)<br />**see**: [official docs](https://developers.google.com/maps/documentation/javascript/reference/polygon?hl=es#Polyline)<br /> | ||
::: | ||
|
||
## Table of contents | ||
[[toc]] | ||
|
||
## Props | ||
|
||
### deepWatch (`boolean`) | ||
::: tip Tags | ||
**value**: boolean<br /> | ||
::: | ||
|
||
|
||
|type|default|description| | ||
|:-|:-|:-|:-| | ||
|`boolean`|false|If set true the object will be deep watched| | ||
### draggable (`boolean`) | ||
::: tip Tags | ||
**value**: true, false<br />**see**: [Polyline draggable](https://developers.google.com/maps/documentation/javascript/reference/polygon?hl=es#PolylineOptions.draggable)<br /> | ||
::: | ||
|
||
|
||
|type|default|description| | ||
|:-|:-|:-|:-| | ||
|`boolean`|-|Indicates if the polyline is draggable| | ||
### editable (`boolean`) | ||
::: tip Tags | ||
**value**: true, false<br />**see**: [Polyline editable](https://developers.google.com/maps/documentation/javascript/reference/polygon?hl=es#PolylineOptions.editable)<br /> | ||
::: | ||
|
||
|
||
|type|default|description| | ||
|:-|:-|:-|:-| | ||
|`boolean`|-|Indicates if the polygon is editable| | ||
### options (`object`) | ||
::: tip Tags | ||
**value**: boolean<br /> | ||
::: | ||
|
||
|
||
|type|default|description| | ||
|:-|:-|:-|:-| | ||
|`object`|-|More options that you can pass to the component| | ||
### path (`array`) | ||
::: tip Tags | ||
**value**: Array<br />**see**: [Polyline path](https://developers.google.com/maps/documentation/javascript/reference/polygon?hl=es#PolylineOptions.path)<br /> | ||
::: | ||
|
||
|
||
|type|default|description| | ||
|:-|:-|:-|:-| | ||
|`array`|-|Indicates if the polygon is editable| | ||
|
||
|
||
## Events | ||
|
||
### path_changed (undefined) | ||
|
||
An event to detect when a path change | ||
#### Properties | ||
| name | type | description | ||
|:-|:-|:-| | ||
|path|`array`|`this.$polygonObject.getPath()` | ||
|
Oops, something went wrong.