This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
map_suite_web_edition_azure_deployment_guide [2015/08/20 03:08] 127.0.0.1 external edit |
— (current) | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Map_Suite_Web_Edition_Azure_Deployment_Guide ====== | ||
| - | |||
| - | The purpose of this guide is to show you how to upload your Web Edition Sample to Azure Server, and at the same time install the Web Server Edition to remove the watermark after deployment. It is using 3 key files( one cmd , one exe and one msi). Web Server Edition serial number needs to be upgraded in the cmd file to pass the online validation. | ||
| - | |||
| - | This guide works with Map Suite 7.0 Web Edition. If you are using 7.0.0.0 assemblies you can directly use the attached tools. If you are using a newer version please replace the “Setup Unmanaged Dependencies 7.0.0.0.msi” and update the corresponding script in MapSuiteWebServerAzureInstaller.cmd. | ||
| - | |||
| - | ===== Download the Sample ===== | ||
| - | {{Filelink}}[[:File:WebEditionSample AzureDepolyment CS 130726.zip|Download This Sample]] //( 22.65 MB)// | ||
| - | |||
| - | |||
| - | ==== Run VS as administrator and create Windows Azure Cloud Service ==== | ||
| - | {{Figure|Mvc1.png}} | ||
| - | |||
| - | ==== Add a web role ==== | ||
| - | {{Figure|2.png}} | ||
| - | |||
| - | ==== Add a shapefile to the project and write code as following to display it on the map ==== | ||
| - | <source lang="csharp"> | ||
| - | Map1.MapBackground.BackgroundBrush = new GeoSolidBrush(GeoColor.FromHtml("#E5E3DF")); | ||
| - | Map1.CurrentExtent = new RectangleShape(-131.22, 55.05, -54.03, 16.91); | ||
| - | Map1.MapUnit = GeographyUnit.DecimalDegree; | ||
| - | Map1.MapTools.PanZoomBar.Enabled = true; | ||
| - | Map1.MapTools.MouseCoordinate.Enabled = true; | ||
| - | |||
| - | WorldMapKitWmsWebOverlay worldMapKitOverlay = new WorldMapKitWmsWebOverlay(); | ||
| - | |||
| - | ShapeFileFeatureLayer layer = new ShapeFileFeatureLayer(Server.MapPath("SampleData/cities_a.shp")); | ||
| - | layer.ZoomLevelSet.ZoomLevel01.DefaultPointStyle = PointStyles.Capital1; | ||
| - | layer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20; | ||
| - | |||
| - | InMemoryFeatureLayer imfl = new InMemoryFeatureLayer(); | ||
| - | imfl.InternalFeatures.Add(new Feature(Map1.CurrentExtent.GetCenterPoint())); | ||
| - | imfl.ZoomLevelSet.ZoomLevel01.DefaultPointStyle = PointStyles.Capital1; | ||
| - | imfl.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20; | ||
| - | |||
| - | LayerOverlay overlay = new LayerOverlay(); | ||
| - | overlay.Layers.Add(layer); | ||
| - | |||
| - | Map1.CustomOverlays.Add(overlay); | ||
| - | </source> | ||
| - | |||
| - | {{Figure|WebEdition Sample Code.png}} | ||
| - | |||
| - | {{Figure|WebEdition Sample Project.png}} | ||
| - | |||
| - | ==== Copy the 3 files to the project folder and reference them into your project ==== | ||
| - | {{Figure|3.png}} | ||
| - | |||
| - | ==== Set the 3 files’ Build Action to "Content" and Copy to Output Directory to "Copy Always" ==== | ||
| - | {{Figure|4.png}} | ||
| - | |||
| - | ==== Change the MapSuiteWebServerAzureInstaller.cmd by typing in the license key, then rebuild ==== | ||
| - | {{Figure|5.png}} | ||
| - | |||
| - | ==== Add a new node to the ServiceDefinition.csdef under WebRole node as following ==== | ||
| - | <Startup><Task commandLine="MapSuiteWebServerAzureInstaller.cmd" executionContext="elevated" taskType="simple"></Task></Startup> | ||
| - | |||
| - | {{Figure|6.png}} | ||
| - | |||
| - | ==== Publish it, the Web server edition should have been installed and no watermark will be shown on the Map Suite Map. ==== | ||
| - | {{Figure|WebEdition Deploy to AzureCloud.png}} | ||
8501 Wade Blvd Ste 550
Frisco, TX 75034
United States
sales@thinkgeo.com
1-785-727-4133
Online Store
- Desktop
WPF
WinForms
- Web
WebAPI HTML5/JavaScript
ASP.NET MVC
WebForms with AJAX
- Mobile
iOS
Android™
World Street
World Imagery
Routing
Geocoding
Reverse Geocoding
Elevation
Quick Start Guides
Documentation
Blogs
Discussion Forums
Customer Portal
About Us
News & Announcemets
Privacy Policy
Copyright 2003-2017 ThinkGeo LLC.
All rights reserved.