Skip to content

Commit e413a3e

Browse files
committed
First version of simple Azure Map
1 parent fc45718 commit e413a3e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+25044
-1
lines changed

.gitignore

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# .gitignore for ASP.NET MVC / Windows Azure development
2+
# Original file: https://gist.github.com/3318347 by @codingoutloud
3+
## Github doc on ignoring files: https://help.github.com/articles/ignoring-files
4+
## The man page for .gitignore (referenced by github): http://man.cx/gitignore
5+
## Of possible interest (can be complex): https://github.com/github/gitignore
6+
7+
# Troubleshooting
8+
# 1. If you add a .gitignore file to an existing repo (or significantly change one), you may want
9+
# to force it to act as though the new/updated .gitignore was in force the whole time.
10+
## http://stackoverflow.com/questions/1139762/gitignore-file-not-ignoring
11+
### git rm -r --cached .
12+
### git add .
13+
### git commit -m ".gitignore is now working"
14+
# 2. If you get an Unsynchronized Commit error in the GitHub Windows client, you may want to try this.
15+
## http://stackoverflow.com/questions/8174324/github-unsynchronized-commit
16+
# 3. If you get "unstaged changes" "you cannot sync with unstaged changes" "please commit your changes and try again" from
17+
# Github for Windows client...
18+
## ?
19+
20+
# don't ignore myself!
21+
!.gitignore
22+
23+
# Visual Studio build objects
24+
bin/
25+
csx/
26+
obj/
27+
rcf/
28+
29+
# Windows Azure Publish Settings contain security keys for accessing your Windows Azure account
30+
.publishsettings
31+
32+
# Visual Studio user-specific files
33+
## Useful whenever working as part of a team or on software (like open source) that others will download
34+
*.suo
35+
*.user
36+
37+
# Access Control Service integration (via FedUtil or Add STS Reference from VS2010) will create FederationMetadata.xml below this folder
38+
##=> looks like FederationMetadata.xml is referenced in csproj, so need it in source control
39+
# FederationMetadata\
40+
## Multiple applications of FedUtil will result in *.backup.1, *.backup.2, etc., files for Web.config and FederationMetadata.xml
41+
*.backup.*
42+
43+
# NuGet
44+
# Also consider letting NuGet automatically restore missing packages for you:
45+
## http://docs.nuget.org/docs/workflows/using-nuget-without-committing-packages/
46+
packages/
47+
48+
# ReSharper
49+
_ReSharper*/
50+
51+
# NCrunch
52+
*ncrunch*

AzureMap.sln

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 2013
4+
VisualStudioVersion = 12.0.21005.1
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AzureMap", "AzureMap\AzureMap.csproj", "{A83EDEE0-E72B-43F5-AE4B-64BE857EA4B2}"
7+
ProjectSection(ProjectDependencies) = postProject
8+
{D2D7E7B6-DC1C-466A-BFB0-C664BC47318A} = {D2D7E7B6-DC1C-466A-BFB0-C664BC47318A}
9+
EndProjectSection
10+
EndProject
11+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DataCenterJavaScriptGenerator", "DataCenterJavaScriptGenerator\DataCenterJavaScriptGenerator.csproj", "{D2D7E7B6-DC1C-466A-BFB0-C664BC47318A}"
12+
EndProject
13+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".meta", ".meta", "{C5B7D576-FFD5-43AB-A51A-60F6E7290A9A}"
14+
ProjectSection(SolutionItems) = preProject
15+
.gitignore = .gitignore
16+
LICENSE = LICENSE
17+
readme.md = readme.md
18+
TODO.md = TODO.md
19+
EndProjectSection
20+
EndProject
21+
Global
22+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
23+
Debug|Any CPU = Debug|Any CPU
24+
Release|Any CPU = Release|Any CPU
25+
EndGlobalSection
26+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
27+
{A83EDEE0-E72B-43F5-AE4B-64BE857EA4B2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
28+
{A83EDEE0-E72B-43F5-AE4B-64BE857EA4B2}.Debug|Any CPU.Build.0 = Debug|Any CPU
29+
{A83EDEE0-E72B-43F5-AE4B-64BE857EA4B2}.Release|Any CPU.ActiveCfg = Release|Any CPU
30+
{A83EDEE0-E72B-43F5-AE4B-64BE857EA4B2}.Release|Any CPU.Build.0 = Release|Any CPU
31+
{D2D7E7B6-DC1C-466A-BFB0-C664BC47318A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
32+
{D2D7E7B6-DC1C-466A-BFB0-C664BC47318A}.Debug|Any CPU.Build.0 = Debug|Any CPU
33+
{D2D7E7B6-DC1C-466A-BFB0-C664BC47318A}.Release|Any CPU.ActiveCfg = Release|Any CPU
34+
{D2D7E7B6-DC1C-466A-BFB0-C664BC47318A}.Release|Any CPU.Build.0 = Release|Any CPU
35+
EndGlobalSection
36+
GlobalSection(SolutionProperties) = preSolution
37+
HideSolutionNode = FALSE
38+
EndGlobalSection
39+
EndGlobal

AzureMap/App_Start/BundleConfig.cs

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
using System.Web;
2+
using System.Web.Optimization;
3+
4+
namespace AzureMap
5+
{
6+
public class BundleConfig
7+
{
8+
// For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
9+
public static void RegisterBundles(BundleCollection bundles)
10+
{
11+
bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
12+
"~/Scripts/jquery-{version}.js"));
13+
14+
// Use the development version of Modernizr to develop with and learn from. Then, when you're
15+
// ready for production, use the build tool at http://modernizr.com to pick only the tests you need.
16+
bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
17+
"~/Scripts/modernizr-*"));
18+
19+
bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
20+
"~/Scripts/bootstrap.js",
21+
"~/Scripts/respond.js"));
22+
23+
bundles.Add(new StyleBundle("~/Content/css").Include(
24+
"~/Content/bootstrap.css",
25+
"~/Content/site.css"));
26+
}
27+
}
28+
}

AzureMap/App_Start/FilterConfig.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
using System.Web;
2+
using System.Web.Mvc;
3+
4+
namespace AzureMap
5+
{
6+
public class FilterConfig
7+
{
8+
public static void RegisterGlobalFilters(GlobalFilterCollection filters)
9+
{
10+
filters.Add(new HandleErrorAttribute());
11+
}
12+
}
13+
}

AzureMap/App_Start/RouteConfig.cs

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Web;
5+
using System.Web.Mvc;
6+
using System.Web.Routing;
7+
8+
namespace AzureMap
9+
{
10+
public class RouteConfig
11+
{
12+
public static void RegisterRoutes(RouteCollection routes)
13+
{
14+
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
15+
16+
routes.MapRoute(
17+
name: "Default",
18+
url: "{controller}/{action}/{id}",
19+
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
20+
);
21+
}
22+
}
23+
}

AzureMap/AzureMap.csproj

Lines changed: 207 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,207 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4+
<PropertyGroup>
5+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7+
<ProductVersion>
8+
</ProductVersion>
9+
<SchemaVersion>2.0</SchemaVersion>
10+
<ProjectGuid>{A83EDEE0-E72B-43F5-AE4B-64BE857EA4B2}</ProjectGuid>
11+
<ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
12+
<OutputType>Library</OutputType>
13+
<AppDesignerFolder>Properties</AppDesignerFolder>
14+
<RootNamespace>AzureMap</RootNamespace>
15+
<AssemblyName>AzureMap</AssemblyName>
16+
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
17+
<MvcBuildViews>false</MvcBuildViews>
18+
<UseIISExpress>true</UseIISExpress>
19+
<IISExpressSSLPort />
20+
<IISExpressAnonymousAuthentication />
21+
<IISExpressWindowsAuthentication />
22+
<IISExpressUseClassicPipelineMode />
23+
</PropertyGroup>
24+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
25+
<DebugSymbols>true</DebugSymbols>
26+
<DebugType>full</DebugType>
27+
<Optimize>false</Optimize>
28+
<OutputPath>bin\</OutputPath>
29+
<DefineConstants>DEBUG;TRACE</DefineConstants>
30+
<ErrorReport>prompt</ErrorReport>
31+
<WarningLevel>4</WarningLevel>
32+
</PropertyGroup>
33+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
34+
<DebugType>pdbonly</DebugType>
35+
<Optimize>true</Optimize>
36+
<OutputPath>bin\</OutputPath>
37+
<DefineConstants>TRACE</DefineConstants>
38+
<ErrorReport>prompt</ErrorReport>
39+
<WarningLevel>4</WarningLevel>
40+
</PropertyGroup>
41+
<ItemGroup>
42+
<Reference Include="Microsoft.CSharp" />
43+
<Reference Include="System" />
44+
<Reference Include="System.Data" />
45+
<Reference Include="System.Data.Entity" />
46+
<Reference Include="System.Drawing" />
47+
<Reference Include="System.Runtime.Serialization" />
48+
<Reference Include="System.Web.DynamicData" />
49+
<Reference Include="System.Web.Entity" />
50+
<Reference Include="System.Web.ApplicationServices" />
51+
<Reference Include="System.ComponentModel.DataAnnotations" />
52+
<Reference Include="System.Core" />
53+
<Reference Include="System.Data.DataSetExtensions" />
54+
<Reference Include="System.Xml.Linq" />
55+
<Reference Include="System.Web" />
56+
<Reference Include="System.Web.Extensions" />
57+
<Reference Include="System.Web.Abstractions" />
58+
<Reference Include="System.Web.Routing" />
59+
<Reference Include="System.Xml" />
60+
<Reference Include="System.Configuration" />
61+
<Reference Include="System.Web.Services" />
62+
<Reference Include="System.EnterpriseServices" />
63+
<Reference Include="Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
64+
<Private>True</Private>
65+
<HintPath>..\packages\Microsoft.Web.Infrastructure.1.0.0.0\lib\net40\Microsoft.Web.Infrastructure.dll</HintPath>
66+
</Reference>
67+
<Reference Include="System.Net.Http">
68+
</Reference>
69+
<Reference Include="System.Net.Http.WebRequest">
70+
</Reference>
71+
<Reference Include="System.Web.Helpers, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
72+
<Private>True</Private>
73+
<HintPath>..\packages\Microsoft.AspNet.WebPages.3.0.0\lib\net45\System.Web.Helpers.dll</HintPath>
74+
</Reference>
75+
<Reference Include="System.Web.Mvc, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
76+
<Private>True</Private>
77+
<HintPath>..\packages\Microsoft.AspNet.Mvc.5.0.0\lib\net45\System.Web.Mvc.dll</HintPath>
78+
</Reference>
79+
<Reference Include="System.Web.Optimization">
80+
<HintPath>..\packages\Microsoft.AspNet.Web.Optimization.1.1.1\lib\net40\System.Web.Optimization.dll</HintPath>
81+
</Reference>
82+
<Reference Include="System.Web.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
83+
<Private>True</Private>
84+
<HintPath>..\packages\Microsoft.AspNet.Razor.3.0.0\lib\net45\System.Web.Razor.dll</HintPath>
85+
</Reference>
86+
<Reference Include="System.Web.WebPages, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
87+
<Private>True</Private>
88+
<HintPath>..\packages\Microsoft.AspNet.WebPages.3.0.0\lib\net45\System.Web.WebPages.dll</HintPath>
89+
</Reference>
90+
<Reference Include="System.Web.WebPages.Deployment, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
91+
<Private>True</Private>
92+
<HintPath>..\packages\Microsoft.AspNet.WebPages.3.0.0\lib\net45\System.Web.WebPages.Deployment.dll</HintPath>
93+
</Reference>
94+
<Reference Include="System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
95+
<Private>True</Private>
96+
<HintPath>..\packages\Microsoft.AspNet.WebPages.3.0.0\lib\net45\System.Web.WebPages.Razor.dll</HintPath>
97+
</Reference>
98+
<Reference Include="Newtonsoft.Json">
99+
<Private>True</Private>
100+
<HintPath>..\packages\Newtonsoft.Json.5.0.6\lib\net45\Newtonsoft.Json.dll</HintPath>
101+
</Reference>
102+
<Reference Include="WebGrease">
103+
<Private>True</Private>
104+
<HintPath>..\packages\WebGrease.1.5.2\lib\WebGrease.dll</HintPath>
105+
</Reference>
106+
<Reference Include="Antlr3.Runtime">
107+
<Private>True</Private>
108+
<HintPath>..\packages\Antlr.3.4.1.9004\lib\Antlr3.Runtime.dll</HintPath>
109+
</Reference>
110+
</ItemGroup>
111+
<ItemGroup>
112+
<Folder Include="App_Data\" />
113+
<Folder Include="Models\" />
114+
</ItemGroup>
115+
<ItemGroup>
116+
<Compile Include="App_Start\BundleConfig.cs" />
117+
<Compile Include="App_Start\FilterConfig.cs" />
118+
<Compile Include="App_Start\RouteConfig.cs" />
119+
<Compile Include="Controllers\HomeController.cs" />
120+
<Compile Include="Global.asax.cs">
121+
<DependentUpon>Global.asax</DependentUpon>
122+
</Compile>
123+
<Compile Include="Properties\AssemblyInfo.cs" />
124+
</ItemGroup>
125+
<ItemGroup>
126+
<Content Include="Content\bootstrap.css" />
127+
<Content Include="Content\bootstrap.min.css" />
128+
<Content Include="Content\DataCenterMapper.css" />
129+
<Content Include="dcLocList.js">
130+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
131+
</Content>
132+
<Content Include="favicon.ico" />
133+
<Content Include="fonts\glyphicons-halflings-regular.svg" />
134+
<Content Include="Global.asax" />
135+
<Content Include="Content\Site.css" />
136+
<Content Include="Scripts\bootstrap.js" />
137+
<Content Include="Scripts\bootstrap.min.js" />
138+
<None Include="Scripts\jquery-1.10.2.intellisense.js" />
139+
<Content Include="Scripts\DataCenterMapper.js" />
140+
<Content Include="Scripts\jquery-1.10.2.js" />
141+
<Content Include="Scripts\jquery-1.10.2.min.js" />
142+
<Content Include="Scripts\modernizr-2.6.2.js" />
143+
<Content Include="Scripts\respond.js" />
144+
<Content Include="Scripts\respond.min.js" />
145+
<Content Include="Scripts\_references.js" />
146+
<Content Include="Web.config" />
147+
<Content Include="Web.Debug.config">
148+
<DependentUpon>Web.config</DependentUpon>
149+
</Content>
150+
<Content Include="Web.Release.config">
151+
<DependentUpon>Web.config</DependentUpon>
152+
</Content>
153+
<Content Include="Views\Web.config" />
154+
<Content Include="Views\_ViewStart.cshtml" />
155+
<Content Include="Views\Shared\Error.cshtml" />
156+
<Content Include="Views\Shared\_Layout.cshtml" />
157+
<Content Include="Views\Home\About.cshtml" />
158+
<Content Include="Views\Home\Contact.cshtml" />
159+
<Content Include="Views\Home\Index.cshtml" />
160+
<Content Include="Scripts\jquery-1.10.2.min.map" />
161+
</ItemGroup>
162+
<ItemGroup />
163+
<ItemGroup>
164+
<Content Include="fonts\glyphicons-halflings-regular.woff" />
165+
<Content Include="fonts\glyphicons-halflings-regular.ttf" />
166+
<Content Include="fonts\glyphicons-halflings-regular.eot" />
167+
<Content Include="packages.config" />
168+
<None Include="Project_Readme.html" />
169+
</ItemGroup>
170+
<PropertyGroup>
171+
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
172+
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
173+
</PropertyGroup>
174+
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
175+
<Import Project="$(VSToolsPath)\WebApplications\Microsoft.WebApplication.targets" Condition="'$(VSToolsPath)' != ''" />
176+
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" Condition="false" />
177+
<Target Name="MvcBuildViews" AfterTargets="AfterBuild" Condition="'$(MvcBuildViews)'=='true'">
178+
<AspNetCompiler VirtualPath="temp" PhysicalPath="$(WebProjectOutputDir)" />
179+
</Target>
180+
<ProjectExtensions>
181+
<VisualStudio>
182+
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
183+
<WebProjectProperties>
184+
<UseIIS>True</UseIIS>
185+
<AutoAssignPort>True</AutoAssignPort>
186+
<DevelopmentServerPort>14226</DevelopmentServerPort>
187+
<DevelopmentServerVPath>/</DevelopmentServerVPath>
188+
<IISUrl>http://localhost:14226/</IISUrl>
189+
<NTLMAuthentication>False</NTLMAuthentication>
190+
<UseCustomServer>False</UseCustomServer>
191+
<CustomServerUrl>
192+
</CustomServerUrl>
193+
<SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
194+
</WebProjectProperties>
195+
</FlavorProperties>
196+
</VisualStudio>
197+
</ProjectExtensions>
198+
<PropertyGroup>
199+
<PreBuildEvent>$(ProjectDir)..\DataCenterJavaScriptGenerator\bin\$(ConfigurationName)\DataCenterJavaScriptGenerator &gt; $(ProjectDir)\dcLocList.js</PreBuildEvent>
200+
</PropertyGroup>
201+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
202+
Other similar extension points exist, see Microsoft.Common.targets.
203+
<Target Name="BeforeBuild">
204+
</Target>
205+
<Target Name="AfterBuild">
206+
</Target> -->
207+
</Project>

AzureMap/Content/DataCenterMapper.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.pinText div {
2+
font-size: xx-small !important;
3+
font-weight: lighter !important;
4+
font-family:"Arial Narrow" !important;
5+
color: black !important;
6+
background-color: lightgoldenrodyellow !important;
7+
/* letter-spacing: -1px !important; */
8+
font-stretch: extra-condensed;
9+
}

0 commit comments

Comments
 (0)