git-svn-id: http://svn.code.sf.net/p/staticmaplite/code@6 3c7674d3-d6c2-4d0e-87b7-95661b9333b9
This commit is contained in:
rac98 2009-10-15 13:42:55 +00:00
parent 919770b1dd
commit b93f6c2fd1

View File

@ -50,7 +50,7 @@ Class staticMapLite {
'offsetShadow'=>false
),
'ol-marker'=> array('regex'=>'/^ol-marker(|-blue|-gold|-green)+$/',
'extension'=>'ol-marker{1}.png',
'extension'=>'.png',
'shadow'=>'../marker_shadow.png',
'offsetImage'=>'-10,-25',
'offsetShadow'=>'-1,-13'
@ -62,7 +62,7 @@ Class staticMapLite {
protected $useTileCache = true;
protected $tileCacheBaseDir = 'cache/tiles';
protected $useMapCache = false;
protected $useMapCache = true;
protected $mapCacheBaseDir = 'cache/maps';
protected $mapCacheID = '';
protected $mapCacheFile = '';
@ -185,12 +185,11 @@ Class staticMapLite {
}
// check required files or set default
if(!file_exists($this->markerBaseDir.'/'.$markerFilename)){
if($markerFilename == '' || !file_exists($this->markerBaseDir.'/'.$markerFilename)){
$markerIndex++;
$markerFilename = 'lightblue'.$markerIndex.'.png';
$markerImageOffsetX = 0;
$markerImageOffsetY = -19;
}
$markerImageOffsetY = -19; }
// create img resource
if(file_exists($this->markerBaseDir.'/'.$markerFilename)){