You can directly integrate the WMS layers from SDMI-GINA into your own custom Google Maps API applications. Here are some of the information you need to get started:

Google’s API documentation on custom layers

The tile layer URLs

If you are want to directly integrate the layers into your application yourself the following URLs can be used. See below for how to use our javascript libraries to avoid writing your own code.

  • SDMI-GINA BDL
    • http://swmha.gina.alaska.edu/tilesrv/bdl/tile/
  • USGS Topos
    • http://swmha.gina.alaska.edu/tilesrv/drg/tile/
  • NOAA Charts
    • http://swmha.gina.alaska.edu/tilesrv/charts/tile/
  • DEM Shaded Relief
    • http://swmha.gina.alaska.edu/tilesrv/shaded_relief_ned/tile/
  • Landsat Pan
    • http://swmha.gina.alaska.edu/tilesrv/landsat/tile/

Easy integration

GINA offers a simple to include javascript library that implements the tile fetching and defines some global variables for each of the tile layers. To use our wmslayers.js you include the following line after requiring the Google Maps API in your javascript section:
<script src=“http://glink.gina.alaska.edu/cdn/1.4/javascripts/gina/wmslayers.js” type=“text/javascript”></script>

If you create your applications similar to the Google Maps API documentation examples, you’ll have a map variable that AlaskaMapped layers can be added to. Typically the line of code to create the variable is:

var map = new GMap2(document.getElementById(“map_canvas”));

Adding the AlaskaMapped layers to the map is done like so:

map.addMapType(SDMI_BDL);
map.addMapType(SDMI_BDL_HYBRID);

The wmslayers.js provides the following global variables for adding the AlaskaMapped layers to your Google Map:

  • SDMI_BDL
    • Just the imagery from the BDL with no line art or labels
  • SDMI_BDL_HYBRID
    • Same as above but with the google line art and labels on top
  • SDMI_TOPO
    • Topographic Maps.
  • SDMI_CHART
    • Nautical Charts (NOT FOR NAVIGATION).
  • SDMI_SRNED
    • Shaded Relief similar to the google physical map layer.
  • SDMI_LSPAN
    • Landsat Pan imagery
  • AOOS_BATH
    • Shaded Relief with the AOOS Bathymetry layer added for sea floor depths.

Annotated source code exampleexample map in action