mapa

Kontaktirajte nas

 function showLatLgn() { var geocoder = new google.maps.Geocoder(); var sLat = "20.4565887"; var sLong = "44.8164787"; var latlng = new google.maps.LatLng(sLat, sLong); geocoder.geocode({"latLng":latlng},function(data,status){ if(status == google.maps.GeocoderStatus.OK){ var add = data[1].formatted_address; //this is the full address var myOptions = { zoom: 16, center: latlng, mapTypeId: google.maps.MapTypeId.ROADMAP }; var map = new google.maps.Map(document.getElementById("map-canvas"), myOptions); var marker = new google.maps.Marker({ map: map, position: latlng }); marker.setTitle('Address'); attachSecretMessage(marker, add); }else { try { console.log("Address not found"); } catch(e) {} } }) } function attachSecretMessage(marker, message) { var infowindow = new google.maps.InfoWindow( { content: message }); google.maps.event.addListener(marker, 'click', function() { infowindow.open(marker.get('map'),marker); }); } function showLocation(){ var address = 'belgrade'; var geocoder = new google.maps.Geocoder(); geocoder.geocode( { "address": address }, function(results, status) { // If the Geocoding was successful if (status == google.maps.GeocoderStatus.OK) { var myOptions = { zoom: 16, center: results[0].geometry.location, mapTypeId: google.maps.MapTypeId.ROADMAP }; var map = new google.maps.Map(document.getElementById("map-canvas"), myOptions); // Add a marker at the address. var marker = new google.maps.Marker({ map: map, position: results[0].geometry.location }); marker.setTitle('Address'); attachSecretMessage(marker, address); } else { try { console.log(address + " not found"); } catch(e) {} } }); } google.maps.event.addDomListener(window, 'load', showLocation);
: Zmaj Jovina 5
: 011/2636 295
Captcha
  Mail is not sent.   Your email has been sent.