objectivehtml / Google-Maps-for-Craft

The complete geolocation toolkit for Craft CMS.
Other
94 stars 20 forks source link

Required setting not working for map field #55

Open katrinkerber opened 8 years ago

katrinkerber commented 8 years ago

I have a map field set as required within the field layout settings, but entries are saved even when no marker has been added to the map.

If this can't be fixed easily, could you please advise of the best way to get only entries with a marker assigned? I've tried:

craft.entries.myMapField(':notempty:')

But that doesn't work.

Jammooka commented 8 years ago

Could you maybe have a text field for the address and make that required, then set it up to automatically geocode it? You'd have less control over the position, but would definitely require a value

katrinkerber commented 8 years ago

If memory serves me right, automatic geocoding isn't always 100% accurate and in this instance it is important that the position is correct.

If this isn't something that can be added/amended within the plugin. not to worry :)