File tree 2 files changed +17
-2
lines changed
2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change 550
550
} ) ;
551
551
} else {
552
552
if ( server . ptype === 'gxp_osmsource' ) {
553
+ var osmLocal = {
554
+ attributions : [
555
+ new ol . Attribution ( {
556
+ html : settings . OsmLocalAttribution
557
+ } ) ,
558
+ ol . source . OSM . ATTRIBUTION
559
+ ] ,
560
+ crossOrigin : null ,
561
+ url : settings . OsmLocalUrl
562
+ } ;
563
+ var osmSource = ( settings . OsmLocalUrl !== 'default' ) ? osmLocal : '' ;
553
564
layer = new ol . layer . Tile ( {
554
565
metadata : {
555
566
serverId : server . id ,
556
567
name : minimalConfig . name ,
557
568
title : fullConfig . Title
558
569
} ,
559
570
visible : minimalConfig . visibility ,
560
- source : new ol . source . OSM ( )
571
+ source : new ol . source . OSM ( osmSource )
561
572
} ) ;
562
573
} else if ( server . ptype === 'gxp_bingsource' ) {
563
574
Original file line number Diff line number Diff line change @@ -9,7 +9,11 @@ var settings = {
9
9
DDPrecision : 8 ,
10
10
WFSVersion : '1.1.0' ,
11
11
WMSVersion : '1.1.1' ,
12
- WPSVersion : '1.0.0'
12
+ WPSVersion : '1.0.0' ,
13
+ //Set to OsmLocalUrl to 'default' for default mapnick osm basemap
14
+ OsmLocalUrl : 'default' ,
15
+ //OsmLocalUrl: 'http://{a-c}.tile.opencyclemap.org/cycle/{z}/{x}/{y}.png',
16
+ OsmLocalAttribution : 'All maps © <a href="http://www.opencyclemap.org/">OpenCycleMap</a>'
13
17
} ;
14
18
15
19
var forEachArrayish = function ( arrayish , funct ) {
You can’t perform that action at this time.
0 commit comments