Comments (7)
Thinking about using MUI themes, which would be added to the provider context.
<Map
map={this.myMap}
theme={createMuiTheme({
palette: {
primary: '#0000FF',
},
})}
/>
If you wanted a component to have a different theme, this would be simple:
<Map
theme={createMuiTheme({
palette: {
primary: '#0000FF'
},
})}
>
<Child
theme={createMuiTheme({
palette: {
primary: '#00FF00'
}
})}
/>
</Map>
The context that we already use would make this pretty simple.
I'm open to other ideas. Thoughts?
from ol-kit.
<Map onMapInit={this.onMapInit} fullScreen
theme={
createMuiTheme({
palette: {
type: 'dark'
}
})
}
>
Still a WIP, but going smoother than I was thinking it would.
from ol-kit.
This is dark mode for the controls and Layer panel. I changed the color, because the secondary color for material-ui is obnoxious.
<Map onMapInit={this.onMapInit} fullScreen
theme={
createMuiTheme({
palette: {
type: 'dark',
secondary: {
main: '#90caf9'
}
}
})
}
>
And then, with a one string change, let there be light:
<Map onMapInit={this.onMapInit} fullScreen
theme={
createMuiTheme({
palette: {
type: 'light',
secondary: {
main: '#90caf9'
}
}
})
}
>
from ol-kit.
from ol-kit.
Think I'm going to get TimeSlider
for free, as it's pretty much material anyway.
from ol-kit.
#206 (comment) Good idea.
from ol-kit.
We are deprecating ol-kit.
You may consider these alternatives:
- Use openlayers directly as recent versions of openlayers provides quite a bit of functionality out of box.
- Additionally , you can take a look at these openlayers libraries.
from ol-kit.
Related Issues (20)
- Vector Tile layer class addition HOT 1
- Popup action item onClick should provide ol feature as prop
- React children cannot be safely spread (context menu)
- Layer Styler isn't scrollable
- Layer styler color picker doesn't extend off of the layerpanel/parent HOT 1
- TimeSlider does not have initial values if layer is added after TimeSlider rendered HOT 1
- Allow PopupActionItems to be links HOT 1
- Too many checkboxes in new PR for external contributions HOT 1
- Layer Panel chokes on layers with many children HOT 3
- LayerPanel is always mounted HOT 2
- Have popup actions and details respect height of the popup HOT 1
- Rain Viewer Precip Layer HOT 2
- Url coordinates undefined catch HOT 1
- Fix Layer Panel overflow HOT 2
- Code vulnerabilities
- Cannot read properties of null (reading 'getImageData') HOT 1
- Fix npm audit security vulnerabilities
- Shp file import error HOT 1
- Update OL version to 6.9 HOT 1
- Custom Basemap Styling using mapbox styling? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ol-kit.