bug fix (regex)

git-svn-id: http://svn.code.sf.net/p/staticmaplite/code@7 3c7674d3-d6c2-4d0e-87b7-95661b9333b9
This commit is contained in:
rac98 2009-10-15 14:04:00 +00:00
parent b93f6c2fd1
commit 604531c014

View File

@ -43,18 +43,28 @@ Class staticMapLite {
protected $markerBaseDir = 'images/markers'; protected $markerBaseDir = 'images/markers';
protected $osmLogo = 'images/osm_logo.png'; protected $osmLogo = 'images/osm_logo.png';
protected $markerPrototypes = array('lighblue' => array('regex'=>'/^lightblue([0-9]+)$/', protected $markerPrototypes = array(// found at http://www.mapito.net/map-marker-icons.html
'lighblue' => array('regex'=>'/^lightblue([0-9]+)$/',
'extension'=>'.png', 'extension'=>'.png',
'shadow'=>false, 'shadow'=>false,
'offsetImage'=>'0,-19', 'offsetImage'=>'0,-19',
'offsetShadow'=>false 'offsetShadow'=>false
), ),
// openlayers std markers
'ol-marker'=> array('regex'=>'/^ol-marker(|-blue|-gold|-green)+$/', 'ol-marker'=> array('regex'=>'/^ol-marker(|-blue|-gold|-green)+$/',
'extension'=>'.png', 'extension'=>'.png',
'shadow'=>'../marker_shadow.png', 'shadow'=>'../marker_shadow.png',
'offsetImage'=>'-10,-25', 'offsetImage'=>'-10,-25',
'offsetShadow'=>'-1,-13' 'offsetShadow'=>'-1,-13'
),
// taken from http://www.visual-case.it/cgi-bin/vc/GMapsIcons.pl
'ylw'=> array('regex'=>'/^(pink|purple|red|ltblu|ylw)-pushpin$/',
'extension'=>'.png',
'shadow'=>'../marker_shadow.png',
'offsetImage'=>'-10,-32',
'offsetShadow'=>'-1,-13'
) )
); );