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: "https://www.concettarelli.com/wp-content/themes/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();
Agent Concetta Relli
- Mobile : +39 340 11 42 480
Agente Immobiliare
Concetta Relli Luxury Real Estate è specializzata in transazioni di immobili di alta classe. Grazie…
Know More