Skip to content
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

Feature: prefill the location based on an address #20

Open
stefankip opened this issue Jul 29, 2020 · 2 comments
Open

Feature: prefill the location based on an address #20

stefankip opened this issue Jul 29, 2020 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers
Milestone

Comments

@stefankip
Copy link

I was thinking; I have this document with address information properties, like address, zipcode and city.
Then the content editor needs to look up the location in the GMaps property.

It would be really cool if the GMaps property was aware of these other properties, defining the location of the pinpoint.
This way the address is entered and the GMaps property can be used to review the correct location and adjust when needed.

@ronaldbarendse
Copy link
Collaborator

I'll have to investigate what data is available to the editor first, as it should work for properties on the content itself, but also at least within Nested Content and Block List (and with properties on the same element, parent elements or content)...

Maybe this is already possible by using the EditorModelEventManager and pre-filling the GMapsModel with the address?

@ronaldbarendse ronaldbarendse added the enhancement New feature or request label Oct 18, 2020
@robertjf robertjf added this to the 2.0.2 milestone Dec 15, 2021
@robertjf
Copy link
Collaborator

I'm thinking the following should be possible:

  1. Property Sync: Use the Maps Editor to find an address, and fill out associated properties
  2. Auto-Map: Use associated properties to place a pin on the map (optionally, we could hide the search field in this case).

This would be dependent on property mapping in the Maps Prevalue editor - perhaps a custom editor to map properties to address fields would be appropriate here.

We would need to gracefully fallback if the properties nominated don't exist on the content node.

@robertjf robertjf modified the milestones: 2.1.0, 2.2.0 Jul 2, 2022
@robertjf robertjf added the good first issue Good for newcomers label Feb 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants