function findBounds(points) {
var bounds = new GLatLngBounds();
for(var i=0;i<points.length;i++){bounds.extend(points[i])}
return bounds;
};
6 sie 2009
function findBounds(points) {
var bounds = new GLatLngBounds();
for(var i=0;i<points.length;i++){bounds.extend(points[i])}
return bounds;
};
var div = document.createElement('div');
div.style.width = '1px';
div.style.height = '1px';
div.style.background = 'gray';
map.getContainer().appendChild(div);
function handleErrors(){
alert("Status " + directions.getStatus().code);
};
GEvent.addListener(directions, "error", handleErrors);
GEvent.addListener(map, "mousemove", function(point) {
if(point!=undefined) {
map.addOverlay(new GMarker(point));
}
});
GEvent.addListener(map, "MaskClick", function(point) {
alert('test');
});
function testMaskClick() {
GEvent.trigger(map, "MaskClick", 1);
}
<img id="maska_img" src="obrazek.jpg" onClick="testMaskClick()">