-
Notifications
You must be signed in to change notification settings - Fork 33
Cant unset Location #36
Comments
It's been a long time since I've worked on this project, but maybe this snippet has a hint on how to resolve? silverstripe-googlemapfield/src/GoogleMapField.php Lines 230 to 238 in 06fdaa0
Maybe set |
@willmorgan Unfortunatly null translates to lat: 0, lon: 0 which is a valid geo value. Would be great if one could delete the marker on the map and then value is set to null. |
Yeah, probably need a clear value button to unset the marker |
Or just not set the marker by default, just center the map with the given default values. |
How do you show the current location if you don't have a marker on load? |
If Location is not null resp. Location is already set then there should be a marker on load. |
It seems unsetting a Location or having null values is not possible since the default values are always written to DataObject.
So this is a mandatory field and its not possible to have this optional.
How can we make this field optional resp. having null values in Location?
The text was updated successfully, but these errors were encountered: