Odoo Google Map API
5 March, 2021 by
Odoo Google Map API
| No comments yet

Steps to set multiple google map in page

Step 1: Select page where you want to add google map and select customize.

Step 2: You have to add following code in page

<script src=”http://maps.googleapis.com/maps/api/js”></script>
function initialize() {
var mapProp = {
center:new google.maps.LatLng(51.508742,-0.120850),zoom:5,mapTypeId:google.maps.MapTypeId.ROADMAP
var map=new google.maps.Map(document.getElementById(“googleMap“),mapProp);
google.maps.event.addDomListener(window, ‘load’, initialize);
<div id=”googleMap” style=”width:250px;height:250px;”></div>

Step 3: If you want to use more than one Google Map in single page then you have to just change the boldtext whis the ID of the google frame which uses as a DIV tag.

If you get the answer as you need then please accept the answer.

Sign in to leave a comment