From 7d38cb44bd2a6168ae48795215e13c80b80f8ba4 Mon Sep 17 00:00:00 2001 From: jmelosegui Date: Sat, 18 Jul 2015 22:51:45 -0400 Subject: [PATCH] Updating the Home Page --- .../Content/Site.css | 1 + .../Jmelosegui.Mvc.Googlemap.Examples.csproj | 1 - .../Project_Readme.html | 151 ------------------ .../Views/Home/FirstLook.cshtml | 65 +++++--- .../Views/Shared/_Layout.cshtml | 4 +- 5 files changed, 44 insertions(+), 178 deletions(-) delete mode 100644 src/Jmelosegui.Mvc.Googlemap.Examples/Project_Readme.html diff --git a/src/Jmelosegui.Mvc.Googlemap.Examples/Content/Site.css b/src/Jmelosegui.Mvc.Googlemap.Examples/Content/Site.css index d6e0a89..f94ccfd 100644 --- a/src/Jmelosegui.Mvc.Googlemap.Examples/Content/Site.css +++ b/src/Jmelosegui.Mvc.Googlemap.Examples/Content/Site.css @@ -7,6 +7,7 @@ .social-button > li { float: left; + margin-left: 5px; } @media (max-width: 767px) { diff --git a/src/Jmelosegui.Mvc.Googlemap.Examples/Jmelosegui.Mvc.Googlemap.Examples.csproj b/src/Jmelosegui.Mvc.Googlemap.Examples/Jmelosegui.Mvc.Googlemap.Examples.csproj index f9e66f8..69bf0e9 100644 --- a/src/Jmelosegui.Mvc.Googlemap.Examples/Jmelosegui.Mvc.Googlemap.Examples.csproj +++ b/src/Jmelosegui.Mvc.Googlemap.Examples/Jmelosegui.Mvc.Googlemap.Examples.csproj @@ -353,7 +353,6 @@ Designer - diff --git a/src/Jmelosegui.Mvc.Googlemap.Examples/Project_Readme.html b/src/Jmelosegui.Mvc.Googlemap.Examples/Project_Readme.html deleted file mode 100644 index cb9e793..0000000 --- a/src/Jmelosegui.Mvc.Googlemap.Examples/Project_Readme.html +++ /dev/null @@ -1,151 +0,0 @@ - - - - - Your ASP.NET application - - - - - - -
-
-

This application consists of:

-
    -
  • Sample pages showing basic nav between Home, About, and Contact
  • -
  • Theming using Bootstrap
  • -
  • Authentication, if selected, shows how to register and sign in
  • -
  • ASP.NET features managed using NuGet
  • -
-
- - - - - -
-

Get help

- -
-
- - - \ No newline at end of file diff --git a/src/Jmelosegui.Mvc.Googlemap.Examples/Views/Home/FirstLook.cshtml b/src/Jmelosegui.Mvc.Googlemap.Examples/Views/Home/FirstLook.cshtml index f370b7f..4c058e0 100644 --- a/src/Jmelosegui.Mvc.Googlemap.Examples/Views/Home/FirstLook.cshtml +++ b/src/Jmelosegui.Mvc.Googlemap.Examples/Views/Home/FirstLook.cshtml @@ -6,33 +6,50 @@
-

- The control wraps Google maps API simplifying the use of Google maps in ASP.NET +

+ Googlemap control for Asp.Net MVC wraps Google maps API simplifying the use of Google maps in ASP.NET MVC applications.
-

+

-
    -
  • -

    - Open Source -

    -

    - Feel free to use it under GPLv2 license -

    -
  • -
  • -

    Nuget Package Available

    -
    - PM> Install-Package Jmelosegui.Mvc.Googlemap -
    -
    -

    - See the Installation page on github -

    - -
  • -
+
+

Install

+

Inside Visual Studio create a new AspNet Mvc Application.

+

Open the package manager console and install the Googlemap Mvc nuget package by typing the following command.

+ +
+ PM> Install-Package Jmelosegui.Mvc.Googlemap +
+
+
+
+
+ +

Once you have it go to the Views->Home->Index.cshtml and include the following

+
+    @@(
+        Html.Googlemap()
+            .Name("map")
+            .Markers(m => m.Add().Title("Hello World!")) 
+    )
+        
+ +

and at the end of that page add the following

+ +
+    @@section scripts
+    {
+       @@(Html.GoogleMap().ScriptRegistrar())
+    }
+        
+ +

Now hit F5 and you should see the map rendering on the page

+
+ +
+

License

+

Googlemap control for Asp.Net MVC is released under the GNU GENERAL PUBLIC LICENSE Version 2.

+
diff --git a/src/Jmelosegui.Mvc.Googlemap.Examples/Views/Shared/_Layout.cshtml b/src/Jmelosegui.Mvc.Googlemap.Examples/Views/Shared/_Layout.cshtml index 0df21cf..28f2857 100644 --- a/src/Jmelosegui.Mvc.Googlemap.Examples/Views/Shared/_Layout.cshtml +++ b/src/Jmelosegui.Mvc.Googlemap.Examples/Views/Shared/_Layout.cshtml @@ -35,7 +35,7 @@

Googlemap control for Asp.Net MVC