var map1; var bounds1; var businesses1; var geocodes1; var cntGeocoded1 = 0; var directionsPanel1; var directions1; var focusedBusiness1; function generateMap1() { if (GBrowserIsCompatible() && document.getElementById("svmap_canvas1") != null) { geocoder1 = new GClientGeocoder(); geocoder1.setCache(null); var mapOptions = { mapTypes:[G_NORMAL_MAP] }; map1 = new GMap2(document.getElementById("svmap_canvas1"), mapOptions); var mapControl = new GMapTypeControl(); map1.addControl(mapControl); map1.addControl(new GLargeMapControl()); map1.disableDoubleClickZoom(); map1.disableScrollWheelZoom(); bounds1 = new GLatLngBounds; map1.setCenter(new GLatLng(43.8522623255626,4.772658348083496), 13); var marker16 = new GIcon(); marker16.image = "http://www.graveson-provence.fr/components/com_svmap/markers/letter-c.png"; marker16.iconSize = new GSize(20,34); marker16.iconAnchor = new GPoint(10,34); marker16.infoWindowAnchor = new GPoint(10,17); businesses1 = [[57,marker16,"Musée des Arômes et du Parfum",43.823913887973895,4.746265411376953,'

Musée des Arômes et du Parfum

Petite route du Grès
Graveson
04 90 95 81 72

',"/fr/component/svmap/business/musee-des-aromes-et-du-parfum/57.html","France Graveson 13690 Petite route du Grès "],[58,marker16,"CREDD\'O ",43.849441,4.771794,'

CREDD\'O

12 av. Auguste Chabaud
Graveson
04 32 61 94 06 - 06 87 31 11 03

\"L\'Oustau di Petit\" Centre de Recherche, d\'Etude, de Documentation et de Diffusion d\'Oc (langue, littérature, histoire, art).Vente de livres provençaux du fonds C.P.M. Ouverture du mardi au vendredi de 9h à 12h et de 14h à 18h sur rendez-vous.

',"http://www.creddo.info","France Graveson 13690 12 av. Auguste Chabaud"],[59,marker16,"Musée de Région Auguste Chabaud",43.851514,4.772264,'

Musée de Région Auguste Chabaud

Cours national
Graveson
04 90 90 53 02

Peintures, dessins, sculptures du peintre Auguste Chabaud, contemporain de Matisse et Derain. Cycles de conférences, ateliers plastiques, salles climatisées, stage service éducatif, expositions temporaires. Ouvert tous les jours de juin à septembre de 10h à 12h et de 13h30 à 18h30. Tarif 4€Tarif réduit 2€Service éducatif : 04 32 61 94 05

',"http://www.museechabaud.com","France Graveson 13690 Cours national "],[60,marker16,"Sur les pas d\'Auguste Chabaud",43.85130294591439,4.772744178771973,'

Sur les pas d\'Auguste Chabaud

Musée de Région d\'Auguste Chabaud

04 90 90 53 02 / 04 90 95 88 44/74

Circuit retraçant au travers des rues du village les lieux peints par Auguste Chabaud. Plaquettes avec les 16 reproductions couleurs et textes d\'Auguste Chabaud en vente.

',"/fr/component/svmap/business/sur-les-pas-dauguste-chabaud/60.html","Musée de Région d\'Auguste Chabaud "],[61,marker16," Association des artistes gravesonnais",43.85127818790344,4.773387908935547,'

Association des artistes gravesonnais


Graveson
04 90 95 78 01

Expositions, ateliers, sorties en extérieur. Voyages et visites de musées, Fête des Peintres et des Arts le 1er dimanche de septembre dans les rues du village. Contact : Jean Chauvet

',"/fr/component/svmap/business/-association-des-artistes-gravesonnais/61.html","France Graveson 13690"]]; addBusinesses1(); geocodes1 = [[62,marker16,"Pictural & Mural",,,'

Pictural & Mural



04 90 95 88 74 / 44

',"/fr/component/svmap/business/pictural-a-mural/62.html",""]]; geocodeBusinesses1(); } } function setBounds1(bounds) { map1.setZoom(map1.getBoundsZoomLevel(bounds)); map1.setCenter(bounds.getCenter()); } function geocodeBusinesses1() { if (cntGeocoded1 < geocodes1.length) { geocoder1.getLocations(geocodes1[cntGeocoded1][7], addressResolved1); } } function addressResolved1(response) { var delay = 0; if (response.Status.code == 620) { delay = 500; } else { if (response.Status.code == 200) { var address = response.Placemark[0]; geocodes1[cntGeocoded1][3] = address.Point.coordinates[1]; geocodes1[cntGeocoded1][4] = address.Point.coordinates[0]; addBusiness(geocodes1[cntGeocoded1]); // Move onto the next address; this skips bad addresses, too. cntGeocoded += 1; } } window.setTimeout(geocodeBusinesses1, delay); } function addBusinesses1() { for (var i=0; i < businesses1.length; i++) { addBusiness1(businesses1[i]); } } function addBusiness1(business) { var point = new GLatLng(business[3], business[4]); var markerOptions = { icon:business[1], draggable: false, "title":business[2] }; var marker = new GMarker(point, markerOptions); var form = '
Trouver un itinéraire : A partir de ce lieu - Vers ce lieu
'; var info = business[5]; info += form; var div = document.createElement("div"); div.style.width = "300px"; div.style.height = "200px"; var pano = new GStreetviewPanorama(div); pano.setLocationAndPOV(point); GEvent.addListener(pano, "error", function() { marker.bindInfoWindowHtml(info); } ); var tabs = [new GInfoWindowTab('Info', info),new GInfoWindowTab('StreetView', div)]; marker.bindInfoWindowTabsHtml(tabs); GEvent.addListener(marker, "infowindowopen", function() { pano.show(); }); GEvent.addListener(marker, "infowindowbeforeclose", function() { pano.hide(); }); map1.addOverlay(marker); bounds1.extend(point); setBounds1(bounds1); } function showFormFrom() { document.getElementById('formFrom').style.display = 'block'; document.getElementById('formTo').style.display = 'none'; return false; } function showFormTo() { document.getElementById('formTo').style.display = 'block'; document.getElementById('formFrom').style.display = 'none'; return false; } function findDirections1(from, to) { if (directions1 == null) { directionsPanel1 = document.getElementById('svmap_directions_panel1'); directions1 = new GDirections(map1, directionsPanel1); GEvent.addListener(directions1, "error", directionsError); } else { directions1.clear(); } directions1.load("from: "+from+" to: "+to); } function directionsError(response) { status = response.getStatus(); switch (status.code) { case 602: message = "No corresponding geographic location could be found for the specified address. This may be due to the fact that the address is relatively new, or it may be incorrect."; break; case 603: message = "The route for the given directions query cannot be returned due to legal or contractual reasons."; break; case 604: message = "The directions between the points mentioned in the query could not be computed. This is usually because there is no route available between the two points, or because there is no data for routing in that region."; break; default: message = "The directions between the points mentioned in the query could not be computed."; break; } alert(message); }