Hi,
I have added the following piece of code in the "code snippet" dropdownlist to be inserted:
-
<script src='http://maps.google.com/maps?file=api&v=2.x&key=xxx'
-
type='text/javascript'></script><script
-
type='text/javascript'>
-
var map = null;
-
var geocoder = null;
-
function initialize() {
-
if (GBrowserIsCompatible()) {
-
map
-
= new GMap2(document.getElementById('map_canvas26'));map.addControl(new
-
GLargeMapControl());geocoder = new GClientGeocoder();
-
showAddress('address');
-
}
-
}
-
function showAddress(address) {
-
if (geocoder) {
-
geocoder.getLatLng(
-
address,
-
function(point) {
-
if (!point) {
-
alert(address + ' not found');
-
} else {
-
map.setCenter(point, 13);var marker = new GMarker(point);
-
map.addOverlay(marker);marker.openInfoWindowHtml(address);}
-
}
-
);
-
}
-
}
-
window.onload = initialize;
-
window.onunload = GUnload;
-
</script><div style="background-color: #989898; width: 500px; height: 300px;" id="map_canvas26"></div>
In IE8 this works ok, but in Firefox it inserts everything except for the last div...