Programul filmelor la Colours Cinema. Dăm invitaţii! | Craiova.ro blog http://t.co/hA9qjC2jZ6
Inchide

var geocoder; var map; var marker; var eviction_list = []; function initialize() { geocoder = new google.maps.Geocoder(); var latlng = new google.maps.LatLng(44.303704285719434, 23.794326782226562); var myOptions = { zoom: 14, center: latlng, mapTypeId: google.maps.MapTypeId.ROADMAP }; map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); // google.maps.event.addListener(map, 'click', show_poi); } function evictMarkers() { // clear all markers $(eviction_list).each(function () { this.setMap(null); }); // reset the eviction array eviction_list = []; } function codeAddress() { evictMarkers(); var tip_cautare = document.getElementById("tip-cautare").value; if (tip_cautare == "strazi") { var address = document.getElementById("keys2").value+' craiova'; if ( document.getElementById("keys2").value.length < 3) { mesaj ('Va rugam introduceti mai mult de 3 caractere','info'); } else { var myOptions = { zoom: 12, center: new google.maps.LatLng(44.303704285719434, 23.794326782226562), mapTypeId: google.maps.MapTypeId.ROADMAP } var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); geocoder.geocode( { 'address': address}, function(results, status) { if (status == google.maps.GeocoderStatus.OK) { map.setCenter(results[0].geometry.location); var marker = new google.maps.Marker({ map: map, position: results[0].geometry.location }); eviction_list.push(marker); } else { alert("Geocode was not successful for the following reason: " + status); } }); } } // from tip_cautare else { evictMarkers(); var address = document.getElementById("keys2").value; if (address.length < 3) { mesaj ('Va rugam introduceti mai mult de 3 caractere','info'); } else { //alert("/ajax.php?action=show_restaurante&key="+address); $.getJSON("/ajax.php?action=show_restaurante&key="+address, function(data){ // alert(data); var myOptions = { zoom: 12, center: new google.maps.LatLng(44.303704285719434, 23.794326782226562), mapTypeId: google.maps.MapTypeId.ROADMAP } var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); //var marker = []; var nr_m =0; var infowindow = new google.maps.InfoWindow(); $.each(data.adrese, function(i,item){ nr_m++; var pozitie = item.pozitie.replace ("(",""); var pozitie = pozitie.replace (")",""); var pozitie = pozitie.split(","); var long = pozitie[0]; var lat = pozitie[1]; //$("#response").append(long+"->"+lat); /* SETAM MARKERII */ var center2 = new google.maps.LatLng(long,lat); var marker = new google.maps.Marker({ map: map, position: center2 }); /* SETAM INFO WINDOWSURILE*/ google.maps.event.addListener(marker, 'click', function() { infowindow.close() infowindow.setContent(item.nume); infowindow.open(map,marker); }); //setTimeout(function () { infowindow.close(); }, 3000); eviction_list.push(marker); }); }); } }//from else tip cautare } // Call this function to open an infowindow i.e. on click. function respondToClick(latlng) { infowindow.setOptions({ position: latlng, content:"Hello, world" }); } function show_poi(long,lat,text) { evictMarkers(); var center = new google.maps.LatLng(long,lat); var myOptions = { zoom: 18, center: center, mapTypeId: google.maps.MapTypeId.ROADMAP }; map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); map.setCenter(center); var marker = new google.maps.Marker({ map: map, position: center }); eviction_list.push(marker); return false; } initialize();
Site-ul craiova.ro nu mai este compatibil in totalitate cu versiunea Internet Explorer 6.
Pentru o mai buna vizualizare folositi unul din urmatoarele browsere:


Internet Explorer

Mozilla Firefox

Chrome

Opera

Safari