| @@ 195-228 (lines=34) @@ | ||
| 192 | * @type {String} |
|
| 193 | */ |
|
| 194 | bApiKey = ''; |
|
| 195 | if (bEnable && bApiKey !== '') { |
|
| 196 | baseLyrGroup.getLayers().push( |
|
| 197 | new ol.layer.Tile({ |
|
| 198 | visible: mapOpts.baselyr === "bing road", |
|
| 199 | title: 'bing road', |
|
| 200 | type: 'base', |
|
| 201 | source: new ol.source.BingMaps({ |
|
| 202 | key: bApiKey, |
|
| 203 | imagerySet: 'Road' |
|
| 204 | }) |
|
| 205 | })); |
|
| 206 | ||
| 207 | baseLyrGroup.getLayers().push( |
|
| 208 | new ol.layer.Tile({ |
|
| 209 | visible: mapOpts.baselyr === "bing sat", |
|
| 210 | title: 'bing sat', |
|
| 211 | type: 'base', |
|
| 212 | source: new ol.source.BingMaps({ |
|
| 213 | key: bApiKey, |
|
| 214 | imagerySet: 'Aerial' |
|
| 215 | }) |
|
| 216 | })); |
|
| 217 | ||
| 218 | baseLyrGroup.getLayers().push( |
|
| 219 | new ol.layer.Tile({ |
|
| 220 | visible: mapOpts.baselyr === "bing hybrid", |
|
| 221 | title: 'bing hybrid', |
|
| 222 | type: 'base', |
|
| 223 | source: new ol.source.BingMaps({ |
|
| 224 | key: bApiKey, |
|
| 225 | imagerySet: 'AerialWithLabels' |
|
| 226 | }) |
|
| 227 | })); |
|
| 228 | } |
|
| 229 | ||
| 230 | let /** |
|
| 231 | * Stamen tiles flag. |
|
| @@ 170-203 (lines=34) @@ | ||
| 167 | })); |
|
| 168 | } |
|
| 169 | ||
| 170 | if (bEnable && bApiKey !== '') { |
|
| 171 | baseLyrGroup.getLayers().push( |
|
| 172 | new ol.layer.Tile({ |
|
| 173 | visible: mapOpts.baselyr === "bing road", |
|
| 174 | title: 'bing road', |
|
| 175 | type: 'base', |
|
| 176 | source: new ol.source.BingMaps({ |
|
| 177 | key: bApiKey, |
|
| 178 | imagerySet: 'Road' |
|
| 179 | }) |
|
| 180 | })); |
|
| 181 | ||
| 182 | baseLyrGroup.getLayers().push( |
|
| 183 | new ol.layer.Tile({ |
|
| 184 | visible: mapOpts.baselyr === "bing sat", |
|
| 185 | title: 'bing sat', |
|
| 186 | type: 'base', |
|
| 187 | source: new ol.source.BingMaps({ |
|
| 188 | key: bApiKey, |
|
| 189 | imagerySet: 'Aerial' |
|
| 190 | }) |
|
| 191 | })); |
|
| 192 | ||
| 193 | baseLyrGroup.getLayers().push( |
|
| 194 | new ol.layer.Tile({ |
|
| 195 | visible: mapOpts.baselyr === "bing hybrid", |
|
| 196 | title: 'bing hybrid', |
|
| 197 | type: 'base', |
|
| 198 | source: new ol.source.BingMaps({ |
|
| 199 | key: bApiKey, |
|
| 200 | imagerySet: 'AerialWithLabels' |
|
| 201 | }) |
|
| 202 | })); |
|
| 203 | } |
|
| 204 | ||
| 205 | if (stamenEnable) { |
|
| 206 | baseLyrGroup.getLayers().push( |
|