A slightly more complex example with a map marker which is both draggable and which has an InfoBubble attached to it which will appear when the marker is clicked.


JavaScript Demo Source: mxn-marker.js

var	mapstraction;

function initialize(api_provider_id) {
	var	llp = new mxn.LatLonPoint(37.75, -122.44);
	mapstraction = new mxn.Mapstraction('map', api_provider_id);
	marker = new mxn.Marker(llp);
	marker.setDraggable(true);
	marker.setInfoBubble("Test InfoBubble");
	mapstraction.addMarker(marker);
	mapstraction.setCenterAndZoom(llp, 12);
}