tried implemanting googlemap but failed for now

This commit is contained in:
lenovo
2022-10-24 20:03:50 +02:00
parent 039134cd96
commit 10bb6ff743
239 changed files with 191 additions and 37512 deletions

View File

@@ -0,0 +1,21 @@
jQuery(document).ready(function() {
var lat = jQuery('.latitude').text();
var lng = jQuery('.longitude').text();
var zoom = parseInt(jQuery('.zoom').text());
function initialize(){
var myCenter = new google.maps.LatLng(lat, lng);
var mapProp = {
center: myCenter,
zoom: zoom,
mapTypeId:google.maps.MapTypeId.ROADMAP
};
var map=new google.maps.Map(document.getElementById("showmap"),mapProp);
marker = new google.maps.Marker({
position: myCenter,
animation: google.maps.Animation.BOUNCE
});
marker.setMap(map);
}
google.maps.event.addDomListener(window, 'load', initialize);
});