Skip to content

Commit d609ad9

Browse files
author
Will Morgan
committed
Update docs for new naming convention
1 parent 0c797d0 commit d609ad9

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

README.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,23 @@
11
silverstripe-googlemapfield
22
==============
33

4-
Lets you record a precise location using latitude/longitude fields to a DataObject.
4+
Lets you record a precise location using latitude/longitude/zoom fields to a DataObject.
55

66
Displays a map using the Google Maps API. The user may then choose where to place the marker; the landing coordinates are then saved.
77

88
You can also search for locations using the search box, which uses the Google Maps Geocoding API.
99

10-
Use the 2.4 branch for SilverStripe 2.4.
11-
12-
1310
### Usage
1411

1512
##### `__construct` options
1613

1714
|Option|Default|Description|
1815
|------|-------|-----------|
19-
|`fieldNames`|See `GoogleMapField::$defaults`|A map of what your object's latitude/longitude fields are. Defaults to `Lat` for `lat` and `Lng` for `lng`.|
16+
|`field_names`|See `GoogleMapField.yml`'s `default_options.field_names`|A map of field names to save the map data into your object.|
2017

2118
##### `Field` options
2219

2320
|Option|Default|Description|
2421
|------|-------|-----------|
2522
|`coords`|Your object's latitude and longitude|The intial coordinates of the map - note: this is not the default value if no object exists|
26-
|`map`|Zoom of 8, map type of ROADMAP|A [google.maps.MapOptions](https://developers.google.com/maps/documentation/javascript/reference?csw=1#MapOptions) object|
23+
|`map`|Zoom of 14, map type of ROADMAP|A [google.maps.MapOptions](https://developers.google.com/maps/documentation/javascript/reference?csw=1#MapOptions) object|

0 commit comments

Comments
 (0)