Repository navigation
don't stop/start map in related to style changes anymore since safe - #1077
Conversation
|
How does this change prevent invalid access to SourceInfo objects from worker threads which have not yet finished? 1.) SourceInfo objects are created upon parsing style.json. When style.json is changed these SourceInfo objects would get deleted. ( They reside under Map.style.layers.layers.bucket.style_source.info ). |
That doesn't really fall to this PR specifically, but more to @kkaefer's new approach which enabled it: I think the fact that it's titled "make style updates a little more threadsafe" is an indication that this is a moving target still 😄 |
don't stop/start map in relation to style changes anymore since safe
This behaves like OS X, where the map is started once at init, and then only ever again after being stopped from app backgrounding. Nothing to do with styling, which can happen before or after start, from the main thread, without otherwise touching the map since it triggers its own updates.