-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Light underground floors support (#26)
* Light underground floors support * 1.3.0
- Loading branch information
Showing
10 changed files
with
243 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import type { GeoJsonSourceOptions } from '@2gis/mapgl/types'; | ||
|
||
export const GROUND_COVERING_SOURCE_DATA: GeoJsonSourceOptions['data'] = { | ||
type: 'Feature', | ||
properties: {}, | ||
geometry: { | ||
type: 'Polygon', | ||
coordinates: [ | ||
[ | ||
[-180, -85], | ||
[180, -85], | ||
[180, 85], | ||
[-180, 85], | ||
[-180, -85], | ||
], | ||
], | ||
}, | ||
}; | ||
|
||
export const GROUND_COVERING_SOURCE_PURPOSE = '__mapglPlugins_mapgl-gltf'; | ||
export const GROUND_COVERING_LAYER = { | ||
id: '__mapglPlugins_mapgl-gltf', | ||
type: 'polygon', | ||
style: { | ||
color: ['to-color', ['sourceAttr', 'color']], | ||
}, | ||
filter: [ | ||
'all', | ||
['match', ['sourceAttr', 'purpose'], [GROUND_COVERING_SOURCE_PURPOSE], true, false], | ||
['to-boolean', ['sourceAttr', 'color']], | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.