Project

General

Profile

Revision 25f440dc

ID25f440dce6607fae5b6460c46810d1771ce2d67f
Parent efff6ee1
Child 5f188298

Added by Andreas Kohlbecker 9 months ago

ref #8351 supressing specimen map in case of no location points

View differences:

modules/cdm_dataportal/cdm_dataportal.module
1938 1938
        }
1939 1939
      }
1940 1940

  
1941
      // os=1:c/ff0000/10/noLabel&od=1:52.52079,13.57781|-43.46333333333333,172.60355&legend=0
1942
      $occurrence_query = 'os=1:c/ff0000/10/noLabel&od=1:' . join('|', $points) . '&legend=0';
1943
      // $occurrence_query = 'os=1:c/ff0000/10/noLabel&od=1:52.52079,13.57781|-43.46333333333333,172.60355&legend=0';
1944
      $legend_format_query = null;
1945
      $distribution_query = NULL;
1946
      $content['map'] = compose_map('specimens', $occurrence_query, $distribution_query, $legend_format_query, array());
1941
      if(count($points) > 0){
1942
        // os=1:c/ff0000/10/noLabel&od=1:52.52079,13.57781|-43.46333333333333,172.60355&legend=0
1943
        $occurrence_query = 'os=1:c/ff0000/10/noLabel&od=1:' . join('|', $points) . '&legend=0';
1944
        // $occurrence_query = 'os=1:c/ff0000/10/noLabel&od=1:52.52079,13.57781|-43.46333333333333,172.60355&legend=0';
1945
        $legend_format_query = null;
1946
        $distribution_query = NULL;
1947
        $content['map'] = compose_map('specimens', $occurrence_query, $distribution_query, $legend_format_query, array());
1948
      }
1947 1949
    }
1948 1950

  
1949 1951
    // registrations

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)