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

Styling place name separately from country and city #73

Closed
oyeanuj opened this issue Jan 9, 2016 · 1 comment
Closed

Styling place name separately from country and city #73

oyeanuj opened this issue Jan 9, 2016 · 1 comment

Comments

@oyeanuj
Copy link
Contributor

oyeanuj commented Jan 9, 2016

Hi @ro-ka! This library looks great, thank you! For my use-case, I need to style the country (and ideally, the city as well) separately from the place name.

In your demo, you have only one element in the li.geosuggest-item. I was wondering if it is possible today, or possible to add, the ability to distinguish country from the place name and render them with different css classes?

@ro-ka
Copy link
Contributor

ro-ka commented Jan 15, 2016

Thanks, oyeanuj!

You can style the Google Maps suggests via the function getSuggestLabel. For the fixtures, pass in the styled label already on creation.

@ro-ka ro-ka closed this as completed Jan 15, 2016
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

2 participants