Skip to content

Ability to add texture stripes on map ? #14868

@simogeo

Description

@simogeo

I generate a map with echarts.

I'm able to pickup 0 values to colorize them in gray using visualMap property combined with inRange min, max, outOfRange options.

The wanted result is almost there (see the screenshot) !

But I'd like to display elements with 0 values with stripes / pattern - now in gray on the screenshot. How can I achieve this with echarts ?

Example of wanted pattern :
image

See screenshot :
image

I had a look on following documentation - and tried some code with no success :

  • https://echarts.apache.org/en/option.html#visualMap
    
  • https://echarts.apache.org/en/option.html#aria.decal
    
  • https://echarts.apache.org/examples/en/editor.html?c=pie-pattern
    

My visualMap configuration part is as follow :

    visualMap : {
                type: 'continuous', 
                left : 'right',
                top : 'center',
                min : 469,
                max : 144464,
                inRange : {
                    color : colors
                },
                outOfRange: {
                    color:'#f4f4f4'
                },
                text : [ 'Haute', 'Faible' ],
                calculable : true
            },

Additional need : I'd also be happy to be able to see outOfRange in legend.

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidThis issue was not created using the issue template.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions