|
1 |
| -<div id="body"> |
2 |
| - <section class="featured"> |
3 |
| - <div class="content-wrapper"> |
4 |
| - <hgroup class="title"> |
5 |
| - <h1>Welcome to ASP.NET Web API!</h1> |
6 |
| - <h2>Modify the code in this template to jump-start your ASP.NET Web API development.</h2> |
7 |
| - </hgroup> |
8 |
| - <p> |
9 |
| - ASP.NET Web API allows you to expose your applications, data and services to the |
10 |
| - web directly over HTTP. |
11 |
| - </p> |
12 |
| - <p> |
13 |
| - To learn more about ASP.NET Web API visit the |
14 |
| - <a href="http://go.microsoft.com/fwlink/?LinkID=238195" title="ASP.NET Web API Website">ASP.NET Web API Website</a>. |
15 |
| - The page features <mark>videos, tutorials, and samples</mark> to help you get the most from ASP.NET Web API. |
16 |
| - If you have any questions about ASP.NET Web API, visit |
17 |
| - <a href="http://go.microsoft.com/fwlink/?LinkID=238196" title="ASP.NET Web API Forum">our forums</a>. |
18 |
| - </p> |
19 |
| - </div> |
20 |
| - </section> |
21 |
| - <section class="content-wrapper main-content clear-fix"> |
22 |
| - <h3>We suggest the following steps:</h3> |
23 |
| - <ol class="round"> |
24 |
| - <li class="one"> |
25 |
| - <h5>Getting Started</h5> |
26 |
| - ASP.NET Web API is a framework that makes it easy to build HTTP services that reach |
27 |
| - a broad range of clients, including browsers and mobile devices. ASP.NET Web API |
28 |
| - is an ideal platform for building RESTful applications on the .NET Framework. |
29 |
| - <a href="http://go.microsoft.com/fwlink/?LinkId=245160">Learn more…</a> |
30 |
| - </li> |
| 1 | +@model List<Ndot.Models.Sr1FormData> |
| 2 | + |
| 3 | +<div id="map-canvas" /> |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | +@section HeadScripts { |
| 8 | + <script type="text/javascript" |
| 9 | + src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDUqiIvhxiT8znW80ZnJckV78B3zftp0mQ&sensor=false"> |
| 10 | + </script> |
| 11 | + |
| 12 | + <script type="text/javascript"> |
| 13 | + function initialize() { |
| 14 | + var mapOptions = { |
| 15 | + center: new google.maps.LatLng(36.106364, -115.138871), |
| 16 | + zoom: 12 |
| 17 | + }; |
| 18 | + var map = new google.maps.Map(document.getElementById("map-canvas"), |
| 19 | + mapOptions); |
| 20 | + |
| 21 | + @foreach (var sr1Form in Model) |
| 22 | + { |
| 23 | + <text> |
| 24 | + var marker = new google.maps.Marker({ |
| 25 | + position: new google.maps.LatLng(@sr1Form.Latitude, @sr1Form.Longitude), |
| 26 | + title: "@sr1Form.Street" |
| 27 | + }); |
| 28 | + marker.setMap(map); |
| 29 | + </text> |
| 30 | + } |
| 31 | + } |
| 32 | + google.maps.event.addDomListener(window, 'load', initialize); |
| 33 | + </script> |
| 34 | + |
| 35 | + <style type="text/css"> |
| 36 | + html { height: 100% } |
| 37 | + body { height: 100%; margin: 0; padding: 0 } |
| 38 | + </style> |
| 39 | + |
| 40 | +} |
31 | 41 |
|
32 |
| - <li class="two"> |
33 |
| - <h5>Add NuGet packages and jump-start your coding</h5> |
34 |
| - NuGet makes it easy to install and update free libraries and tools. |
35 |
| - <a href="http://go.microsoft.com/fwlink/?LinkId=245161">Learn more…</a> |
36 |
| - </li> |
37 |
| - <li class="three"> |
38 |
| - <h5>Find Web Hosting</h5> |
39 |
| - You can easily find a web hosting company that offers the right mix of features |
40 |
| - and price for your applications. |
41 |
| - <a href="http://go.microsoft.com/fwlink/?LinkId=245164">Learn more…</a> |
42 |
| - </li> |
43 |
| - </ol> |
44 |
| - </section> |
45 |
| -</div> |
0 commit comments