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

Add center and width css option(s) -- feature request #13

Closed
majesticpdx opened this issue Jan 13, 2016 · 2 comments
Closed

Add center and width css option(s) -- feature request #13

majesticpdx opened this issue Jan 13, 2016 · 2 comments

Comments

@majesticpdx
Copy link

Hello,

I already started a feature request on the GL JS side and was referred over here. I'm hoping that it would be possible to add both a center and width css property to the geocoder plugin.

A good example of this can be found here: https://www.mapbox.com/bites/00121/

This would word better for longer strings and is easier for the end user as well.

I did notice that the css appears to be on the GL JS style sheet vs the geocoder style sheet.

Thanks again.

@tristen
Copy link
Member

tristen commented Jan 14, 2016

Hi @majesticpdx

There's no plans to add a center option to the geocoder control but it's easy enough to get this desired effect by specifying a container in the geocoder options and using a dash of CSS. Here's an example: http://bl.ocks.org/tristen/290112a562f205d141c0

@tristen tristen closed this as completed Jan 14, 2016
@majesticpdx
Copy link
Author

Thank you @tristen, your help is appreciated.

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