Changeset 39829 in spip-zone


Ignore:
Timestamp:
Aug 13, 2010, 4:36:04 PM (9 years ago)
Author:
berio@…
Message:

The json marker didn't show up when there wasn't a icon_market mot associated to an article. Fixed.

Location:
_plugins_/googlemap_api
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/googlemap_api/inc_json_public_map.html

    r39679 r39829  
    66        URLbase = "[(#EVAL{_DIR_PLUGIN_GEOMAP}|url_absolue)]";
    77        URLbaseGis = "[(#EVAL{_DIR_PLUGIN_GIS}|url_absolue)]";
    8         MarkerImgBase = "[(#CHEMIN{img_pack/correxir.png})]";
     8        MarkerImgBase = "[(#CHEMIN{img_pack/correxir.png}|url_absolue)]";
    99        MarkerBaseWidth = "[(#CHEMIN{img_pack/correxir.png}|largeur)]";
    1010        MarkerBaseHeight = "[(#CHEMIN{img_pack/correxir.png}|hauteur)]";
  • _plugins_/googlemap_api/js/geomap.js

    r39679 r39829  
    8787                var point = new GPoint(lng,lat);
    8888                var icono_categoria = new GIcon();
    89                 icono_categoria.image = (jsonItem.icon != "" ? jsonItem.icon : MarkerImgBase);
     89                icono_categoria.image = (jsonItem.icon ? jsonItem.icon : MarkerImgBase);
    9090                icono_categoria.shadow = URLbase + "img_pack/shadow.png";
    9191                icono_categoria.iconSize = new GSize(MarkerBaseWidth, MarkerBaseHeight);
Note: See TracChangeset for help on using the changeset viewer.