Project

General

Profile

« Previous | Next » 

Revision 25f440dc

Added by Andreas Kohlbecker over 4 years 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