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

More control over options passed to Map constructor. #20

Merged
merged 1 commit into from Mar 27, 2013
Merged

More control over options passed to Map constructor. #20

merged 1 commit into from Mar 27, 2013

Conversation

tatey
Copy link
Contributor

@tatey tatey commented Mar 27, 2013

Hey,

Thanks for creating this library.

I wanted to be able to disable a few of the map controls. This meant that I needed to have more control over the options passed to the Map constructor.

<div class="google-map" center="center" zoom="15" options='{"streetViewControl": false, "mapTypeControl":false, "zoomControl":false}'>

I'm happy to refactor to suit your vision of the project.

Cheers,
Tate

@nlaplante
Copy link
Contributor

Hi, thank you for your work. It's indeed a nice way to pass options easily without adding too much attributes. We could use this technique to expose more options, like map type.

@ghost ghost assigned nlaplante Mar 27, 2013
nlaplante added a commit that referenced this pull request Mar 27, 2013
Merged. Will have to do additional work to make sure that options do not overwrite the center and zoom which comes from the parent scope. Some refactoring will be needed.
@nlaplante nlaplante merged commit 9ae3276 into angular-ui:master Mar 27, 2013
@abhillman
Copy link

This is great work. But I'm wondering about being able to change certain options on the fly. For example, it could be great to be able to "lock" the map. One easy way to do that would be to set a value for minZoom and maxZoom—but I can't seem to see a good way of doing this after options are passed. Thoughts?

@nmccready
Copy link
Contributor

On r1-dev I believe some of the options are bindable / watched. So if there are changes things should update immediately.

@Crysalist
Copy link

Suggestion: maybe just add the format to the API documentation. With an example or something like that.

P.S. Great work!

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.

5 participants