Skip to content

Commit

Permalink
Remove MglButton.
Browse files Browse the repository at this point in the history
  • Loading branch information
francois2metz committed May 10, 2024
1 parent 0f60d43 commit b7bd274
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 96 deletions.
7 changes: 4 additions & 3 deletions docs/examples/playground.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
<mgl-scale-control/>
<mgl-geolocate-control/>
<mgl-custom-control v-if="showCustomControl" :position="controlPosition" :no-classes="!useClasses">
<mgl-button type="mdi" :path="buttonIcon" style="color: deepskyblue"/>
<button class="maplibregl-ctrl-icon" style="color: deepskyblue">
<svg><path :d="buttonIcon" fill="currentColor" /></svg>
</button>
</mgl-custom-control>
<mgl-marker :coordinates="markerCoordinates" color="#cc0000" :scale="0.5"/>

Expand Down Expand Up @@ -88,7 +90,6 @@ import {
MglScaleControl,
MglGeolocateControl,
MglCustomControl,
MglButton,
MglMarker,
MglGeoJsonSource,
MglLineLayer,
Expand Down Expand Up @@ -129,7 +130,7 @@ const lineString = [
export default defineComponent({
name : 'App',
components: {
MglCircleLayer, MglVectorSource, MglLineLayer, MglGeoJsonSource, MglMarker, MglButton, MglCustomControl,
MglCircleLayer, MglVectorSource, MglLineLayer, MglGeoJsonSource, MglMarker, MglCustomControl,
MglGeolocateControl, MglScaleControl, MglNavigationControl, MglAttributionControl, MglFullscreenControl, MglMap
},
setup() {
Expand Down
92 changes: 0 additions & 92 deletions lib/components/button.component.ts

This file was deleted.

1 change: 0 additions & 1 deletion lib/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ export { default as MglFullscreenControl } from "./controls/fullscreen.control";
export { default as MglGeolocateControl } from "./controls/geolocation.control";
export { default as MglNavigationControl } from "./controls/navigation.control";
export { default as MglScaleControl } from "./controls/scale.control";
export { default as MglButton } from "./button.component";
export { default as MglMarker } from "./marker.component";
export { default as MglPopup } from "./popup.component";
export { default as MglCanvasSource } from "./sources/canvas.source";
Expand Down

0 comments on commit b7bd274

Please sign in to comment.