Hello,
I have a question about the use of the Google Maps API application on
a Homepage.
The map shows perfectly, the adress is correct and I even managed to
modify the content of the InfoWindow. However I am struggling to (1.)
change the size of the InfoWindow and (2.) the style/color of the
buttons. I have posted the short script I am using right below my
request.
I am sure, it is an easy change I am just too ignorant to be able to
achieve.
Thanks for your help!
DBoy
<script type="text/javascript">
//<![CDATA[
var address ="[LAT],[LNG]";
var map = null;
var geocoder = null;
function load() {
geocoder = new GClientGeocoder();
if (GBrowserIsCompatible()) {
map = new GMap2(document.getElementById("map"));
if (geocoder) {
geocoder.getLatLng(
address,
function(point) {
if (!point) {
alert(address + " not found");
}
else {
map.enableScrollWheelZoom();
map.setCenter(point, 13);
map.addControl(new GLargeMapControl());
map.addControl(new GMapTypeControl());
var marker = new GMarker(point);
map.addOverlay(marker);
marker.openInfoWindowHtml("<p style='color:#000'>[Location]</
p>");
}
}
);
}
}
}
//]]>
</script>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-maps-api?hl=en
-~----------~----~----~----~------~----~------~--~---