Skip to content
This repository was archived by the owner on Nov 30, 2018. It is now read-only.

Fixed bounds, center and zoom handling #1748

Merged
merged 2 commits into from
Mar 13, 2016

Conversation

jbertouch
Copy link
Contributor

Removed the requirement for bounds, center and zoom attributes on the ui-gmap-google-map directive. Now only a center or bounds attribute is required, and the zoom attribute is optional (it defaults to 10). If only the bounds attribute is specified, the center lat/long is derived. Closes #1360.

Removed the requirement for bounds, center and zoom attributes on the
ui-gmap-google-map directive. Now only the center or bounds attribute
is required, and the zoom is optional (it defaults to 10). If only the
bounds attribute is specified, the center lat/long is derived. Closes
angular-ui#1360.
Just revisited this branch - these validation check are too zealous.
They are preventing the map directive from loading when the bounds or
center properties are not populated until the Google maps API is ready
(eg. with the supplied maps example).
@nmccready
Copy link
Contributor

I'll try to look at this soon. Mainly want to pull it down and run existing examples.

@jbertouch
Copy link
Contributor Author

Sounds good, let me know if I can help out. Thank you for angular-google-maps, it's awesome.

@nmccready
Copy link
Contributor

LGTM

nmccready added a commit that referenced this pull request Mar 13, 2016
Fixed bounds, center and zoom handling
@nmccready nmccready merged commit cbd17a3 into angular-ui:master Mar 13, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants