Skip to content

Commit

Permalink
Add doc on the navigation control.
Browse files Browse the repository at this point in the history
  • Loading branch information
francois2metz committed May 13, 2024
1 parent eed87cb commit 7288a0f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
9 changes: 9 additions & 0 deletions lib/components/controls/navigation.control.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,17 @@ export default defineComponent({
return PositionValues.indexOf(v) !== -1;
},
},
/**
* If true the compass button is included.
*/
showCompass: { type: Boolean as PropType<boolean>, default: true },
/**
* If true the zoom-in and zoom-out buttons are included.
*/
showZoom: { type: Boolean as PropType<boolean>, default: true },
/**
* If true the pitch is visualized by rotating X-axis of compass.
*/
visualizePitch: Boolean as PropType<boolean>,
},
setup(props) {
Expand Down
4 changes: 3 additions & 1 deletion test/lat_lon.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
window.URL.createObjectURL = (obj) => { return ''; };
window.URL.createObjectURL = (obj) => {
return "";
};

import { type LngLatLike, LngLat } from "maplibre-gl";
import { isLngLatEqual } from "../lib/lib/lng_lat";
Expand Down

0 comments on commit 7288a0f

Please sign in to comment.