TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Ravi Guntreddi
NA
5
9.4k
how to display google api map in mvc5 application
Jun 22 2015 6:55 AM
how to display google api map in asp.net mvc5 application
unable to display google map in view page in mvc5
i am using javascript code:
<script type="text/javascript"
src="http://maps.google.com/maps/api/js?sensor=false">
</script>
<script type="text/javascript">
$(document).ready(function () {
window.onload = initialize;
});
function initialize() {
var mapOptions = {
zoom: 8,
center: new google.maps.LatLng(-34.397, 150.644),
center: {lat: -34.397, lng: 150.644},
center: {lng: 150.644, lat: -34.397},
mapTypeId: google.maps.MapTypeId.ROADMAP
}
var map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions);
var latlng=new google.maps.LatLng(-34.397, 150.644);
var marker = new google.maps.Marker({
position: latlng,
map: map,
title: 'My Price'
});
}
</script>
<div id="map-canvas" style="width: 100%; height: 100%"></div>
Reply
Answers (
1
)
how to auto search in mvc
Designing Database Table for Navigation Menu