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
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Display geographical map with help of google map api in javascript
Mannan
Apr 15
2016
Code
817
0
1
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
<!DOCTYPE html>
<html>
<head>
<script src=
"http://maps.googleapis.com/maps/api/js"
></script>
<script>
function
initializeMAP() {
var
mapproperties = {
center:
new
google.maps.LatLng(19.0760, 72.8777),
zoom: 10,
mapTypeId: google.maps.MapTypeId.ROADMAP
//(map types = ROADMAP,SATELLITE ,HYBRID ,TERRAIN)
};
var
map =
new
google.maps.Map(document.getElementById(
"divMAP"
), mapproperties);
}
</script>
</head>
<body onload=
"initializeMAP()"
>
<div id=
"divMAP"
style=
"width:500px;height:500px;"
></div>
</body>
</html>
Google map API