• borisj

    (@borisj)


    Hi there,

    sometimes the legend for a map appears twice, with one where the checkboxes are not working.

    Screenshot: https://kmeducationhub.de/wp-content/uploads/geoMashup_legend2x.png

    Page: https://kmeducationhub.de/

    This behabior appears on different browsers, so it’s not a browser issue.

    Maybe it’s because I modified the legend’s css style to show inline? I don’t think so.

    I am using the following code:

    <?php echo GeoMashup::map( 'map_content=global&zoom=2&add_google_bar=false&center_lat=25.664303&center_lng=21.045261&auto_info_open=false' ); ?>
    <div><?php echo GeoMashup::term_legend('format=ul') ?></div>

    So I’m not a perfect coder but maybe I should use an “if function exists” and an “elseif” statement to prevent this behavior? Is it term_legend or term_category I should call? Both seem to work but in the documantation it is referred to term_legend only. What about to give the map a name? How to do this, when it is a global map?

    What are your thoughts?

    Thanks in advance!
    Boris

    https://www.ads-software.com/plugins/geo-mashup/

  • The topic ‘Legend sometimes appears twice’ is closed to new replies.