Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Add explanation on Google Maps API key
  • Loading branch information
Rutger Laurman authored Jun 29, 2016
1 parent 05e2073 commit acae936
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ GeoCoder is used to search for address entries.

## Installation

[Download the files](https://github.com/lekkerduidelijk/kirby-geolocation-field/archive/master.zip) and put them in a folder named <code>geolocation</code>, inside the <code>/site/fields</code> folder. If the fields folder doesn't exist, create it.
[Download the files](https://github.com/lekkerduidelijk/kirby-geolocation-field/archive/master.zip) and put them in a folder named <code>geolocation</code>, inside the <code>/site/fields</code> folder. If the fields folder doesn't exist, create it.

## How to use it

Expand All @@ -18,6 +18,12 @@ fields:
type: geolocation
```

In [geolocation.js](https://github.com/lekkerduidelijk/kirby-geolocation-field/blob/master/assets/js/geolocation.js#L152) you need to set your [Google Maps API key](https://developers.google.com/maps/documentation/javascript/get-api-key). Google recently changed it's policy regarding Google Map implementations and it won't work without it. ([See issue #9](https://github.com/lekkerduidelijk/kirby-geolocation-field/issues/9))
```js
// Obtain key from https://developers.google.com/maps/documentation/javascript/get-api-key
var apiKey = "";

```

In your [template](http://getkirby.com/docs/templates) you can use the field like:
```php
Expand Down

0 comments on commit acae936

Please sign in to comment.