Skip to content

Commit

Permalink
Add some log
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin committed Jan 28, 2021
1 parent 1bb6fb2 commit 0f9c824
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ abstract class AnnotationManagerImpl<G : Geometry, T : Annotation<G>, S : Annota
override val annotations = mutableMapOf<Long, T>()

/**
* The added dragListensers
* The added dragListeners
*/
override val dragListeners = mutableListOf<D>()

Expand Down Expand Up @@ -212,10 +212,12 @@ abstract class AnnotationManagerImpl<G : Geometry, T : Annotation<G>, S : Annota
*/
private fun updateSource() {
if (!styleStateDelegate.isFullyLoaded()) {
Logger.e(TAG, "Can't update source: style is not fully loaded.")
return
}
source?.let {
if (!style.styleSourceExists(it.sourceId)) {
Logger.e(TAG, "Can't update source: source has not been added to style.")
return
}
val features = annotations.map {
Expand Down

0 comments on commit 0f9c824

Please sign in to comment.