You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f899bf1
Browse filesBrowse the repository at this point in the historyBrowse files
- MapRoute arrows: replace SVG createElementNS markers with CSS
border-trick triangle markers. The SVG namespace approach was not
rendering inside AMap.Marker content; CSS border triangles work
universally. Color set via CSS custom property (--ac) set through
style.setProperty to keep CodeQL clean.
- MapHeatmap, MapTrafficLayer, MapSatelliteLayer: wrap setMap(null)
in try-catch during effect cleanup. AMap's internal getStatus() call
inside setMap(null) throws when the map container is being torn down
on page navigation. Swallowing the error prevents the app crash
(TypeError: Cannot read properties of undefined (reading 'getStatus')).
Agent-Logs-Url: https://github.com/hustcc/amapcn/sessions/69b547dd-ab30-4879-a41a-a63f12ee0876
Co-authored-by: hustcc <7856674+hustcc@users.noreply.github.com>
0 commit comments