I have a series of maps in a Joomla-based website (there is a map per event and my client needs to upload maps all the time), and I need to remove the “Map Satellite Terrain Earth” buttons.
I can imagine how to do it for one map (using APIv3 and JS, writing a code that includes coordinates and hides controls), but I need to make a JS file that can be applied for all the maps in the page.
This is for example one of my maps:
<iframe src="http://maps.google.co.uk/maps?f=q&source=s_q&hl=en&geocode=&q=Jurys+Inn+Birmingham,+245+Broad+Street,+Birmingham&aq=0&sll=52.476821,-1.911922&sspn=0.010573,0.023046&vpsrc=0&g=245+Broad+Street,+Birmingham&ie=UTF8&hq=Jurys+Inn+Birmingham,+245+Broad+Street,+Birmingham&ll=52.476756,-1.911515&spn=0.020519,0.046091&t=m&z=14&iwloc=A&cid=6378983717094669639&output=embed" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" width="218" height="180"></iframe>
There are a lot like this. Any ideas on how to write the JS file that should apply to all of them? It´s a joomla site, so I need to put the JS code in a separate file.
Thanks!
As I said in the answer above, I wanted to create styles to apply to all my maps. I didn’t find a proper solution yet, but I’ve been reading this documentation: http://code.google.com/apis/maps/documentation/javascript/styling.html and the map styling could be a partial help.