Canadian Base maps from Natural Resources Canada, using ESRI Javascript APIs and also leafletJS
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
.editorconfig
.gitattributes
.gitignore
.jscsrc
.jshintrc
.travis.yml
CONTRIBUTING.md
LICENSE
README.md
gulpfile.js
package.json

README.md

Overview

Canadian Base Maps using ESRI Javascript API (https://developers.arcgis.com/javascript/jsapi/), with information from here : http://geogratis.gc.ca/geogratis/DevCorner

Built using (barely) Google Web Starter Kit tooling (https://developers.google.com/web/starter-kit/) , meaning the codes are inside the app folder

index.html

Basemap = Geometry Only, Cached, Web Mercator: http://geoappext.nrcan.gc.ca/arcgis/rest/services/BaseMaps/CBMT_CBCT_GEOM_3857/MapServer

Text Overlay = English Text Only, Cached, Web Mercator: http://geoappext.nrcan.gc.ca/arcgis/rest/services/BaseMaps/CBMT_TXT_3857/MapServer

Hill Shader = Hillshade, Cached, LCC: http://geoappext.nrcan.gc.ca/arcgis/rest/services/BaseMaps/CBME_CBCE_HS_RO_3978/MapServer

Since the hill shader (EPSG:3978) is a different projection compared to the basemap (web mercator) so some trickery has to be performed by implementing a sublass of esri.layers.DynamicMapServiceLayer

lcc.html

Lambert Conformal Conic projection (EPSG:3978)

Basemap = English Combined, Cached, LCC: http://geoappext.nrcan.gc.ca/arcgis/rest/services/BaseMaps/CBMT3978/MapServer

Hill Shader = Hillshade, Cached, LCC: http://geoappext.nrcan.gc.ca/arcgis/rest/services/BaseMaps/CBME_CBCE_HS_RO_3978/MapServer

Much simpler, but the locate button didn't work perfectly until adding using GeometryService

wms.html

Lambert Conformal Conic projection (EPSG:3978)

Basemap = WMS: http://wms.ess-ws.nrcan.gc.ca/wms/toporama_en or http://wms.ess-ws.nrcan.gc.ca/wms/toporama_fr

Hill Shader = Hillshade, Cached, LCC: http://geoappext.nrcan.gc.ca/arcgis/rest/services/BaseMaps/CBME_CBCE_HS_RO_3978/MapServer

Using WMS as a base layer

Much simpler, but the locate button didn't work perfectly until adding using GeometryService

lcc-leaflet.html

Lambert Conformal Conic projection (EPSG:3978)

Basemap = English Combined, Cached, LCC: http://geoappext.nrcan.gc.ca/arcgis/rest/services/BaseMaps/CBMT3978/MapServer

Hill Shader = Hillshade, Cached, LCC: http://geoappext.nrcan.gc.ca/arcgis/rest/services/BaseMaps/CBME_CBCE_HS_RO_3978/MapServer

Using leafletJS mapping engine

google.html

Web Mercator (EPSG:3857)

Basemap = English Combined, Cached, Web Mercator: http://geoappext.nrcan.gc.ca/arcgis/rest/services/BaseMaps/CBMT_CBCT_GEOM_3857/MapServer

Using Google Maps v3 API

License

Apache 2.0