Skip to content

Commit 85b655e

Browse files
BenJChen陈本杰
andauthored
feat: support cameraControl
* feat(map): Support CameraControl * feat(map): Support CameraControlPosition * chore(map): remove console --------- Co-authored-by: 陈本杰 <[email protected]>
1 parent 1307a4d commit 85b655e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/components/GoogleMap.vue

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,15 @@ export default defineComponent({
224224
type: String as PropType<IControlPosition>,
225225
required: false,
226226
},
227+
cameraControl: {
228+
type: Boolean,
229+
required: false,
230+
default: undefined,
231+
},
232+
cameraControlPosition: {
233+
type: String as PropType<IControlPosition>,
234+
required: false,
235+
},
227236
nonce: {
228237
type: String,
229238
default: "",
@@ -265,6 +274,7 @@ export default defineComponent({
265274
rotateControlOptions: createControlOptionsWithPosition(props.rotateControlPosition),
266275
streetViewControlOptions: createControlOptionsWithPosition(props.streetViewControlPosition),
267276
fullscreenControlOptions: createControlOptionsWithPosition(props.fullscreenControlPosition),
277+
cameraControlOptions: createControlOptionsWithPosition(props.cameraControlPosition),
268278
disableDefaultUI: props.disableDefaultUi,
269279
};
270280

0 commit comments

Comments
 (0)