Skip to content

boriphuth/GooglemapMvc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build status #Googlemap control for Asp.Net MVC

Googlemap control for Asp.Net MVC wraps Google Maps APIs simplifying the use of Google Maps in ASP.NET MVC applications.

Features

  • Specific Api Version
  • UI Controls
  • Map Language
  • Multiple Maps
  • Client Events
  • PartialView with Ajax
  • Map Types
  • Markers
    • Custom Icons
    • Info Windows
    • Clustering
    • Databinding
    • Client Events
    • Geocoding
    • FitToMarkersBounds
    • External Reference
  • Shapes
    • Polygons
    • Circles
    • Databinding
  • Services
    • Geolocation
    • Geocoding
  • Layers
    • Heatmap
    • Kml
    • Traffic
    • Transit
    • Bicycling

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

<div class="row">
    <div class="col-md-12">
        @(Html.GoogleMap()
              .Name("map")
              .Height(500)
          )
    </div>
</div>

and at the end of that page add the following

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

Don't forget to add the namespace to the very top of your page

@using Jmelosegui.Mvc.GoogleMap

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

Links

Nuget Package
Online Demo

License

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

About

The control wraps Google maps API simplifying the use of Google maps in ASP.NET MVC applications.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 71.5%
  • JavaScript 22.1%
  • HTML 5.6%
  • Other 0.8%