dcloudio / dcloudio/uni-app

map 组件 H5 平台获取 高德地图的 map 对象

Open
#5,595 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
41.6k
Forks
3.7k
Avg merge
7h 6m
Merged PRs (30d)
6

Description

### 发行方式

H5

### 具体平台

H5

### 开发环境

macOS

### 项目创建方式

HBuilderX

### 依赖版本

latest

### 问题描述

uni-app h5 如何拿到高德地图的 map 实例, 希望能调用 setCenter( center, immediate:true, duration:0)方法
目前 mapcontext.moveToLocation 方法 不能设置 immediate 和 duration

Image

### 重现步骤

### 期望行为

_No response_

### 实际行为

_No response_

### 截图或录屏

_No response_

Contributor guide

Open the contributing guide

Research direction

The issue names no files, tests, or implementation entry points. Start by locating the H5 map component and its mapcontext.moveToLocation implementation, then trace how the AMap instance is created and exposed. Done means H5 callers can obtain the map instance and use setCenter with immediate and duration options.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, web-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.