fix(map): replace missing default marker asset
This commit is contained in:
@@ -49,6 +49,8 @@ function placeMarker(longitude: number, latitude: number) {
|
||||
mapPickerMarker = new mapPickerAMap.Marker({
|
||||
position: [longitude, latitude],
|
||||
title: '拍摄位置',
|
||||
content: '<div aria-hidden="true" class="h-4 w-4 rounded-full border-2 border-white bg-teal-500 shadow-[0_0_0_4px_rgba(52,116,93,0.24)]"></div>',
|
||||
offset: new mapPickerAMap.Pixel(-8, -8),
|
||||
} as AMap.MarkerOptions)
|
||||
mapPickerMarker.setMap(mapPickerInstance)
|
||||
} else {
|
||||
@@ -85,6 +87,7 @@ async function initializeMap() {
|
||||
|
||||
try {
|
||||
mapPickerAMap = await loadAMap()
|
||||
mapPickerAMap.getConfig().appname = 'amap-jsapi-skill'
|
||||
|
||||
const hasCoordinates =
|
||||
typeof props.latitude === 'number' &&
|
||||
|
||||
Reference in New Issue
Block a user