nicemap_projections

nicemap/nicemap.module, line 227

Versions
6
nicemap_projections()

Provides an array of projection options -- usable for form selects.

▾ 4 functions call nicemap_projections()

nicemap_get_projection in nicemap/nicemap.module
Helper function that determines the correct projection.
nicemap_get_projection in nicemap/nicemap.module
Helper function that determines the correct projection.
nicemap_settings in nicemap/nicemap_admin.inc
Master settings form and testing page
nicemap_settings in nicemap/nicemap_admin.inc
Master settings form and testing page

Code

<?php
function nicemap_projections() {
  return array(
    'EPSG:3395' => array(
      'mercator' => t('Mercator'),
      'class' => 'nicemap_mercator_projection',
    ),
    'EPSG:4326' => array(
      'name' => t('Equirectangular'),
      'class' => 'nicemap_equirectangular_projection',
    ),
    'EPSG:900913' => array(
      'mercator' => t('Google Mercator'),
      'class' => 'nicemap_mercator_projection', // Don't have a definition yet, so we fall back.
    ),
  );
}
?>