Copy link to clipboard
Copied
Hi.. is there a way to change the default setting in the Google map so it appears at suburb level rather than as it currently does (almost state level). Thanks DC
Come here good people, gather around, fresh community solution coming up!
Eat it while it's hot!
<script>
CMS.Maps.map.setZoom(1);
</script>
Add it after the webappsmap module tag.
Adjust zoom level from 0-10 by changing the number.
Copy link to clipboard
Copied
Hey buzzvick,
A link to the project would help know what code your working with.
If you are placing an iframe on the page you should be able to change the zoom variable within the source: "http://maps.google.com/?ll=48.064372,16.348977&z=10" and change z=10 to any other number, from 20 to 0
Copy link to clipboard
Copied
Thanks Chad,
Sorry - the page is http://www.themanhattanclub.com.au/Location.htm
I am using the BC module for the maps, I think is a little different to the method you described above..... DC
Copy link to clipboard
Copied
buzzvick,
I'll have to set up and test this one, we don't normally use that module on its own. But I'm pretty sure your solution will look something like this:
http://jsfiddle.net/chaddidthis/ymM2s/
The Id in the code is the one from your site (webapp_map_12738) so you should be good. Let me know if this works, I'll reply back when I get a test web app up, or if someone else hasn't brought a better solution.
Copy link to clipboard
Copied
Hi Chad
Thanks for that.
I tried inserting the javascript directly on the the page and the template, but no go I'm afraid......
DC
Copy link to clipboard
Copied
The zoom level can't be adjusted within the module, at this stage. Hopefully someone from the community will have a workaround.
If no one has an answer you may have to resort to implementing the script manually. You already have lat and long values, so you don't have to do any geocoding. You can simply plug in the tags where the values for lat and long are in this hello world script from google https://developers.google.com/maps/documentation/javascript/tutorial and adjust the zoom level. That should work.
Copy link to clipboard
Copied
Thanks Mario!
We normally use a method like your reference link, so I wasn't sure. Good to know!
Copy link to clipboard
Copied
Come here good people, gather around, fresh community solution coming up!
Eat it while it's hot!
<script>
CMS.Maps.map.setZoom(1);
</script>
Add it after the webappsmap module tag.
Adjust zoom level from 0-10 by changing the number.
Copy link to clipboard
Copied
LEGEND!!!
Copy link to clipboard
Copied
By the way, I've created a doc on it here http://forums.adobe.com/docs/DOC-2371
Copy link to clipboard
Copied
Nice one. Thanks so much. That helps a lot
Copy link to clipboard
Copied
This code doesn't change anything. Any other way make the google maps zoom to look normal... This module is sort of useless the way it works right now. I might as well build my own google maps integration.
Copy link to clipboard
Copied
Simpleflame sell one and anumber of us like myself already just use google API to do our own and own controls, overlays etc. What the google API is there for