-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optional Map Location #6
Comments
Very interesting. Currently the situation is that at all times a map marker has to exist on the map, and deleting/removing the current location only returns you to a default position. I could say this was by design, but its more, a very tight coupling between the map marker and the lat/lng text box. To break that link, would cause me some headaches. For example I would need a new state, lets call it null position, where no map marker appears. I feel I might need, for UX reasons, a new special button, lets call it 'clear' or 'no location' to exist right of the lat/lng text box to clear the current location. I agree that a null position, eg. a map pointing nowhere, should exist. This would take a bit of programming to organise. I will add this to the roadmap, but I feel this will take a low priority, only because its not a simple request. It would change config, editor view and the strongly type class that represents a Terratype map - plus what happens if you try and render a null position map in a razor template? No map appears, I'm not sure what should happen. As a horrible temporary hack, you could add a check box to your own doctypes, that sort of switches on/off the map. not great, I know. Sorry. |
An example may help clarify this requirement: |
The UX required is around what does the map display to the content editor when the map is null, how do they select a location afterwards if they don't wish the map being null anymore. |
A related question... would it be possible to make the map a mandatory field? At the moment if you make it mandatory then it always validates as there is a default location. If the default were only shown when the map was not mandatory then it would force users to select a location. |
Added a map property to a doctype where selecting a location is optional.
Upon saving the page, the map always sets a location to the default location set on the datatype.
Unsetting the default location on the data type doesn't seem to be possible.
The text was updated successfully, but these errors were encountered: