• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

jmelosegui/GooglemapMvc: The control wraps Google maps API simplifying the use o ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

jmelosegui/GooglemapMvc

开源软件地址(OpenSource Url):

https://github.com/jmelosegui/GooglemapMvc

开源编程语言(OpenSource Language):

C# 50.1%

开源软件介绍(OpenSource Introduction):

Googlemap control for Asp.Net MVC

Build Status Join the chat at https://gitter.im/jmelosegui/GooglemapMvc NuGet Donate

Googlemap control for Asp.Net MVC wraps Google Maps APIs simplifying the use of Google Maps in ASP.NET Core Web 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
    • Polyline
    • Polygons
    • Circles
    • Databinding
  • Services
    • Geolocation
    • Geocoding
  • Layers
    • Heatmap
    • Kml
    • Traffic
    • Transit
    • Bicycling
  • Libraries
    • Places (Non mvc yet)
    • Drawing (Non mvc yet)

Install

Inside Visual Studio create a new ASP.Net Core Web 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 Pages->Index.cshtml and include the following

<div class="row">
    <div class="col-md-12">
        @(Html.GoogleMap()
              .Name("map")
              .Height(500)
              .ApiKey("YourApiKeyHere")
          )
    </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

Contributing Prerequisites

Required

Better with

Self-service releases

As soon as a new change is pushed to this repo, a build is executed and an updated NuGet package is published to this Package Feed:

https://f.feedz.io/jmelosegui/oss/nuget/index.json

By adding this URL to your package sources you can immediately install the latest version of the NuGet packages to your project without wating for your feature to be "officially" published to https://www.nuget.org/. This can be done by adding a nuget.config file with the following content to the root of your project's repo:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
    <packageSources>
        <clear />
        <add key="Jmelosegui.OSS" value="https://f.feedz.io/jmelosegui/oss/nuget/index.json" />
        <add key="NuGet.org" value="https://api.nuget.org/v3/index.json" />
    </packageSources>
</configuration>

You can then install the package while you have your new "Googlemap Mvc CI" package source selected:

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

License

Googlemap control for Asp.Net MVC is released under the MIT.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap