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

amap-proxy

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

amap-proxy

在线高德地图,局域网内代理

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
4
-42.86%
Maintainers
1
Weekly downloads
 
Created
Source

amap-proxy

当部署的环境不能上网,但是有一台代理服务器可以上网,可以使用代理服务器加载高德地图 代理服务器需要部署一套服务,用于转发高德地图相关请求,逻辑是:截取下面传入地址后面的所有路径在其前面加上https://去请求高德地图资源,然后转回来

使用方法

import ap from '@huangjs888/amap-proxy';

ap(
  'http://10.5.10.106:9800/web-proxy/proxy-hs/', // 代理地址
  /(https?:)?\/\/(([A-Za-z0-9_]+\.)+(amap|autonavi)\.com)/g, // 匹配规则
);

Keywords

amap

FAQs

Package last updated on 29 Dec 2021

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