huafu / ember-google-map

An Ember addon to include a google-map Ember friendly component in your apps.
http://huafu.github.io/#/ember?name=ember-google-map
MIT License
87 stars 34 forks source link

Google Styled Maps Support #34

Closed gopkumargopi closed 9 years ago

gopkumargopi commented 9 years ago

Does the ember-google-map add-on have support for Google Styled Maps? Google's API that controls the map styles. https://developers.google.com/maps/documentation/javascript/styling

huafu commented 9 years ago

I believe (but didn't test) that you can define this style array object in a property of your view (I think it's better to leave this in the view than in the controller), let's say mapStyles. Then use this property when calling the component from your template:

{{google-map ... gopt_styles=view.mapStyles}}

(refer to the wiki for documentation on gopt related things)

Lemme know if this does not work (and re-open the issue then).

huafu commented 9 years ago

FYI I added a wiki section for the styling.