Google-Maps-for-Craft icon indicating copy to clipboard operation
Google-Maps-for-Craft copied to clipboard

Setting up a simple one marker map but with zoom setting

Open caseydierking opened this issue 10 years ago • 1 comments

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!

caseydierking avatar Dec 12 '14 15:12 caseydierking

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

objectivehtml avatar Dec 18 '14 06:12 objectivehtml