function markerClick(marker) {
	// If a marker is being edited, reset it. This has to be done before
	// currentClickedMarker is changed
	if (isMarkerBeingMoved) {
		resetMarkerPos();
		isMarkerBeingMoved = false;
	}

	currentClickedMarker = marker;
	$("#openMoreInfo").attr("href", "/api/houses/page/?id=" + currentClickedMarker.info.id)

	// Sets the "Edit" to the relevant marker link, obviously should only happen if user is an admin
	if (IS_USER_STAFF) {
		$("#adminEdit").attr("href", "/cms/familyhouses/marker/edit/" + currentClickedMarker.info.id)
	}

	setInfoWinContent(currentClickedMarker.info);
	infoWindow.open(map, currentClickedMarker);
}
// or a click has to be simulated
or a click has to be simulated
or a click has to be simulated
function markerClick(marker) {
	if (isMarkerBeingMoved) {
		resetMarkerPos();
		isMarkerBeingMoved = false;
	}
	currentClickedMarker = marker;
	$("#openMoreInfo").attr("href", "/api/houses/page/?id=" + currentClickedMarker.info.id)
	if (IS_USER_STAFF) {
		$("#adminEdit").attr("href", "/cms/familyhouses/marker/edit/" + currentClickedMarker.info.id)
	}
	setInfoWinContent(currentClickedMarker.info);
	infoWindow.open(map, currentClickedMarker);
}
function markerClick ( marker ) { if ( isMarkerBeingMoved ) { resetMarkerPos ( ) ; isMarkerBeingMoved = false ; } currentClickedMarker = marker ; $ ( "#openMoreInfo" ) . attr ( "href" , "/api/houses/page/?id=" + currentClickedMarker . info . id ) if ( IS_USER_STAFF ) { $ ( "#adminEdit" ) . attr ( "href" , "/cms/familyhouses/marker/edit/" + currentClickedMarker . info . id ) } setInfoWinContent ( currentClickedMarker . info ) ; infoWindow . open ( map , currentClickedMarker ) ; }
or a click has to be simulated
or a click has to be simulated
// If a marker is being edited, reset it. This has to be done before // currentClickedMarker is changed // Sets the "Edit" to the relevant marker link, obviously should only happen if user is an admin