googlemaps / extended-component-library

A set of Web Components from Google Maps Platform
https://configure.mapsplatform.google/
Apache License 2.0
128 stars 12 forks source link

How to prepopulate the text box? #226

Open avi12 opened 3 months ago

avi12 commented 3 months ago

In my scenario, I load <gmpx-place-picker> inside a sandbox page inside an iframe inside a Chrome extension content script After the user selects a location, he will close the pop-up injected into the content script How do I make sure that the next time he loads up, <gmpx-place-picker> is prepopulated with the value he selected earlier?

awmack commented 2 months ago

Good question, there isn't a way to do this right now. Are you looking to pre-populate the text box purely for display purposes? Or would you need to pre-populate placePicker.value (i.e. the Place instance) as well?

avi12 commented 2 months ago

For display purposes, yes