This commit is contained in:
2026-07-30 15:33:54 +08:00
parent 2771d90eee
commit d464721a1c
6 changed files with 10 additions and 5 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ type poiService struct{}
var PoiService = new(poiService)
const (
maxOffset = 25 // 高德API单页最大条数
maxOffset = 20 // 每页展示条数
maxPage = 100 // 高德API最大页数
)
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -4,8 +4,8 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Pointly-Tel - 高德POI商户查询</title>
<script type="module" crossorigin src="/assets/index-Bb-YnKrp.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-C3fajWoH.css">
<script type="module" crossorigin src="/assets/index-BhzmOGfg.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-B11j1Ee9.css">
</head>
<body>
<div id="app"></div>
+1
View File
@@ -369,6 +369,7 @@ async function doSearch() {
if (mapRef.value) {
if (hasCoord) {
mapRef.value.flyTo(centerLat.value, centerLng.value, 14)
mapRef.value.drawRadiusCircle(centerLat.value, centerLng.value, radius.value)
} else if (city.value && cityCoords[city.value]) {
const coord = cityCoords[city.value]
mapRef.value.flyTo(coord[0], coord[1], 12)
+4
View File
@@ -97,6 +97,10 @@ function focusMarker(poi) {
const lng = parseFloat(poi.longitude)
if (isNaN(lat) || isNaN(lng)) return
// 先飞到该位置
flyTo(lat, lng, 15)
// 找到对应标记并弹窗
for (const marker of currentMarkers) {
const pos = marker.getLatLng()
if (Math.abs(pos.lat - lat) < 0.001 && Math.abs(pos.lng - lng) < 0.001) {