#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) )