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>
<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);
</script>
<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 theboldtext whis the ID of the google frame which uses as a DIV tag.
Your answer
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
Keep Informed
About This Forum
This forum is for HiTechnologia Employees & just Odoo general knowledge purpose only.
Read GuidelinesQuestion tools
Stats
Asked: 2/11/15, 6:13 AM |
Seen: 6052 times |
Last updated: 2/11/15, 6:13 AM |