-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the ability to drag the MMapRouteControl markers and fix minor bugs
- Loading branch information
1 parent
199648f
commit 8778850
Showing
6 changed files
with
172 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import {CustomVuefyOptions} from '@mappable-world/mappable-types/modules/vuefy'; | ||
import {TruckParameters} from '@mappable-world/mappable-types/imperative/route'; | ||
import {LngLat} from '@mappable-world/mappable-types'; | ||
import {MMapRouteControl, MMapRouteControlProps, AvailableTypes} from '..'; | ||
import type TVue from '@vue/runtime-core'; | ||
|
||
export const MMapRouteControlVuefyOptions: CustomVuefyOptions<MMapRouteControl> = { | ||
props: { | ||
geolocationTextInput: {type: String, default: 'My location'}, | ||
clearFieldsText: {type: String, default: 'Clear all'}, | ||
changeOrderText: {type: String, default: 'Change the order'}, | ||
availableTypes: { | ||
type: Array as TVue.PropType<AvailableTypes[]>, | ||
default: ['driving', 'truck', 'walking', 'transit'] | ||
}, | ||
truckParameters: Object as TVue.PropType<TruckParameters>, | ||
waypoints: Array as unknown as TVue.PropType<[LngLat | null, LngLat | null]>, | ||
waypointsPlaceholders: {type: Array as unknown as TVue.PropType<[string, string]>, default: ['From', 'To']}, | ||
search: Function as TVue.PropType<MMapRouteControlProps['search']>, | ||
suggest: Function as TVue.PropType<MMapRouteControlProps['suggest']>, | ||
route: Function as TVue.PropType<MMapRouteControlProps['route']>, | ||
onMouseMoveOnMap: Function as TVue.PropType<MMapRouteControlProps['onMouseMoveOnMap']>, | ||
onUpdateWaypoints: Function as TVue.PropType<MMapRouteControlProps['onUpdateWaypoints']>, | ||
onRouteResult: Function as TVue.PropType<MMapRouteControlProps['onRouteResult']>, | ||
onBuildRouteError: Function as TVue.PropType<MMapRouteControlProps['onBuildRouteError']> | ||
} | ||
}; |