-
Notifications
You must be signed in to change notification settings - Fork 42
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
Map options not taking effect #15
Comments
Try adding them in the schema (like the readme examples). Right now, you cannot pass any google maps options directly. This would be good. |
Thanks for your response, however, just tried adding them to the schema but it's not changing the map, other than for the options listed. Cannot get the googleMap options to take. I'll investigate a direct google map API instance and read coordinates from the DB instead. I only need to format a read-only map. |
I'm seeing the same issue. In addition if you create an update form the map is greyed out. |
Google Maps specific options can be set using |
Thanks. Is there an example anywhere? I've tried setting a callback for rendered with some options but it had no effect - which means I'm likely doing it wrong. |
It's mentioned in the readme. Here's example:
|
Hi,
I've been using a basic autoform-map successfully (thanks!), however I can't seem to get any changes from adding map options. Example below is ensuring searchBox is turn off, but the search box is always rendered (I know it is supposed to be off by default):
{{#autoForm id="viewUserProfile" schema="Schema.User" doc=currentUser type="readonly"}}
{{> afQuickField name="profile.location" width="125px" height="75px" searchBox=false zoom=4 label=false}}
{{/autoForm}}
Also not had luck trying to include other API options such as 'disableDefaultUI'. Can you provide a simple example or are they not possible as it stands?
The text was updated successfully, but these errors were encountered: