If I add a default_location in app.yml, that differs from the one declared in MapField, when I publish a Page object in the admin area, instead of replacing the MapField default, the yml-declared default is appended to it.
app.yml
Smindel\GIS\Forms\MapField:
default_location:
# Lon
- '174.7'
# Lat
- '-41.2'
Create a new page containing a DBGeography field
Publish
temporarily replace this "Location" field with a TextField so you can see at-a-glance what the value is interpreted as (The column in Postgres is a non Human readable, exponented int or something)
Observe the value "SRID=4326;POINT(174.5 -41.3 174.7 -41.2)" is shown.
This doesn't look right, and as a result (I think) the map in the MapField no longer shows any information.
If I add a
default_location
in app.yml, that differs from the one declared inMapField
, when I publish aPage
object in the admin area, instead of replacing theMapField
default, the yml-declared default is appended to it.app.yml
DBGeography
fieldTextField
so you can see at-a-glance what the value is interpreted as (The column in Postgres is a non Human readable, exponented int or something)This doesn't look right, and as a result (I think) the map in the
MapField
no longer shows any information.