Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

6067 annotation manager - #6913

Merged
tobrun merged 4 commits into
masterfrom
6067-annotation-manager
Nov 7, 2016
Merged

tobrun merged 4 commits into
masterfrom
6067-annotation-manager

Conversation

@tobrun

@tobrun tobrun commented Nov 4, 2016 •

Copy link
Copy Markdown
Member

Closes #6067,
This refactor introduces the concept of AnnotationManager. This class is responsible for everything related to annotations. Mains goals for this refactor are:

  • AnnotationManager talks directly to NativeMapView for JNI calls (remove mapview overhead)
  • AnnotationManager has no reference to Mapview/MapboxMap
  • public API remains the same for end users
  • unit tests* / instrumentation tests pass without adjustment

Note: the requirement of having no reference to Mapview/MapboxMap directly has resulted in passing Mapbox in some methods. This is going to be resolved when we pick up #6912.

  • = I had to change a couple of things due to mocking out classes, logic remained the same.

Review @ivovandongen

@tobrun tobrun added refactor Android Mapbox Maps SDK for Android ✓ ready for review labels Nov 4, 2016
@tobrun tobrun added this to the android-v5.0.0 milestone Nov 4, 2016
@mention-bot

Copy link
Copy Markdown

@tobrun, thanks for your PR! By analyzing the history of the files in this pull request, we identified @cammace, @ljbade and @socketbind to be potential reviewers.

@tobrun
tobrun force-pushed the 6067-annotation-manager branch from 884c4ab to 4c93c4b Compare November 7, 2016 08:41

@ivovandongen ivovandongen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good, needs some documentation.

import java.util.ArrayList;
import java.util.List;

class AnnotationManager {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

JavaDoc?

import java.util.ArrayList;
import java.util.List;

class IconManager {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

JavaDoc?

import java.util.ArrayList;
import java.util.List;

class InfoWindowManager {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

JavaDoc?

@tobrun

tobrun commented Nov 7, 2016

Copy link
Copy Markdown
Member Author

Added some class level documentation in 3aa67df

@tobrun tobrun self-assigned this Nov 7, 2016
@tobrun
tobrun merged commit 1f8f85f into master Nov 7, 2016
@tobrun
tobrun deleted the 6067-annotation-manager branch November 16, 2016 23:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Android Mapbox Maps SDK for Android refactor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AnnotationManager.java refactor

4 participants