Location: PHPKode > projects > OpenBizMap > obm2007.1/maps/pl-woj.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 check function
if(!function_exists('region_value_check'))
{
  function region_value_check($tmp_region)
  {
    return $tmp_region;
  }
}

$region_array=array();
// WOJEWODZTWO = X Y COLOR   
$region_array=array();          
$region_array['ZP']=array(163, 107, 4);       
$region_array['PM']=array(246, 79, 2);                 
$region_array['WM']=array(396, 86, 1);       
$region_array['PD']=array(500, 134, 2);       
$region_array['MA']=array(418, 200, 3);       
$region_array['LU']=array(500, 300, 4);       
$region_array['PK']=array(450, 380, 3);       
$region_array['MP']=array(370, 380, 1);       
$region_array['SW']=array(400, 320, 2);       
$region_array['OP']=array(260, 330, 4);       
$region_array['SL']=array(320, 340, 3);       
$region_array['LB']=array(150, 220, 1);       
$region_array['WP']=array(220, 200, 3);
$region_array['KP']=array(300, 150, 4);
$region_array['DS']=array(200, 300, 2);
$region_array['LD']=array(350, 250, 1);   

$region_alias_array=array();
// ALIAS = INDEX NAME 
$region_alias_array['ZP']='ZP';
$region_alias_array['PM']='PM';
$region_alias_array['WM']='WM';
$region_alias_array['PD']='PD';
$region_alias_array['MA']='MA';
$region_alias_array['LU']='LU';
$region_alias_array['PK']='PK';
$region_alias_array['MP']='MP';
$region_alias_array['SW']='SW';
$region_alias_array['OP']='OP';
$region_alias_array['SL']='SL';
$region_alias_array['LB']='LB';
$region_alias_array['WP']='WP';
$region_alias_array['KP']='KP';
$region_alias_array['DS']='DS';
$region_alias_array['LD']='LD';

$region_alias_array['zachodniopomorskie']='ZP';
$region_alias_array['pomorskie']='PM';
$region_alias_array['warmińsko-mazurskie']='WM';
$region_alias_array['podlaskie']='PD';
$region_alias_array['mazowieckie']='MA';
$region_alias_array['lubelskie']='LU';
$region_alias_array['podkarpackie']='PK';
$region_alias_array['małopolskie']='MP';
$region_alias_array['świętokrzyskie']='SW';
$region_alias_array['opolskie']='OP';
$region_alias_array['śląskie']='SL';
$region_alias_array['lubuskie']='LB';
$region_alias_array['wielkopolskie']='WP';
$region_alias_array['kujawsko-pomorskie']='KP';
$region_alias_array['dolnośląskie']='DS';
$region_alias_array['łódzkie']='LD';

$region_alias_array['Zachodniopomorskie']='ZP';
$region_alias_array['Pomorskie']='PM';
$region_alias_array['Warmińsko-Mazurskie']='WM';
$region_alias_array['Podlaskie']='PD';
$region_alias_array['Mazowieckie']='MA';
$region_alias_array['Lubelskie']='LU';
$region_alias_array['Podkarpackie']='PK';
$region_alias_array['Małopolskie']='MP';
$region_alias_array['Świętokrzyskie']='SW';
$region_alias_array['Opolskie']='OP';
$region_alias_array['Śląskie']='SL';
$region_alias_array['Lubuskie']='LB';
$region_alias_array['Wielkopolskie']='WP';
$region_alias_array['Kujawsko-Pomorskie']='KP';
$region_alias_array['Dolnośląskie']='DS';
$region_alias_array['Łódzkie']='LD';
?>
Return current item: OpenBizMap