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 }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
MGLSource and MGLLayer should raise an NSException if they are added to the style more than once #7271
When MGLSource and MGLLayer instances are added to the style, they lose ownership of their std::unique_ptr<T> after it is moved to the mbgl level. Subsequent attempts to add such instances will result in a C++ exception.
An NSException should be raised if the source and layer addToMapView methods are called more than once and the pointer is invalid. In addition, the documentation in MGLStyle for addSource: and addLayer: should warn developers to avoid adding the same instance twice and, for that matter, instances with the same identifier.
Activity
boundsj commentedon Dec 2, 2016
ref #7258
boundsj commentedon Dec 2, 2016
Fixed in #7272