Module: MapLayers

Defined in:
lib/map_layers.rb,
lib/map_layers/map.rb,
lib/map_layers/wfs.rb,
lib/map_layers/config.rb,
lib/map_layers/georss.rb,
lib/map_layers/feature.rb,
lib/map_layers/railtie.rb,
lib/map_layers/version.rb,
lib/map_layers/js_wrapper.rb,
lib/map_layers/view_helpers.rb

Overview

:nodoc:

Defined Under Namespace

Modules: ClassMethods, GeoRSS, JsWrapper, Proxy, Rest, ViewHelpers, WFS Classes: Config, Feature, JsClass, JsExpr, JsGenerator, JsVar, Map, Railtie

Constant Summary collapse

GOOGLE =
OpenLayers::Layer::Google.new("Google Street")
GOOGLE_SATELLITE =
OpenLayers::Layer::Google.new("Google Satelite", {:type => :G_SATELLITE_MAP})
GOOGLE_HYBRID =
OpenLayers::Layer::Google.new("Google Hybrid", {:type => :G_HYBRID_MAP})
GOOGLE_PHYSICAL =
OpenLayers::Layer::Google.new("Google Physical", {:type => :G_PHYSICAL_MAP})
VE_ROAD =
OpenLayers::Layer::VirtualEarth.new("Virtual Earth Raods", {:type => JsExpr.new('VEMapStyle.Road')})
VE_AERIAL =
OpenLayers::Layer::VirtualEarth.new("Virtual Earth Aerial", {:type => JsExpr.new('VEMapStyle.Aerial')})
VE_HYBRID =
OpenLayers::Layer::VirtualEarth.new("Virtual Earth Hybrid", {:type => JsExpr.new('VEMapStyle.Hybrid')})
YAHOO =
OpenLayers::Layer::Yahoo.new("Yahoo Street")
YAHOO_SATELLITE =
OpenLayers::Layer::Yahoo.new("Yahoo Satelite", {:type => :YAHOO_MAP_SAT})
YAHOO_HYBRID =
OpenLayers::Layer::Yahoo.new("Yahoo Hybrid", {:type => :YAHOO_MAP_HYB})
MULTIMAP =
OpenLayers::Layer::MultiMap.new("MultiMap")
OSM_MAPNIK =
OpenLayers::Layer::OSM.new("OpenStreetMap")
OSM_TELASCIENCE =
OpenLayers::Layer::WMS.new("OpenStreetMap",
[
  "http://t1.hypercube.telascience.org/tiles?",
  "http://t2.hypercube.telascience.org/tiles?",
  "http://t3.hypercube.telascience.org/tiles?",
  "http://t4.hypercube.telascience.org/tiles?"
],
{:layers => 'osm-4326', :format => 'image/png' } )
GEOPOLE_OSM =
OpenLayers::Layer::TMS.new("Geopole Street Map",
    "http://tms.geopole.org/",
    {:layername => 'geopole_street', :type => 'png', :maxResolution => 0.703125,
:attribution => 'Map data <a href="http://creativecommons.org/licenses/by-sa/2.0/">CCBYSA</a> 2009 <a href="http://openstreetmap.org/">OpenStreetMap.org</a>'})
NASA_GLOBAL_MOSAIC =
OpenLayers::Layer::WMS.new("NASA Global Mosaic",
[
  "http://t1.hypercube.telascience.org/cgi-bin/landsat7",
  "http://t2.hypercube.telascience.org/cgi-bin/landsat7",
  "http://t3.hypercube.telascience.org/cgi-bin/landsat7",
  "http://t4.hypercube.telascience.org/cgi-bin/landsat7"
],
{:layers => 'landsat7'} )
BLUE_MARBLE_NG =
OpenLayers::Layer::WMS.new("Blue Marble NG",
"http://wms.telascience.org/cgi-bin/ngBM_wms",
{:layers => 'world_topo_bathy'} )
METACARTA_VMAP0 =
OpenLayers::Layer::WMS.new("OpenLayers WMS",
"http://labs.metacarta.com/wms/vmap0",
{:layers => 'basic'} )
WORLDWIND =
OpenLayers::Layer::WorldWind.new("World Wind LANDSAT",
"http://worldwind25.arc.nasa.gov/tile/tile.aspx", 2.25, 4, {:T => "105"}, {:tileSize => OpenLayers::Size.new(512,512)})
WORLDWIND_URBAN =
OpenLayers::Layer::WorldWind.new("World Wind Urban",
"http://worldwind25.arc.nasa.gov/tile/tile.aspx", 0.8, 9, {:T => "104"}, {:tileSize => OpenLayers::Size.new(512,512)})
WORLDWIND_BATHY =
OpenLayers::Layer::WorldWind.new("World Wind Bathymetry",
"http://worldwind25.arc.nasa.gov/tile/tile.aspx", 36, 4, {:T => "bmng.topo.bathy.200406"}, {:tileSize => OpenLayers::Size.new(512,512)})
VERSION =
"0.0.5"

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object

extend the class that include this with the methods in ClassMethods


11
12
13
# File 'lib/map_layers.rb', line 11

def self.included(base)
  base.extend(ClassMethods)
end

Instance Method Details

#map_layers_configObject


15
16
17
# File 'lib/map_layers.rb', line 15

def map_layers_config
  self.class.map_layers_config
end