public/javascripts/inputex/js/fields/MapField.js
function() {
		if(inputEx.MapFieldsNumber == undefined) { inputEx.MapFieldsNumber = -1; }
		inputEx.MapFieldsNumber += 1;

		this.apid = this.virtualearth;
		if (this.options.api == "virtualearth") {
			this.apid = this.virtualearth;
		} else if (this.options.api == "google") {
			this.apid = this.google;
		} else if (this.options.api == "yahoo") {
			this.apid = this.yahoo;
		} else {
			alert("unknown API '" + this.options.api + "': using 'virtualearth'");
		}

		var id = "inputEx-MapField-"+inputEx.MapFieldsNumber;
		var idWrapper = "inputEx-MapFieldWrapper-"+inputEx.MapFieldsNumber;
		var idLat = "inputEx-MapFieldLat-"+inputEx.MapFieldsNumber;
		var idLon = "inputEx-MapFieldLon-"+inputEx.MapFieldsNumber;
		var idUZoom = "inputEx-MapFieldUZoom-"+inputEx.MapFieldsNumber;
		var idNZoom = "inputEx-MapFieldNZoom-"+inputEx.MapFieldsNumber;

		// the wrapper is needed for Virtual Earth
		this.elWrapper = inputEx.cn('div',
			{ id: idWrapper, style: "width: " + this.options.width + "; height: " + this.options.height },
			null,
			null
		);
		this.fieldContainer.appendChild(this.elWrapper);

		this.el = inputEx.cn('div',
			{ id: id, style: "position: relative; width: " + this.options.width + "; height: " + this.options.height },
			null,
			this.options.loading
		);
		this.elWrapper.appendChild(this.el);

		this.elLat = inputEx.cn('input', { id: idLat, type: "hidden", value: this.options.lat });
		this.fieldContainer.appendChild(this.elLat);

		this.elLon = inputEx.cn('input', { id: idLon, type: "hidden", value: this.options.lon });
		this.fieldContainer.appendChild(this.elLon);

		this.elUZoom = inputEx.cn('input', { id: idUZoom, type: "hidden", value: this.options.uzoom });
		this.fieldContainer.appendChild(this.elUZoom);

		this.elNZoom = inputEx.cn('input', { id: idNZoom, type: "hidden", value: this.options.uzoom });
		this.fieldContainer.appendChild(this.elNZoom);

		if (this.apid.preload(this)) {
			return;
		} else {
			this.wait_create();
		}
	}
function() {
		if(inputEx.MapFieldsNumber == undefined) { inputEx.MapFieldsNumber = -1; }
		inputEx.MapFieldsNumber += 1;

		this.apid = this.virtualearth;
		if (this.options.api == "virtualearth") {
			this.apid = this.virtualearth;
		} else if (this.options.api == "google") {
			this.apid = this.google;
		} else if (this.options.api == "yahoo") {
			this.apid = this.yahoo;
		} else {
			alert("unknown API '" + this.options.api + "': using 'virtualearth'");
		}

		var id = "inputEx-MapField-"+inputEx.MapFieldsNumber;
		var idWrapper = "inputEx-MapFieldWrapper-"+inputEx.MapFieldsNumber;
		var idLat = "inputEx-MapFieldLat-"+inputEx.MapFieldsNumber;
		var idLon = "inputEx-MapFieldLon-"+inputEx.MapFieldsNumber;
		var idUZoom = "inputEx-MapFieldUZoom-"+inputEx.MapFieldsNumber;
		var idNZoom = "inputEx-MapFieldNZoom-"+inputEx.MapFieldsNumber;

		// the wrapper is needed for Virtual Earth
		this.elWrapper = inputEx.cn('div',
			{ id: idWrapper, style: "width: " + this.options.width + "; height: " + this.options.height },
			null,
			null
		);
		this.fieldContainer.appendChild(this.elWrapper);

		this.el = inputEx.cn('div',
			{ id: id, style: "position: relative; width: " + this.options.width + "; height: " + this.options.height },
			null,
			this.options.loading
		);
		this.elWrapper.appendChild(this.el);

		this.elLat = inputEx.cn('input', { id: idLat, type: "hidden", value: this.options.lat });
		this.fieldContainer.appendChild(this.elLat);

		this.elLon = inputEx.cn('input', { id: idLon, type: "hidden", value: this.options.lon });
		this.fieldContainer.appendChild(this.elLon);

		this.elUZoom = inputEx.cn('input', { id: idUZoom, type: "hidden", value: this.options.uzoom });
		this.fieldContainer.appendChild(this.elUZoom);

		this.elNZoom = inputEx.cn('input', { id: idNZoom, type: "hidden", value: this.options.uzoom });
		this.fieldContainer.appendChild(this.elNZoom);

		if (this.apid.preload(this)) {
			return;
		} else {
			this.wait_create();
		}
	}
function ( ) { if ( inputEx . MapFieldsNumber == undefined ) { inputEx . MapFieldsNumber = - 1 ; } inputEx . MapFieldsNumber += 1 ; this . apid = this . virtualearth ; if ( this . options . api == "virtualearth" ) { this . apid = this . virtualearth ; } else if ( this . options . api == "google" ) { this . apid = this . google ; } else if ( this . options . api == "yahoo" ) { this . apid = this . yahoo ; } else { alert ( "unknown API '" + this . options . api + "': using 'virtualearth'" ) ; } var id = "inputEx-MapField-" + inputEx . MapFieldsNumber ; var idWrapper = "inputEx-MapFieldWrapper-" + inputEx . MapFieldsNumber ; var idLat = "inputEx-MapFieldLat-" + inputEx . MapFieldsNumber ; var idLon = "inputEx-MapFieldLon-" + inputEx . MapFieldsNumber ; var idUZoom = "inputEx-MapFieldUZoom-" + inputEx . MapFieldsNumber ; var idNZoom = "inputEx-MapFieldNZoom-" + inputEx . MapFieldsNumber ; // the wrapper is needed for Virtual Earth this . elWrapper = inputEx . cn ( 'div' , { id : idWrapper , style : "width: " + this . options . width + "; height: " + this . options . height } , null , null ) ; this . fieldContainer . appendChild ( this . elWrapper ) ; this . el = inputEx . cn ( 'div' , { id : id , style : "position: relative; width: " + this . options . width + "; height: " + this . options . height } , null , this . options . loading ) ; this . elWrapper . appendChild ( this . el ) ; this . elLat = inputEx . cn ( 'input' , { id : idLat , type : "hidden" , value : this . options . lat } ) ; this . fieldContainer . appendChild ( this . elLat ) ; this . elLon = inputEx . cn ( 'input' , { id : idLon , type : "hidden" , value : this . options . lon } ) ; this . fieldContainer . appendChild ( this . elLon ) ; this . elUZoom = inputEx . cn ( 'input' , { id : idUZoom , type : "hidden" , value : this . options . uzoom } ) ; this . fieldContainer . appendChild ( this . elUZoom ) ; this . elNZoom = inputEx . cn ( 'input' , { id : idNZoom , type : "hidden" , value : this . options . uzoom } ) ; this . fieldContainer . appendChild ( this . elNZoom ) ; if ( this . apid . preload ( this ) ) { return ; } else { this . wait_create ( ) ; } }
Render the field using the appropriate mapping function
Render the field using the appropriate mapping function