
//////  0, 1 , 2 , 3 , 4
// 0 no access (No)
// 1 receive coord on click (Min)
// 2 receive coord if already a label (Std)
// 3 receive coord even if not already a label (Max)
// 4 may drag the marker (Drag)

// 0
function MyMapNoLatLng(szMapNodeId , szError , szWarning)
{
	MyMapNoLatLng.baseConstructor.call(this, szMapNodeId , szError , szWarning);
}
ooTools.extend(MyMapNoLatLng, MyMap);


/***********************************************
the behaviour of _addMarker depends upon (0 to 4)
// 0 no access
// 1 receive coord on click
// 2 receive coord if already a label
// 3 receive coord even if not already a label
// 4 may drag the marker
************************************************/


// 0.
MyMapNoLatLng.prototype._addMarker = function()
{
	// not draggable except in case 4
	var objMyMarker = new MyMarker(this.objGLatLng, {draggable: false});
	objMyMarker.clearInfoArray() ;
	this.objMyMarker = objMyMarker ;
	var curMap = this.objGMap ;
	if(objMyMarker)
	{
		GEvent.addListener(objMyMarker, "click", function() {
			var szMarkerLabel = objMyMarker.getMarkerLabel() ;
			if(szMarkerLabel) objMyMarker.openInfoWindowHtml(szMarkerLabel);
		});

		this.objGMap.addOverlay(objMyMarker);
		/*
		this.szPrettyAddress =  arrPlacemarks[0].address ;
		this.a2CountryNameCode =  arrPlacemarks[0].AddressDetails.Country.CountryNameCode ;
		*/
		if(this.uAccuracy)
		{
			this.szMarkerLabel += ("<br /><i>["+this.uAccuracy+": "+this.szAccuracy+"]</i>") ;

		}
		if(this.szMarkerLabel)
		{
			/*
			var szMarkerLabel = "<table width='" + MyMap.InfoTableWidth + "px' border='0'><tr><td><small>"
			+ this.szMarkerLabel + "</small></td></tr></table>" ;
			*/
			var szMarkerLabel = "<fieldset style='width:" + MyMap.InfoTableWidth + "px' ><small>"
			+ this.szMarkerLabel + "</small></fieldset>" ;
			objMyMarker.openInfoWindowHtml(szMarkerLabel);
			objMyMarker.setMarkerLabel ( szMarkerLabel ) ;
		}
	}
}

// EoF