nicemap_map_projection

nicemap/nicemap.module, line 191

Versions
6
nicemap_map_projection($type)

Helper function that provides a new projection object.

Code

<?php
function nicemap_map_projection($type) {
  switch ($type) {
    case 'equirectangular':
      $projection = new nicemap_equirectangular_projection();
      return $projection;
    case 'mercator':
      $projection = new nicemap_mercator_projection();
      return $projection;
  }
  return false;
}
?>