Changeset 96401 in spip-zone
- Timestamp:
- Apr 2, 2016, 3:23:32 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/gis/trunk/gis_fonctions.php
r92141 r96401 428 428 429 429 if ($icon) { 430 $props .= ",\n\ "icon\": ". json_encode(url_absolue($icon)).",";430 $props .= ",\n\t\t\t\"icon\": ". json_encode(url_absolue($icon)).","; 431 431 list($h,$w) = taille_image($icon); 432 $props .= "\n\ "icon_size\": ". json_encode(array($w,$h)).",";433 $props .= "\n\ "icon_anchor\": ". json_encode(array($w/2,$h)).",";434 $props .= "\n\ "popup_anchor\": ". json_encode(array(1,-round($h/1.2,2)));432 $props .= "\n\t\t\t\"icon_size\": ". json_encode(array($w,$h)).","; 433 $props .= "\n\t\t\t\"icon_anchor\": ". json_encode(array($w/2,$h)).","; 434 $props .= "\n\t\t\t\"popup_anchor\": ". json_encode(array(1,-round($h/1.2,2))); 435 435 } 436 436 437 437 if ($shadow = find_in_path('images/marker_defaut_shadow.png')) { 438 $props .= ",\n\ "shadow\": ". json_encode(url_absolue($shadow));438 $props .= ",\n\t\t\t\"shadow\": ". json_encode(url_absolue($shadow)); 439 439 list($h,$w) = taille_image($shadow); 440 $props .= ",\n\ "shadow_size\": ". json_encode(array($w,$h));440 $props .= ",\n\t\t\t\"shadow_size\": ". json_encode(array($w,$h)); 441 441 } 442 442
Note: See TracChangeset
for help on using the changeset viewer.