Commit 5f476986 authored by suhuiguang's avatar suhuiguang

1.xiugaiquexian

parent f158c508
...@@ -428,8 +428,8 @@ export const convertMarkerType = (type) => { ...@@ -428,8 +428,8 @@ export const convertMarkerType = (type) => {
export const showSelectMarkerPoint = (instance, { pointId, type })=>{ export const showSelectMarkerPoint = (instance, { pointId, type })=>{
getPointDetailAction(pointId, type).then(data=>{ getPointDetailAction(pointId, type).then(data=>{
const { markers } = instance.state; const { markers } = instance.state;
const newMarkers = markers[type]; const newMarkers = markers[type] || [];
if (!newMarkers.some(item => item.pointId === pointId && item.type === type)) { if (!newMarkers.some(item => item.id === pointId && item.type === type)) {
data.position3d.length > 0 && newMarkers.push({ data.position3d.length > 0 && newMarkers.push({
id: pointId, id: pointId,
key: `${type}_${pointId}`, key: `${type}_${pointId}`,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment