Loading src/functions/rectangle.js +1 −1 Original line number Diff line number Diff line import { propsToLeafletOptions } from "../utils"; import { polygonProps, setupPolygon } from "./polygon"; polygonProps.latLngs.required = false; export const rectangleProps = { ...polygonProps, bounds: { type: Array, required: true, custom: true, }, }; Loading src/playground/views/Rectangle.vue +7 −0 Original line number Diff line number Diff line Loading @@ -12,10 +12,17 @@ [46.342596, -1.328731], [46.241487, -1.190568], [46.234787, -1.358337], [46.294733, -1.234567], ]" :fill="true" color="#35495d" /> <l-rectangle :bounds="[ [46.5, -1], [46.6, -1.1], ]" ></l-rectangle> </l-map> </template> <script> Loading Loading
src/functions/rectangle.js +1 −1 Original line number Diff line number Diff line import { propsToLeafletOptions } from "../utils"; import { polygonProps, setupPolygon } from "./polygon"; polygonProps.latLngs.required = false; export const rectangleProps = { ...polygonProps, bounds: { type: Array, required: true, custom: true, }, }; Loading
src/playground/views/Rectangle.vue +7 −0 Original line number Diff line number Diff line Loading @@ -12,10 +12,17 @@ [46.342596, -1.328731], [46.241487, -1.190568], [46.234787, -1.358337], [46.294733, -1.234567], ]" :fill="true" color="#35495d" /> <l-rectangle :bounds="[ [46.5, -1], [46.6, -1.1], ]" ></l-rectangle> </l-map> </template> <script> Loading