as mentioned before:
this code is unter event "load" -- "run custom javascript" --
and there is a own script implementing this function
(i deleted some comments -i hope i didn't destroy anything
)
function called via button -- works fine
function called on "load" event -- doesn't show anything
Code: Select all
function updateMap()
{
var map = Tiggr("karte").gmap;
google.maps.event.addListenerOnce(map, 'Load', function(){
//@Max Katz: IS NEVER SHOWN !
alert("map fully loaded");
});
var myLatlng = new google.maps.LatLng(36.11179,-115.174724);
var image = new google.maps.MarkerImage('[url=http://dl.dropbox.com/u/13141539/lift-3d-neu-klein.png']http://dl.dropbox.com/u/13141539/lift...[/url],
new google.maps.Size(50, 50),
new google.maps.Point(0,0),
new google.maps.Point(25, 25));
var shadow = new google.maps.MarkerImage('[url=http://dl.dropbox.com/u/13141539/lift-3d-neu-klein_schatten.png']http://dl.dropbox.com/u/13141539/lift...[/url],
new google.maps.Size(50, 100),
new google.maps.Point(0,0),
new google.maps.Point(25, 25));
var shape = {
coord: [1, 1, 1, 50, 50, 50, 50 , 1],
type: 'poly'
};
//add marker
var marker = new google.maps.Marker({
icon: image,
shape: shape,
shadow: shadow,
position: myLatlng,
title:"Testmarker"
});
//clicklistener
google.maps.event.addListener(marker, 'click', function()
{
localStorage.setItem('1', 36.11179,-115.174724);
});
marker.setMap(map);
}
thx!