MARNATE DUE LOCALI

  • Bagno
  • Bagno1
  • Camera
  • Camera1
  • Cucina
  • Soggiorno (1)
  • Soggiorno (2)
Posizione
'; boxText.innerHTML = innerHTML; var myOptions = { content: boxText, disableAutoPan: true, maxWidth: 0, alignBottom: true, pixelOffset: new google.maps.Size( -122, -48 ), zIndex: null, closeBoxMargin: "0 0 -16px -16px", closeBoxURL: "http://www.monolocasa.it/wp/wp-content/themes/realhomes/realhomes/images/map/close.png", infoBoxClearance: new google.maps.Size( 1, 1 ), isHidden: false, pane: "floatPane", enableEventPropagation: false }; var infoBox = new InfoBox( myOptions ); google.maps.event.addListener( propertyMarker, 'click', function(){ var scale = Math.pow( 2, propertyMap.getZoom() ); var offsety = ( (150/scale) || 0 ); var projection = propertyMap.getProjection(); var markerPosition = propertyMarker.getPosition(); var markerScreenPosition = projection.fromLatLngToPoint( markerPosition ); var pointHalfScreenAbove = new google.maps.Point( markerScreenPosition.x, markerScreenPosition.y - offsety ); var aboveMarkerLatLng = projection.fromPointToLatLng( pointHalfScreenAbove ); propertyMap.setCenter( aboveMarkerLatLng ); infoBox.open( propertyMap, propertyMarker ); }); } window.onload = initialize_property_map();

Potrebbero interessarti anche