[PLUGINS] ~maj gis v4.26.1-->4.26.10
[lhc/web/clavette_www.git] / www / plugins / gis / gis_fonctions.php
index 1c22da8..ac757ca 100755 (executable)
@@ -418,8 +418,11 @@ function gis_icon_properties($img=''){
                $props .= "\n\"popup_anchor\": ". json_encode(array(1,-$h/1.2));
        }
        
-       if ($shadow = find_in_path('images/marker_defaut_shadow.png'))
+       if ($shadow = find_in_path('images/marker_defaut_shadow.png')) {
                $props .= ",\n\"shadow\": ". json_encode(url_absolue($shadow));
+               list($h,$w) = taille_image($shadow);
+               $props .= ",\n\"shadow_size\": ". json_encode(array($w,$h));
+       }
        
        return $props;
 }