Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Canvas: call ctx.setLineDash in _fillStroke #5454

Merged
merged 3 commits into from
Apr 20, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Debug: add simple example reproducing #5182
  • Loading branch information
TeXitoi committed Apr 12, 2017
commit 439bc1fa3912bf3017f645a6ebac11509ab9d283
37 changes: 37 additions & 0 deletions debug/vector/inherit-dashArray.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<!DOCTYPE html>
<html>
<head>
<title>Leaflet debug page</title>

<link rel="stylesheet" href="../../dist/leaflet.css" />

<link rel="stylesheet" href="../css/screen.css" />

<script src="../leaflet-include.js"></script>
</head>
<body>
<div id="map" style="width: 800px; height: 600px; border: 1px solid #ccc"></div>

<script>
var map = L.map('map', {
center: [20, 20],
zoom: 3,
preferCanvas: true
});
L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
minZoom: 1,
maxZoom: 17,
label: 'open street map'
}).addTo(map);
var points = [
[0, 0],
[0, 42],
[42, 42],
[0, 0]
];
L.polygon([points, []], {dashArray: '5, 5'}).addTo(map);
L.circleMarker([42, 0], {color: 'red'}).addTo(map);
</script>

</body>
</html>