Welcome Guest, you are in: Login

FDOT Wiki

RSS RSS

GisFramework



Search the wiki
»

FDOT.Map.create()

RSS
Modified on Thursday, 30 October 2014 11:02 AM by 156.75.202.28 Categorized as Javascript
The create method created the map object on the page and configures it for use. The onReady callback is executed once the map has completed it's initialization.

Parameters

NameTypeRequiredDescription
idstringYesA unique name for the map instance
containerSelectorstringYesThe CSS selector to identify the html element to contain the map
appIdStringNoThe id for the application being embedded. If no value is specified teh default application will be loaded.
sourceStringNoThe source for the Framework xap file.
embeddedBooleanNoThis parameter determines whether to load the framework in embedded or full mode. If no value is provided it defaults to false.
heightStringNoThis parameter sets the height of the map. If no value is provided it defaults to '100%'. If using 100% make sure there is an explicit height set on the container element.
widthStringNoThis parameter sets the width of the map. If no value is provided it defaults to '100%'.
backgroundStringNoThis background color for the silverlight control. Visible during the initial load. If no value is provided it defaults to 'white'.
showNavigationBooleanNoThis parameter toggles whether or not the navigation controls are displayed in an embedded map. Defaults to false.
showScalebarBooleanNoThis parameter toggles whether or not the scaling controls are displayed in an embedded map. Defaults to false.
onReadyFunctionNoThis function will be called once the initialization of the map is complete.



Example


FDOT.Map.create({
	id: 'map',
	containerSelector: '#mapContainer',
	embedded: true,
	appId: 'gev',
	height: '100%',
	width: '100%',
	background: 'white',
	source: 'http://tlbstws3.dot.state.fl.us/GISFramework/ClientBin/FDOT.GIS.Client.xap',	
	onReady: function() {
		console.log('map initialization complete');
	}
});

See Also

Any Questions or Comments? Email
Some of the icons created by FamFamFam.