Thanks to both, I've taken a look at the solutions at:
http://groups.google.com/group/Google-Maps-API/browse_frm/thread/8879...
and I have viewed the source for on the site of the related site:
> http://www.piazzadellarte.be/wtse
Please can you tell me where I insert the script:
GSize should work. How about changing this:
var map = new GMap2(document.getElementById(map));
into
var mapElem = document.getElementById(map);
var mapWidth = mapElem.style.width;
var mapHeight = mapElem.style.height;
var map = new GMap2(mapElem,{size:new GSize(mapWidth,mapHeight)});
and removing checkResize()
Do I insert it in the linked js page - my code for the map in the head
section of the page, points to
<script type="text/javascript" src="google_javascript/wagt_map_4.js">/
*wagt*/</script>
which contains the following:function wagt_map_4() {
if(GBrowserIsCompatible()) {
if(!document.getElementById('wagt_map_4')) return false;
var map = new GMap2(document.getElementById('wagt_map_4'));
map.enableContinuousZoom();
map.enableDoubleClickZoom();
map.addControl(new GSmallMapControl());
map.addControl(new GMapTypeControl());
var geocoder = new GClientGeocoder();
var icon = new GIcon();
var markerStyle = 'Google Traditional (flat)';
var markerColor = 'Nautica';
icon.image = 'http://google.webassist.com/google/markers/
traditionalflat/nautica.png';
icon.shadow = 'http://google.webassist.com/google/markers/
traditionalflat/shadow.png';
icon.iconSize = new GSize(34,35);
icon.shadowSize = new GSize(34,35);
icon.iconAnchor = new GPoint(9,23);
icon.infoWindowAnchor = new GPoint(19,0);
icon.printImage = 'http://google.webassist.com/google/markers/
traditionalflat/nautica.gif';
icon.mozPrintImage = 'http://google.webassist.com/google/markers/
traditionalflat/nautica_mozprint.png';
icon.printShadow = 'http://google.webassist.com/google/markers/
traditionalflat/shadow.gif';
icon.transparent = 'http://google.webassist.com/google/markers/
traditionalflat/nautica_transparent.png';
var address_0 = {
street: '13 Carrara Street',
city: 'Benowa',
state: 'Queensland',
zip: '4217',
country: 'Australia',
infowindow: 'default',
infowindowtext: '<span style="font: 12px Verdana, Arial,
Helvetica, sans-serif; color: #000;"><strong>Address:</strong><br />13
Carrara Street<br />Benowa, Queensland 4217 Australia</span>',
full: '13 Carrara Street, Benowa, Queensland, 4217, Australia',
isdefault: true
};
geocoder.getLatLng (
address_0.full,
function(point) {
if(point) {
map.setCenter(point, 13);
var marker = new GMarker(point, icon);
GEvent.addListener(marker, 'click', function() {
marker.openInfoWindowHtml(address_0.infowindowtext);
});
map.addOverlay(marker);
marker.openInfoWindowHtml(address_0.infowindowtext);
}
else {
map.setCenter(new GLatLng(37.4419, -122.1419), 13);
}
}
);
}
}
Or do I insert it into the head or body of the main web page?
BTW my spry tagged panel content div is 568w x 315h.
Thank you!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---