From 604531c0144fcd7440f590d560e31f837ee4f61e Mon Sep 17 00:00:00 2001 From: rac98 Date: Thu, 15 Oct 2009 14:04:00 +0000 Subject: [PATCH] bug fix (regex) git-svn-id: http://svn.code.sf.net/p/staticmaplite/code@7 3c7674d3-d6c2-4d0e-87b7-95661b9333b9 --- staticmap.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/staticmap.php b/staticmap.php index 31b1a7d..8350258 100644 --- a/staticmap.php +++ b/staticmap.php @@ -43,18 +43,28 @@ Class staticMapLite { protected $markerBaseDir = 'images/markers'; 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', 'shadow'=>false, 'offsetImage'=>'0,-19', 'offsetShadow'=>false ), + // openlayers std markers 'ol-marker'=> array('regex'=>'/^ol-marker(|-blue|-gold|-green)+$/', 'extension'=>'.png', 'shadow'=>'../marker_shadow.png', 'offsetImage'=>'-10,-25', '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' ) + );