Variables | |
$arrArrays = array($HTTP_FORM_VARS, $_REQUEST) | |
$dfMinX = $gpoMap->extent->minx | |
$dfMinY = $gpoMap->extent->miny | |
$dfMaxX = $gpoMap->extent->maxx | |
$dfMaxY = $gpoMap->extent->maxy | |
$dfMinY = doubleval($arrExtent["miny"]) | |
$dfMaxX = doubleval($arrExtent["maxx"]) | |
$dfMaxY = doubleval($arrExtent["maxy"]) | |
$dfHeightPix = intval($MapSizeExtents[2]) | |
$nClickPixY = intval($HTTP_FORM_VARS["KEYMAP_y"]) | |
$dfWidthPix = doubleval($HTTP_FORM_VARS["KEYMAPXSIZE"]) | |
$dfHeightPix = doubleval($HTTP_FORM_VARS["KEYMAPYSIZE"]) | |
$nClickGeoX | |
$nClickGeoY | |
$dfDeltaX = $dfMaxX - $dfMinX | |
$dfDeltaY = $dfMaxY - $dfMinY | |
$dfMiddleX = $nClickGeoX | |
$dfMiddleY = $nClickGeoY | |
$dfNewMinX = $dfMiddleX - ($dfDeltaX/2) | |
$dfNewMinY = $dfMiddleY - ($dfDeltaY/2) | |
$dfNewMaxX = $dfMiddleX + ($dfDeltaX/2) | |
$dfNewMaxY = $dfMiddleY + ($dfDeltaY/2) | |
$dfMinY = doubleval($ProvExtents[2]) | |
$dfMaxX = doubleval($ProvExtents[3]) | |
$dfMaxY = doubleval($ProvExtents[4]) | |
$dfHeightPix = intval($HTTP_FORM_VARS["imageheight"]) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Initial value: GMapPix2Geo($nClickPixX, 0, $dfWidthPix, $dfKeyMapXMin, $dfKeyMapXMax, 0) |
|
Initial value: GMapPix2Geo($nClickPixY, 0, $dfHeightPix, $dfKeyMapYMin, $dfKeyMapYMax, 1) |
|
|