-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: export map control types (#74)
* Export map control types
- Loading branch information
Showing
5 changed files
with
33 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import L from 'leaflet' | ||
import fitBounds from './FitBounds' | ||
import search from './Search' | ||
import measure from './Measure' | ||
|
||
export default { | ||
fitBounds, | ||
search, | ||
measure, | ||
zoom: L.control.zoom, | ||
scale: L.control.scale, | ||
} |
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 |
---|---|---|
@@ -1,12 +1,16 @@ | ||
import Map from "./Map"; | ||
import types from './layerTypes'; | ||
import supportedLayers from './layers/layerTypes'; | ||
import supportedControls from './controls/controlTypes'; | ||
import "../scss/gis-api.scss"; | ||
|
||
// When this file was included in EarthEngine.js it caused error when running tests | ||
// This file is never loaded by test scripts | ||
import "script-loader!@google/earthengine/build/ee_api_js"; | ||
|
||
// Export supported layer types as an array | ||
export const layerTypes = Object.keys(types); | ||
export const layerTypes = Object.keys(supportedLayers); | ||
|
||
// Export supported control types as an array | ||
export const controlTypes = Object.keys(supportedControls); | ||
|
||
export default Map; |
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