Location: PHPKode > projects > OpenBizMap > obm2007.1/maps/pl-postal.php
<?php
/*
OpenDataBag - Data Web Interface
Copyright (C) 2004 Nawara

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
*/

//Map definition file

$region_latitude_min=48;
$region_latitude_max=55;
$region_longitude_min=12;
$region_longitude_max=25;

//Google Maps scale
$region_map_scale=6;

$region_array=array();       
// ZIP = X Y COLOR   
$region_array=array();          
$region_array['00']=array(414, 208, 4);       
$region_array['05']=array(426, 232, 2);                 
$region_array['06']=array(412, 155, 1);       
$region_array['07']=array(441, 171, 2);       
$region_array['08']=array(458, 204, 3);       
$region_array['09']=array(372, 180, 4);       
$region_array['10']=array(409, 88, 3);       
$region_array['12']=array(450, 111, 1);       
$region_array['13']=array(369, 119, 2);       
$region_array['14']=array(366, 71, 4);       
$region_array['16']=array(514, 115, 3);       
$region_array['17']=array(513, 169, 1);       
$region_array['18']=array(475, 137, 3);
$region_array['19']=array(477, 80, 4);
$region_array['20']=array(407, 303, 1);
$region_array['21']=array(496, 240, 2);
$region_array['22']=array(521, 306, 3);
$region_array['23']=array(494, 328, 4);
$region_array['24']=array(465, 289, 1);
$region_array['26']=array(394, 272, 2);
$region_array['27']=array(434, 294, 3);
$region_array['28']=array(405, 334, 4);
$region_array['29']=array(374, 311, 1);
$region_array['32']=array(365, 368, 2);
$region_array['33']=array(396, 399, 3);
$region_array['34']=array(341, 397, 4);
$region_array['36']=array(454, 364, 1);
$region_array['37']=array(494, 371, 2);
$region_array['38']=array(468, 412, 3);
$region_array['39']=array(420, 362, 4);
$region_array['41']=array(312, 350, 1);
$region_array['42']=array(325, 317, 2);
$region_array['43']=array(303, 378, 3);
$region_array['44']=array(292, 355, 4);
$region_array['46']=array(274, 306, 1);
$region_array['47']=array(268, 341, 2);
$region_array['48']=array(240, 339, 3);
$region_array['49']=array(246, 312, 4);
$region_array['54']=array(204, 263, 2);
$region_array['55']=array(213, 293, 1); //*
$region_array['56']=array(240, 274, 2);
$region_array['57']=array(208, 334, 3);
$region_array['58']=array(171, 303, 4);
$region_array['59']=array(160, 270, 1);
$region_array['61']=array(224, 184, 2);
$region_array['62']=array(277, 202, 3);
$region_array['63']=array(255, 238, 4);
$region_array['64']=array(201, 162, 1); 
$region_array['65']=array(215, 218, 1); //*
$region_array['66']=array(155, 201, 2);
$region_array['67']=array(182, 215, 3);
$region_array['68']=array(140, 238, 4);
$region_array['69']=array(147, 174, 1);
$region_array['72']=array(153, 87, 2);
$region_array['73']=array(158, 124, 3);
$region_array['74']=array(126, 144, 4);
$region_array['76']=array(250, 42, 1);
$region_array['77']=array(236, 80, 2);
$region_array['78']=array(193, 93, 3);
$region_array['82']=array(327, 82, 4);
$region_array['83']=array(297, 70, 1);
$region_array['84']=array(289, 34, 2);
$region_array['86']=array(298, 104, 3);
$region_array['87']=array(326, 150, 4);
$region_array['88']=array(280, 153, 1);
$region_array['89']=array(265, 116, 2);
$region_array['95']=array(336, 239, 3);
$region_array['96']=array(370, 237, 4);
$region_array['97']=array(337, 278, 1);
$region_array['98']=array(301, 269, 2);
$region_array['99']=array(334, 213, 3);

//region check function
if(!function_exists('region_value_check'))
{
  function region_value_check($tmp_region)
  {
    global $region_array;

    $tmp_region=substr($tmp_region,0,2);
    $quit=10;
    while(!isset($tmp_region) and $quit)
    {
      $tmp_region=$tmp_region-1;
      $tmp_region=substr('00'.$tmp_region,-2);
      $quit--;
    }

    return $tmp_region;
  }
}

$region_alias_array=array();
// ALIAS = INDEX NAME 



?>
Return current item: OpenBizMap