#set( $imageWidth = 100 ) #set( $mapWidth = 500 ) #set( $mapHeight = 300 ) #set( $fullMapWidth = $imageBuilder.calculateFullMapWidth($locationsRegion.getPoint().longitude, $locationsRegion.east, $mapWidth) ) #set( $fullMapHeight = $imageBuilder.calculateFullMapHeight($locationsRegion.getPoint().latitude, $locationsRegion.north, $mapHeight) ) #set( $fullMapWidth = $fullMapWidth * 2 ) #set( $fullMapHeight = $fullMapHeight * 2 ) #set( $locationX = $imageBuilder.calculatePixelWidth($location.longitude, $fullMapWidth, $fullMapHeight) ) #set( $locationY = $imageBuilder.calculatePixelHeight($location.latitude, $fullMapWidth, $fullMapHeight) ) #set( $mapY = $locationY - ($mapHeight / 2) ) #set( $mapX = $locationX - ($mapWidth / 2) ) #set( $detailMapURL = $imageBuilder.getSubMapRelativeURL($mapX, $mapY, $mapWidth, $mapHeight, $fullMapWidth, $fullMapHeight) ) #set( $dotXOffset = -18 ) #set( $dotYOffset = -38 )

$!{location.name}

detail map $!{imageBuilder.attributeEncode($location.name)}
#foreach( $image in $location.everyImage ) #set( $imageHeight = $imageBuilder.getHeightOfFixedWidthImage($image, $imageWidth) ) #set( $imageName = $imageBuilder.attributeEncode($image.getName()) ) #set( $imageSrc = $imageBuilder.getFixedWidthImageRelativeURL($image, $imageWidth) ) $!{imageName} #end