Giter Site home page Giter Site logo

Comments (4)

hiesterd avatar hiesterd commented on June 20, 2024

This may simply be a configuration oversight. I'll take a look into it and report what I find.

from inroads.

hiesterd avatar hiesterd commented on June 20, 2024

Looks like it's not a configuration issue. @inghamn, can you look into this, and let me know what you find?

The desired highlight style for map lines is for their width to be increased by two pixels, and for the Alpha value of the corresponding RGBA color to go up to 1, and then back down to .6.

from inroads.

inghamn avatar inghamn commented on June 20, 2024

We swap the entire style out on hover, and color is part of the style. So, there's only a single hover style, and thus, only a single color used when hovering.

I'm not sure if we can dynamically alter the style of a feature. So, far, I've only been able to swap the entire style on a feature.

from inroads.

hiesterd avatar hiesterd commented on June 20, 2024

What if we define entire styles for these different states in the config? E.g.

    [
        'code'        => 'laneRestriction',
        'name'        => 'Lane Restriction',
        'description' => 'expect short delays, signage in place.',
        'default'     => true,
        'rgba'        => [235, 150, 2, .6],
        'rgbaSolid'        => [235, 150, 2, 1],
    ],

from inroads.

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.