How to embed online maps in a javascript web application?
  • 2
    @ Veronika Lindorenko, Try to write more detailed questions. Explain what you see the problem, how to reproduce it, etc. - alvoro
  • @ Veronika Lindorenko, If you are given a comprehensive answer, mark it as correct (click on the check mark next to the selected answer). - Nicolas Chabanovsky

1 answer 1

Perhaps this will help https://developers.google.com/maps/documentation/javascript/tutorial

Or here is the simplest example.

var map; function initialize() { var mapOptions = { zoom: 8, center: new google.maps.LatLng(-34.397, 150.644) }; map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions); } google.maps.event.addDomListener(window, 'load', initialize);