TourMap.CreateBoard

Modified on 2013/01/27 11:57 by Administrator — Categorized as: mMap

Example

<%=TourMap.CreateBoard(new TourMapBoardParameters {
	BoardId = new Guid("1D84F8EC-736D-4AF9-95B0-2DEB2E1B098F"),
	ShowDivisionList = true,
	ShowListMap = true,
	DivisionList = new[] {
		new DivisionInfo {
			Id = new Guid("FC6FACAF-C4C8-4221-8B1F-15F308133C04"), Name = "문경읍",
			Latitude = 36.737270000059745m, Longitude = 128.10716024105415m, Level = 7 },
		new DivisionInfo {
			Id = new Guid("1D02D5DA-1A6F-42AE-B874-BA18B05AE1F9"), Name = "가은읍",
			Latitude = 36.64274903950253m, Longitude = 128.062174626815m, Level = 7 },
		new DivisionInfo {
			Id = new Guid("8F20A9AA-2127-4DB1-AD69-0BC391575ECE"), Name = "영순면",
			Latitude = 36.58201886865933m, Longitude = 128.23591934239505m, Level = 7 },
		new DivisionInfo {
			Id = new Guid("8072BC1E-552D-4518-8031-A92C9E91D489"), Name = "산양면",
			Latitude = 36.61172116228953m, Longitude = 128.2587467301545m, Level = 7 },
		new DivisionInfo {
			Id = new Guid("27D9BB35-FFE6-4F50-B09A-916D804E39F0"), Name = "호계면",
			Latitude = 36.6310961545739m, Longitude = 128.2058765358384m, Level = 7 },
		new DivisionInfo {
			Id = new Guid("6817E937-3C15-429F-96BD-F76B8E6138DB"), Name = "산북면",
			Latitude = 36.656075673410506m, Longitude = 128.25940049312192m, Level = 7 },
		new DivisionInfo {
			Id = new Guid("7974C32F-B888-4214-8CB1-B61ECCD8DBC3"), Name = "동로면",
			Latitude = 36.773275679284914m, Longitude = 128.31496730949092m, Level = 7 },
		new DivisionInfo {
			Id = new Guid("AD8DBF1B-C871-4511-9683-2CBD367BF082"), Name = "마성면",
			Latitude = 36.69258494861453m, Longitude = 128.11672882945817m, Level = 7 },
		new DivisionInfo {
			Id = new Guid("63CA4C6C-FC33-436A-B6EC-E126386F9477"), Name = "농암면",
			Latitude = 36.60072783382964m, Longitude = 128.00363940432246m, Level = 7 },
		new DivisionInfo {
			Id = new Guid("4150F6EA-6C0B-4903-8FF1-58802FCB8CA3"), Name = "점촌1동",
			Latitude = 36.59860530412107m, Longitude = 128.1978079121821m, Level = 5 },
		new DivisionInfo {
			Id = new Guid("8DEA6154-06ED-469F-B050-07B92B2E6DA9"), Name = "점촌2동",
			Latitude = 36.59017027640523m, Longitude = 128.19646197084018m, Level = 5 },
		new DivisionInfo {
			Id = new Guid("7B63DD44-1A59-43B2-9F32-AD257DCFC9A8"), Name = "점촌3동",
			Latitude = 36.602936823122484m, Longitude = 128.20648019617994m, Level = 5 },
		new DivisionInfo {
			Id = new Guid("AD29F41B-EC20-4FED-B97E-E1DB461BA7E7"), Name = "점촌4동",
			Latitude = 36.605564354744686m, Longitude = 128.18235805861121m, Level = 5 },
		new DivisionInfo {
			Id = new Guid("589B7BFB-62F0-4B3A-8B16-681E73967EA9"), Name = "점촌5동",
			Latitude = 36.59112615151806m, Longitude = 128.187729584247m, Level = 5 }
	}
})%>

Default is define in TourMap.BoardParameters.cs

Example with Category

<asp:Content ContentPlaceHolderId="css" runat="server">
<link rel="stylesheet" type="text/css" href="/js/libs/jquery/plugins/fancybox/jquery.fancybox-1.3.4.css" media="screen" />
</asp:Content>

<asp:Content ContentPlaceHolderId="contentMain" runat="server">

<%:TourMap.CreateBoard(new TourMapBoardParameters {
	BoardId = new Guid("F3391FD4-3A4E-47C7-8DEE-1816AD365F34"),
	ShowDivisionList = false,
	ShowListMap = true,
	DivisionList = new[] {
		new DivisionInfo {
			Id = new Guid("FC6FACAF-C4C8-4221-8B1F-15F308133C04"), Name = "봉화읍",
			Latitude = 36.890643632102176m, Longitude = 128.7366601406581m, Level = 7 },
		new DivisionInfo {
			Id = new Guid("1D02D5DA-1A6F-42AE-B874-BA18B05AE1F9"), Name = "물야면",
			Latitude = 36.97534168384046m, Longitude = 128.73549303707506m, Level = 7 },
		new DivisionInfo {
			Id = new Guid("8F20A9AA-2127-4DB1-AD69-0BC391575ECE"), Name = "봉성면",
			Latitude = 36.88616344233923m, Longitude = 128.8181098058443m, Level = 7 },
		new DivisionInfo {
			Id = new Guid("8072BC1E-552D-4518-8031-A92C9E91D489"), Name = "법전면",
			Latitude = 36.91065112178842m, Longitude = 128.87653987987875m, Level = 7 },
		new DivisionInfo {
			Id = new Guid("27D9BB35-FFE6-4F50-B09A-916D804E39F0"), Name = "춘양면",
			Latitude = 36.934890140439485m, Longitude = 128.91493389926177m, Level = 7 },
		new DivisionInfo {
			Id = new Guid("6817E937-3C15-429F-96BD-F76B8E6138DB"), Name = "소천면",
			Latitude = 36.937606949199704m, Longitude = 129.00319598214332m, Level = 7 },
		new DivisionInfo {
			Id = new Guid("7974C32F-B888-4214-8CB1-B61ECCD8DBC3"), Name = "석포면",
			Latitude = 37.04788845386833m, Longitude = 129.06576918235825m, Level = 7 },
		new DivisionInfo {
			Id = new Guid("AD8DBF1B-C871-4511-9683-2CBD367BF082"), Name = "재산면",
			Latitude = 36.816699621088084m, Longitude = 128.9615142436835m, Level = 7 },
		new DivisionInfo {
			Id = new Guid("63CA4C6C-FC33-436A-B6EC-E126386F9477"), Name = "명호면",
			Latitude = 36.858955498937085m, Longitude = 128.9004705611767m, Level = 7 },
		new DivisionInfo {
			Id = new Guid("0C2B5735-2114-4285-8DA6-7E8BAB1392F9"), Name = "상운면",
			Latitude = 36.83387851099325m, Longitude = 128.75526434362743m, Level = 7 }
	},
	GroupIdList = new Dictionary<Guid, string> {
		{ new Guid("86F0C958-8664-462B-B1E3-B7CA719FBF5B"), "국보" },
		{ new Guid("C2C62B5A-BE48-4545-BB29-640740712944"), "보물" },
		{ new Guid("78D4B728-3029-4070-93A5-71394C470746"), "천연기념물" },
		{ new Guid("32C78CA3-1CDF-4DCD-8CC3-597B769D89C9"), "사적" },
		{ new Guid("CA1AE7A6-D0B2-4F06-9AE3-A153EEE8FF29"), "중요민속자료" },
		{ new Guid("BB0D93B4-F2AF-45D5-A646-A2CCB68BD51E"), "명승" }
	}
})%>
</asp:Content>

<asp:Content ContentPlaceHolderId="scripts" runat="server">
<%:TourMap.CreateBoardJS()%>
</asp:Content>