Code Monkey home page Code Monkey logo

Comments (7)

ntatko avatar ntatko commented on May 13, 2024

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.

ntatko avatar ntatko commented on May 13, 2024

Screen Shot 2020-06-30 at 03 34 13

Prototype of the layer panel with the default dark theme.
<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.

ntatko avatar ntatko commented on May 13, 2024

This is dark mode for the controls and Layer panel. I changed the color, because the secondary color for material-ui is obnoxious.
Screen Shot 2020-07-01 at 00 06 57
Screen Shot 2020-07-01 at 00 06 39

<Map onMapInit={this.onMapInit} fullScreen
  theme={
    createMuiTheme({
      palette: {
        type: 'dark',
        secondary: {
          main: '#90caf9'
        }
      }
    })
  }
>

And then, with a one string change, let there be light:

Screen Shot 2020-07-01 at 00 10 35

Screen Shot 2020-07-01 at 00 10 46

<Map onMapInit={this.onMapInit} fullScreen
  theme={
    createMuiTheme({
      palette: {
        type: 'light',
        secondary: {
          main: '#90caf9'
        }
      }
    })
  }
>

from ol-kit.

ntatko avatar ntatko commented on May 13, 2024

Popup's done.
Screen Shot 2020-07-01 at 01 42 31

from ol-kit.

ntatko avatar ntatko commented on May 13, 2024

Think I'm going to get TimeSlider for free, as it's pretty much material anyway.

from ol-kit.

ntatko avatar ntatko commented on May 13, 2024

#206 (comment) Good idea.

from ol-kit.

akuma1 avatar akuma1 commented on May 13, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.