GeoJsonLayer: How to ensure outline of a certain polygon is rendered above all others? #9055
-
I want to use Here is a Codepen demonstrating the issue. In this example Norway is the selected country (I've hardcoded that for this prototype), and as you can see the white outlines of neighbouring countries are obscuring the black outline of Norway: So is there anyway to ensure that the outline of the selected polygon is drawn above the other outlines in a scenario like this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
If it is just one polygon you can always use brute force and draw a second GeoJSON layer with just that polygon. There are several techniques to make sure it ends up on top.
|
Beta Was this translation helpful? Give feedback.
If it is just one polygon you can always use brute force and draw a second GeoJSON layer with just that polygon. There are several techniques to make sure it ends up on top.