Browse Source

fix centering for any icon with "dot" in the name

main
Aaron Parecki 8 years ago
parent
commit
61bda71c6d
No known key found for this signature in database GPG Key ID: 276C2817346D6056
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      p3k/geo/StaticMap.php

+ 2
- 2
p3k/geo/StaticMap.php View File

@ -478,8 +478,8 @@ function generate($params, $filename, $assetPath) {
// Add markers // Add markers
foreach($markers as $marker) { foreach($markers as $marker) {
// Icons that start with 'dot-' do not have a shadow
$shadow = !preg_match('/^dot-/', $marker['icon']);
// Icons that have 'dot' in the name do not have a shadow and center vertically and horizontally
$shadow = !preg_match('/dot/', $marker['icon']);
if($width < 120 || $height < 120) { if($width < 120 || $height < 120) {
$shrinkFactor = 1.5; $shrinkFactor = 1.5;

Loading…
Cancel
Save