ROGUE-JCTD / MapLoom

MapLoom is a web mapping client based on OpenLayers 3. It provides full-featured editing capabilities for data stores in GeoServer - including PostGIS and GeoGig. For GeoGig layers, it lets you view history, and sync with other GeoGig repositories
MIT License
70 stars 66 forks source link

Added ability to customize the OSM url #179

Closed BerryDaniel closed 8 years ago

BerryDaniel commented 8 years ago

Feature addition #176

Added two setting variables:

var settings = {
  coordinateDisplay: coordinateDisplays.DMS,
  DDPrecision: 8,
  WFSVersion: '1.1.0',
  WMSVersion: '1.1.1',
  WPSVersion: '1.0.0',
  //Set to OsmLocalUrl to 'default' for default mapnick osm basemap
  OsmLocalUrl: 'default',
  //OsmLocalUrl: 'http://{a-c}.tile.opencyclemap.org/cycle/{z}/{x}/{y}.png',
  OsmLocalAttribution: 'All maps &copy; <a href="http://www.opencyclemap.org/">OpenCycleMap</a>'
};

OsmLocalAttribution is only used if OsmLocalUrl is not 'default'

Screenshot displays opencyclemap.org being used, instead of default mapnik.

screen shot 2015-12-24 at 1 39 25 am