npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

uni-open-map-position

v1.0.2

Published

uniapp 移动端APP打开地图应用导航,标记位置信息

Downloads

61

Readme

uni-open-map-position

uniapp 移动端APP打开地图应用导航,标记位置信息

兼容性

| APP | 5+APP | 微信小程序 | H5 | | :---: | :---: | :---: | :---: | | ✅ | ✅ | ❌ | ❌ |

功能

  • [x] 打开地图应用标注位置,可进行导航
  • [x] 百度坐标系偏差修正
  • [x] 检查用户手机是否安装高德、百度等地图,单个地图应用直接打开。多个提供选择 [百度地图,高德地图、Apple地图]
  • [x] 无法找到国内通用地图时,通过geo协议打开任何地图,并且坐标系转换为 wgs-84

导出方法

  • openMap([纬度,经度], 目的地标注, 来源应用): 打开移动端地图APP导航
  • gcj02_to_bd09(): 传入gcj02坐标系,转换为bd09坐标系
  • gcj02_to_wgs84()
  • wgs84_to_gcj02()
  • bd09_to_gcj02()

**注意:如果找不到

示例代码

import { openMap } from 'uni-open-map-position';

openMap([106.628201, 26.646694], '贵阳市', '我的测试应用');

坐标系

| 坐标系 | APP | 备注 | | :--- | :--- | :--- | | WGS-84 | 谷歌地图、必应地图、苹果地图 | 目前广泛使用的GPS全球卫星定位系统使用的坐标系 | | GCJ-02 | 高德地图、腾讯地图 | 火星坐标系,由中国国家测绘局制订的地理信息系统的坐标系统。由WGS84坐标系经加密后的坐标系。 | | BD-09 | 百度地图 | 百度坐标系,在GCJ02坐标系基础上再次加密 |

非中国地区地图,服务坐标统一使用WGS84坐标。

参考资料