mirror of
https://github.com/Mibew/google-maps-plugin.git
synced 2024-11-15 08:44:18 +03:00
51 lines
1.6 KiB
Markdown
51 lines
1.6 KiB
Markdown
|
# Google Maps plugin
|
||
|
|
||
|
It shows your clients' location at Google maps!
|
||
|
|
||
|
|
||
|
## Installation
|
||
|
|
||
|
1. Get the archive with the plugin sources. At the moment the only option is to build the plugin from sources.
|
||
|
|
||
|
2. Untar/unzip the plugin's archive.
|
||
|
|
||
|
3. Put files of the plugins to the `<Mibew root>/plugins` folder.
|
||
|
|
||
|
4. Add plugins configs to "plugins" structure in "`<Mibew root>`/configs/config.yml". If the "plugins" stucture looks like `plugins: []` it will become:
|
||
|
```yaml
|
||
|
plugins:
|
||
|
"Mibew:GoogleMaps": # Plugin's configurations are described below
|
||
|
api_key: "secret API key provided by Google"
|
||
|
```
|
||
|
|
||
|
5. Navigate to "`<Mibew Base URL>`/operator/plugin" page and enable the plugin.
|
||
|
|
||
|
|
||
|
## Plugin's configurations
|
||
|
|
||
|
The plugin can be configured with values in "`<Mibew root>`/configs/config.yml" file.
|
||
|
|
||
|
### config.api_key
|
||
|
|
||
|
Type: `String`
|
||
|
|
||
|
Google Maps API key that will be used to render maps. You can learn how to get the key [here](https://developers.google.com/maps/documentation/javascript/tutorial#api_key).
|
||
|
|
||
|
|
||
|
## Build from sources
|
||
|
|
||
|
There are several actions one should do before use the latest version of the plugin from the repository:
|
||
|
|
||
|
1. Obtain a copy of the repository using `git clone`, download button, or another way.
|
||
|
2. Install [node.js](http://nodejs.org/) and [npm](https://www.npmjs.org/).
|
||
|
3. Install [Gulp](http://gulpjs.com/).
|
||
|
4. Install npm dependencies using `npm install`.
|
||
|
5. Run Gulp to build the sources using `gulp default`.
|
||
|
|
||
|
Finally `.tar.gz` and `.zip` archives of the ready-to-use Plugin will be available in `release` directory.
|
||
|
|
||
|
|
||
|
## License
|
||
|
|
||
|
[Apache License 2.0](http://www.apache.org/licenses/LICENSE-2.0.html)
|