mirror of
https://github.com/HackPlan/AsyncDisplayKit.git
synced 2026-04-02 08:41:52 +08:00
15 lines
838 B
Markdown
Executable File
15 lines
838 B
Markdown
Executable File
---
|
|
title: ASMapNode
|
|
layout: docs
|
|
permalink: /docs/map-node.html
|
|
next: video-node.html
|
|
---
|
|
|
|
`ASMapNode` offers completely asynchronous preparation, automatic preloading, and efficient memory handling. Its standard mode is a fully asynchronous snapshot, with liveMap mode loading automatically triggered by any `ASTableView` or `ASCollectionView`; its `.liveMap` mode can be flipped on with ease (even on a background thread) to provide a cached, fully interactive map when necessary.
|
|
|
|
Features:
|
|
- uses `MKMapSnapshotOptions` as its primary specification format for map details. Among other things, this allows specifying 3D camera angles for snapshots loaded automatically and asynchronously while scrolling, with seamless transitions to an interactive map.
|
|
|
|
Gotchas:
|
|
- the liveMap mode is backed by a MKMapView which is NOT thread-safe
|