Adds default image placeholder for http renderer to use as fallback
This commit is contained in:
parent
547782eea5
commit
81919706ea
BIN
assets/default-placeholder.png
Normal file
BIN
assets/default-placeholder.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 10 KiB |
BIN
assets/default-placeholder@2x.png
Normal file
BIN
assets/default-placeholder@2x.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 25 KiB |
@ -94,7 +94,13 @@ var config = {
|
|||||||
proxy: undefined, // the url for a proxy server
|
proxy: undefined, // the url for a proxy server
|
||||||
whitelist: [ // the whitelist of urlTemplates that can be used
|
whitelist: [ // the whitelist of urlTemplates that can be used
|
||||||
'http://{s}.example.com/{z}/{x}/{y}.png'
|
'http://{s}.example.com/{z}/{x}/{y}.png'
|
||||||
]
|
],
|
||||||
|
// image to use as placeholder when urlTemplate is not in the whitelist
|
||||||
|
// if provided the http renderer will use it instead of throw an error
|
||||||
|
fallbackImage: {
|
||||||
|
type: 'fs', // 'fs' and 'url' supported
|
||||||
|
src: __dirname + '/../../assets/default-placeholder.png'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
,millstone: {
|
,millstone: {
|
||||||
|
@ -88,7 +88,13 @@ var config = {
|
|||||||
proxy: undefined, // the url for a proxy server
|
proxy: undefined, // the url for a proxy server
|
||||||
whitelist: [ // the whitelist of urlTemplates that can be used
|
whitelist: [ // the whitelist of urlTemplates that can be used
|
||||||
'http://{s}.example.com/{z}/{x}/{y}.png'
|
'http://{s}.example.com/{z}/{x}/{y}.png'
|
||||||
]
|
],
|
||||||
|
// image to use as placeholder when urlTemplate is not in the whitelist
|
||||||
|
// if provided the http renderer will use it instead of throw an error
|
||||||
|
fallbackImage: {
|
||||||
|
type: 'fs', // 'fs' and 'url' supported
|
||||||
|
src: __dirname + '/../../assets/default-placeholder.png'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
,millstone: {
|
,millstone: {
|
||||||
|
@ -88,7 +88,13 @@ var config = {
|
|||||||
proxy: undefined, // the url for a proxy server
|
proxy: undefined, // the url for a proxy server
|
||||||
whitelist: [ // the whitelist of urlTemplates that can be used
|
whitelist: [ // the whitelist of urlTemplates that can be used
|
||||||
'http://{s}.example.com/{z}/{x}/{y}.png'
|
'http://{s}.example.com/{z}/{x}/{y}.png'
|
||||||
]
|
],
|
||||||
|
// image to use as placeholder when urlTemplate is not in the whitelist
|
||||||
|
// if provided the http renderer will use it instead of throw an error
|
||||||
|
fallbackImage: {
|
||||||
|
type: 'fs', // 'fs' and 'url' supported
|
||||||
|
src: __dirname + '/../../assets/default-placeholder.png'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
,millstone: {
|
,millstone: {
|
||||||
|
@ -90,7 +90,13 @@ var config = {
|
|||||||
'http://{s}.example.com/{z}/{x}/{y}.png',
|
'http://{s}.example.com/{z}/{x}/{y}.png',
|
||||||
// for testing purposes
|
// for testing purposes
|
||||||
'http://{s}.basemaps.cartocdn.com/dark_nolabels/{z}/{x}/{y}.png'
|
'http://{s}.basemaps.cartocdn.com/dark_nolabels/{z}/{x}/{y}.png'
|
||||||
]
|
],
|
||||||
|
// image to use as placeholder when urlTemplate is not in the whitelist
|
||||||
|
// if provided the http renderer will use it instead of throw an error
|
||||||
|
fallbackImage: {
|
||||||
|
type: 'fs', // 'fs' and 'url' supported
|
||||||
|
src: __dirname + '/../../assets/default-placeholder.png'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
,millstone: {
|
,millstone: {
|
||||||
|
Loading…
Reference in New Issue
Block a user