🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

freeqqmapplus

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

freeqqmapplus

``` npm i freeqqmapplus ```

latest
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

mapPlus

how to get

npm i freeqqmapplus

how to use

import MapPlus from "freeqqmapplus"

this.map = new MapPlus({
          AK: AK,
          htmlId: 'id_for_map',
          searchFun: services.getPlaceInfo,
          getCurrentLocationFun: services.getDistrictInfo,
          getLocationPoiFun: services.getlocationPoi,
          complete: () => {
            this.listenMapClickHandler = this.map.onClickMap(({ lat, lng }) => {
              this.onClickMap(lat, lng);
            });
          },
        });

搜索

this.map.searchService()

使用须知

由于腾讯地图关闭了部分搜索功能,需要通过后端接口实现,参考 https://lbs.qq.com/webApi/javascriptV2/jsGuide/jsOverview

Keywords

map

FAQs

Package last updated on 03 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts