在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):jmelosegui/GooglemapMvc开源软件地址(OpenSource Url):https://github.com/jmelosegui/GooglemapMvc开源编程语言(OpenSource Language):C# 50.1%开源软件介绍(OpenSource Introduction):Googlemap control for Asp.Net MVCGooglemap control for Asp.Net MVC wraps Google Maps APIs simplifying the use of Google Maps in ASP.NET Core Web Applications. Features
InstallInside 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
Don't forget to add the namespace to the very top of your page
Now hit F5 and you should see the map rendering on the page LinksContributing PrerequisitesRequired
Better withSelf-service releasesAs 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:
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 LicenseGooglemap control for Asp.Net MVC is released under the MIT. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论