fixes
git-svn-id: http://svn.code.sf.net/p/staticmaplite/code@6 3c7674d3-d6c2-4d0e-87b7-95661b9333b9
This commit is contained in:
parent
919770b1dd
commit
b93f6c2fd1
@ -50,7 +50,7 @@ Class staticMapLite {
|
|||||||
'offsetShadow'=>false
|
'offsetShadow'=>false
|
||||||
),
|
),
|
||||||
'ol-marker'=> array('regex'=>'/^ol-marker(|-blue|-gold|-green)+$/',
|
'ol-marker'=> array('regex'=>'/^ol-marker(|-blue|-gold|-green)+$/',
|
||||||
'extension'=>'ol-marker{1}.png',
|
'extension'=>'.png',
|
||||||
'shadow'=>'../marker_shadow.png',
|
'shadow'=>'../marker_shadow.png',
|
||||||
'offsetImage'=>'-10,-25',
|
'offsetImage'=>'-10,-25',
|
||||||
'offsetShadow'=>'-1,-13'
|
'offsetShadow'=>'-1,-13'
|
||||||
@ -62,7 +62,7 @@ Class staticMapLite {
|
|||||||
protected $useTileCache = true;
|
protected $useTileCache = true;
|
||||||
protected $tileCacheBaseDir = 'cache/tiles';
|
protected $tileCacheBaseDir = 'cache/tiles';
|
||||||
|
|
||||||
protected $useMapCache = false;
|
protected $useMapCache = true;
|
||||||
protected $mapCacheBaseDir = 'cache/maps';
|
protected $mapCacheBaseDir = 'cache/maps';
|
||||||
protected $mapCacheID = '';
|
protected $mapCacheID = '';
|
||||||
protected $mapCacheFile = '';
|
protected $mapCacheFile = '';
|
||||||
@ -183,14 +183,13 @@ Class staticMapLite {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// check required files or set default
|
// check required files or set default
|
||||||
if(!file_exists($this->markerBaseDir.'/'.$markerFilename)){
|
if($markerFilename == '' || !file_exists($this->markerBaseDir.'/'.$markerFilename)){
|
||||||
$markerIndex++;
|
$markerIndex++;
|
||||||
$markerFilename = 'lightblue'.$markerIndex.'.png';
|
$markerFilename = 'lightblue'.$markerIndex.'.png';
|
||||||
$markerImageOffsetX = 0;
|
$markerImageOffsetX = 0;
|
||||||
$markerImageOffsetY = -19;
|
$markerImageOffsetY = -19; }
|
||||||
}
|
|
||||||
|
|
||||||
// create img resource
|
// create img resource
|
||||||
if(file_exists($this->markerBaseDir.'/'.$markerFilename)){
|
if(file_exists($this->markerBaseDir.'/'.$markerFilename)){
|
||||||
|
Loading…
Reference in New Issue
Block a user