Commit 88d2eb2
committed
mapbox coords: get canvas size from style, not attributes
The width and height attributes are expanded by devicePixelRatio,
but the style width and height are in css pixels.1 parent 4eb9a28 commit 88d2eb2
1 file changed
+6
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
727 | 727 | | |
728 | 728 | | |
729 | 729 | | |
730 | | - | |
731 | | - | |
732 | | - | |
733 | | - | |
734 | | - | |
735 | | - | |
736 | | - | |
737 | | - | |
738 | | - | |
739 | | - | |
740 | | - | |
741 | | - | |
742 | | - | |
743 | | - | |
744 | | - | |
745 | | - | |
746 | | - | |
| 730 | + | |
| 731 | + | |
747 | 732 | | |
748 | 733 | | |
749 | 734 | | |
| |||
752 | 737 | | |
753 | 738 | | |
754 | 739 | | |
755 | | - | |
756 | | - | |
757 | | - | |
758 | | - | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
759 | 744 | | |
760 | 745 | | |
761 | 746 | | |
| |||
0 commit comments