Skip to content

Commit

Permalink
Release 0.4 (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
loicteixeira authored Jan 15, 2018
1 parent 770eacc commit 7a7d80c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Fixed
...

## [0.4] - 2018-01-15

Thanks to @balinabbb for his contribution

### Added

- Add the possibility to set the (admin) map language with `WAGTAIL_ADDRESS_MAP_LANGUAGE`

## [0.3.1] - 2017-11-20

### Fixed
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,16 @@

Add `wagtailgmaps` to your `settings.py` `INSTALLED_APPS` section.

Add a couple of necessary constants in your `settings.py` file:
Add some configuration in your `settings.py` file:

```python
# Mandatory
WAGTAIL_ADDRESS_MAP_CENTER = 'Wellington, New Zealand'
WAGTAIL_ADDRESS_MAP_ZOOM = 8
WAGTAIL_ADDRESS_MAP_KEY = 'xxx'

# Optional
WAGTAIL_ADDRESS_MAP_LANGUAGE = 'ru'
```

`WAGTAIL_ADDRESS_MAP_CENTER` must be a properly formatted address. Also, remember valid zoom levels go from 0 to 18. See [Map options](https://developers.google.com/maps/documentation/javascript/tutorial#MapOptions) for details.
Expand Down
2 changes: 1 addition & 1 deletion wagtailgmaps/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
__title__ = 'wagtailgmaps'
__version__ = '0.3.1'
__version__ = '0.4'
__author__ = 'Springload'
__license__ = 'MIT'
__copyright__ = 'Copyright 2017 Springload'

0 comments on commit 7a7d80c

Please sign in to comment.