Is there any way to create two color border in leaflet multipolygon, polygon?
问题 How can I create a custom border to multipolygon with leaflet? I would like to have inner border black and outer red or vice versa. Example picture to show what I mean: Is there any way to do this? 回答1: You can use Leaflet Polyline Offset plugin to draw a duplicate polyline offset by a specified number of pixels and achieve somewhat the desired effect. L.polyline([ [48.3, 0.1], [48.3, 0.7], [48.7, 0.7], [48.7, 0.1], [48.3, 0.1] ], { fillColor: "none", weight: 4, lineJoin: "miter", color: "red