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

Setting up a simple one marker map but with zoom setting #23

Open
caseydierking opened this issue Dec 12, 2014 · 1 comment
Open

Setting up a simple one marker map but with zoom setting #23

caseydierking opened this issue Dec 12, 2014 · 1 comment

Comments

@caseydierking
Copy link

Hey there! I just found this plugin, and so far it seems awesome. However, I'm having a bit of trouble with something. I'm trying to add in a simple marker map but I can't figure out to get it to zoom out. Here is my code. Is this a bug or am I using it incorrectly?

Also, is there a way I can grab the elements inside the map and style them? Say like changing the color of what is in "content:"

Thanks!

@objectivehtml
Copy link
Owner

Sorry for the delay on this. Been super busy the past week working on some project and didn't this see
this request until now. The zoom is set asynchronously by default. So you need to prevent that from occurring in order to set your own zoom.. See the fitBounds property. Set it to true either use the marker method or with data method using the field type data.

https://github.com/objectivehtml/Google-Maps-for-Craft/wiki/Template-Reference#marker

Let me know if this helps

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