mirror of
https://github.com/maputnik/editor.git
synced 2026-06-09 08:47:26 +00:00
Update ModalSources.tsx
This commit is contained in:
@@ -158,7 +158,7 @@ class AddSource extends React.Component<AddSourceProps, AddSourceState> {
|
|||||||
tiles: (source as RasterSourceSpecification).tiles || [`${protocol}//localhost:3000/{x}/{y}/{z}.pbf`],
|
tiles: (source as RasterSourceSpecification).tiles || [`${protocol}//localhost:3000/{x}/{y}/{z}.pbf`],
|
||||||
minzoom: (source as RasterSourceSpecification).minzoom || 0,
|
minzoom: (source as RasterSourceSpecification).minzoom || 0,
|
||||||
maxzoom: (source as RasterSourceSpecification).maxzoom || 14,
|
maxzoom: (source as RasterSourceSpecification).maxzoom || 14,
|
||||||
scheme: (source as VectorSourceSpecification).scheme || 'xyz'
|
scheme: (source as RasterSourceSpecification).scheme || 'xyz'
|
||||||
}
|
}
|
||||||
case 'tilejson_raster-dem': return {
|
case 'tilejson_raster-dem': return {
|
||||||
type: 'raster-dem',
|
type: 'raster-dem',
|
||||||
|
|||||||
Reference in New Issue
Block a user