Esempio n. 1
0
				"domready" : function() { 
					var info = new Element(\'div\', {
					    \'id\': \'map_info\',
					    \'html\': \'<div class="tip-top"><div class="tip"><div id="map_tip" class="tip-text"></div></div><div class="tip-bottom"></div></div>\',
					    \'styles\': {
					        \'display\': \'none\',
					        \'position\': \'absolute\',
					        \'z-index\': 9,
					        \'top:\': \'0px\',
					        \'left:\': \'0px\'
					    }
					});	
					info.inject(document.body, \'top\');
					$("map").addEvent("mousemove", function(e) {
						$("map_info").style.top = (e.page.y + 20) + "px"; 
						$("map_info").style.left = (e.page.x + 10) + "px"; 
					});
				},
				"load" : function() { 
					' . $api->getOnLoadCode() . ' 
					new Asset.images([\'' . implode('\',\'', @$bilder) . '\']);
				} 
			});		
		</script>';
    echo $api->getBodyCode();
    $content = ob_get_contents();
    ob_end_clean();
    main_content(MEMBER_MAP, $content, '', 1);
} else {
    echo table(ACCESS_DENIED, NO_ACCESS_RIGHTS);
}
Esempio n. 2
0
$api->setHeight(600);
$api->setZoomFactor(5);
$api->addControl(GSmallMapControl);
// add a point.
$api->addGeoPoint(50, 10, "Somewhere in Germany", false);
// center to a point
$api->setCenter(51, 11);
// set to hybrid mode
$api->setMapType(VTHybrid);
?>
<head>

<?php 
echo $api->getHeadCode();
?>

</head>

<body onLoad="<?php 
echo $api->getOnLoadCode();
?>
">

<h1> Adding Geopoints to the map and view map in hybrid mode</h1>

<?php 
echo $api->getBodyCode();
?>

</body>
</html>