You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
3.0 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

import{I as e,V as t,Y as n,_ as r,d as i,u as a,v as o}from"./runtime-core.esm-bundler-CnFWH3R5.js";import{u as s}from"./index-axKQV-pW.js";var c={};function l(s,c){let l=t(`a-alert`),u=t(`a-descriptions-item`),d=t(`a-descriptions`),f=t(`a-card`);return e(),i(f,{title:`系统设置 / 地图与第三方配置`},{default:n(()=>[o(l,{type:`info`,style:{"margin-bottom":`12px`}},{default:n(()=>[...c[0]||=[r(` 展示底图与后台地图选点已切换为`,-1),a(`strong`,null,`天地图`,-1),r(`(底图 `,-1),a(`code`,null,`vec_c`,-1),r(` / `,-1),a(`code`,null,`cva_c`,-1),r(`,国家 2000 经纬度)。库内经纬度仍为`,-1),a(`strong`,null,`腾讯 GCJ-02`,-1),r(`,展示时自动换算,`,-1),a(`strong`,null,`无需批量改库`,-1),r(`。微信导航仍用 GCJ-02。 微信内「一键导航」仍走腾讯/微信原生能力,与展示底图无关。 `,-1)]]),_:1}),o(l,{type:`warning`,style:{"margin-bottom":`12px`}},{default:n(()=>[...c[1]||=[a(`strong`,null,`本地开发localhost无法加入天地图白名单时`,-1),r(`已内置 Vite 代理,开发时瓦片/SDK 走 `,-1),a(`code`,null,`/tianditu-tile-proxy`,-1),r(``,-1),a(`code`,null,`/tianditu-api-proxy`,-1),r(`,并伪造已在白名单中的 Referer默认 `,-1),a(`code`,null,`https://szkp-map.langye.net/`,-1),r(`)。请确保天地图控制台已添加该正式域名;重启 `,-1),a(`code`,null,`npm run dev`,-1),r(` 后访问仍用 localhost 即可。可选:在 hosts 绑定 `,-1),a(`code`,null,`127.0.0.1 dev.szkp-map.langye.net`,-1),r(` 后用该域名打开项目。 `,-1)]]),_:1}),o(d,{column:1,bordered:``},{default:n(()=>[o(u,{label:`本地代理 Referer可选`},{default:n(()=>[...c[2]||=[a(`code`,null,`VITE_TIANDITU_DEV_REFERER=https://szkp-map.langye.net/`,-1),r(`(须与天地图白名单一致;设 `,-1),a(`code`,null,`VITE_TIANDITU_DEV_PROXY=0`,-1),r(` 可关闭代理) `,-1)]]),_:1}),o(u,{label:`H5 / 后台浏览器 Key`},{default:n(()=>[...c[3]||=[r(``,-1),a(`code`,null,`code/szkp-map-h5/.env`,-1),r(``,-1),a(`code`,null,`code/szkp-map-web/.env`,-1),r(` 配置 `,-1),a(`code`,null,`VITE_TIANDITU_TK=天地图开放平台应用 Key`,-1),r(`,并在控制台绑定正式/测试域名白名单。 `,-1)]]),_:1}),o(u,{label:`搜索 / 逆地理`},{default:n(()=>[...c[4]||=[r(` 后台地图选点`,-1),a(`strong`,null,`不经过 Laravel`,-1),r(`:搜索用天地图 JS `,-1),a(`code`,null,`T.LocalSearch`,-1),r(`,点击选点逆地理用浏览器请求天地图 `,-1),a(`code`,null,`geocoder`,-1),r(``,-1),a(`code`,null,`VITE_TIANDITU_TK`,-1),r(`)。`,-1),a(`code`,null,`/api/map/search`,-1),r(` 仅保留给其他场景,选点弹窗不会调用。 `,-1)]]),_:1}),o(u,{label:`导航(可选,保留)`},{default:n(()=>[...c[5]||=[r(` 微信 H5 导航仍可使用 `,-1),a(`code`,null,`VITE_TENCENT_MAP_KEY`,-1),r(` / `,-1),a(`code`,null,`VITE_TENCENT_MAP_REFERER`,-1),r(`(仅外链,非首页底图)。 `,-1)]]),_:1})]),_:1})]),_:1})}var u=s(c,[[`render`,l]]);export{u as default};