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

afFieldInput #14

Closed
rogueturnip opened this issue Jan 20, 2015 · 3 comments
Closed

afFieldInput #14

rogueturnip opened this issue Jan 20, 2015 · 3 comments

Comments

@rogueturnip
Copy link

Hi!

I'm trying to use the form with a schema defined in Collections2 and most of the afFieldInput items don't seem to be working for me. Here is what I've put into my collection:
startLocation: {
type: String,
autoform: {
afFieldInput: {
type: 'map',
mapType: 'terrain',
zoom: '8',
searchBox: true,
width: '50%',
defaultLat: '46.073',
defaultLng: '-100.546',
geolocation: true,
}
}
}

The width, searchBox, and geolocation seem to work but I'm not getting the proper zoom or centering based on Lat Lng.,

An example on how to use the googleMaps option to specify the options would be great too.

Thanks for a great tool!

@yogiben
Copy link
Owner

yogiben commented Jan 23, 2015

There are some new examples in the Readme. I hope they help.

@rogueturnip
Copy link
Author

THanks, this helps a bit, but I can't get it to take the defaultlat or defaultlng and the map zoom isn't working when I set it up.

Also, on an autoform update will it use the lat and lng stored to create the map in the form?

@mpowaga
Copy link
Collaborator

mpowaga commented May 12, 2015

@rogueturnip Seems to be solved. Closing. Feel free to open if it still doesn't work.

@mpowaga mpowaga closed this as completed May 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants