How to Integrate and Loading the Google Map in asp.net
In this article I am going to explain to you about Google Maps and how to integrate in ASP.NET.
Google Maps is a web mapping platform and consumer application offered by Google. It offers satellite imagery, aerial photography, street maps, 360° interactive panoramic views of streets (Street View), real-time traffic conditions, and route planning for traveling by foot, car, air (in beta) and public transportation.
- Google provides the free API to integrate Google Maps in our application.
- You can customize Google Maps depending on your requirements.
First of all, to integrate Google Maps create a new project in Visual studio. Add a new webform as follows.
Step 1:
- Create a new project in visual studio.
- Add a new web form or existing form.
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div id="map" style="width: 100%; height: 500px;"></div>
</form>
</body>
</html>
Step 2:
- Add the following script in the head section.
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4459976192218248"
crossorigin="anonymous"></script>
Comments
Post a Comment