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

Move Location API From TestApp To SDK #1940

Closed

Description

@bleege

The current Location API is custom built and layered on top of the SDK in the TestApp. Let's extract this into the SDK itself so that it can be used universally. Model the API after Google Maps.

Related to #756

Activity

  1. added
    Android
    on Jul 28, 2015
  2. added this to the milestone on Jul 28, 2015
  3. ljbade commented on Jul 28, 2015

    @ljbade
    Contributor

    Same as #1719

  4. self-assigned this
    on Jul 31, 2015
  5. bleege commented on Jul 31, 2015

    @bleege
    ContributorAuthor

    The Google Maps API has 2 key access points:

    1. Internal to GoogleMap
    2. User can provide a custom LocationSource
  6. added a commit that references this issue on Jul 31, 2015
  7. added 2 commits that reference this issue on Jul 31, 2015
  8. bleege commented on Jul 31, 2015

    @bleege
    ContributorAuthor

    Ported Location tech and UserLocation API to GL SDK. Have also refactored the TestApp to run on it. Testing has revealed that the TestApp is using it correctly and that Location is being found. The only issue currently is that the UserLocation marker is not being displayed on the MapView. Next step is to debug that.

  9. bleege commented on Aug 1, 2015

    @bleege
    ContributorAuthor

    Turns out the the UserLocation marker is not showing up because the MapView is a View class and can't be added directly. Experimented with having MapView extend ViewGroup and FrameLayout instead while keeping a SurfaceView object in the class. The GL map appears to be running just fine, but still issues remaining while trying to add the UserLocation markr (aka ImageView). Will keep tinkering.

  10. ljbade commented on Aug 2, 2015

    @ljbade
    Contributor

    @bleege Ah interesting. Hadn't thought of that being an issue but makes sense.

    Perhaps we need MapView to be a ViewGroup/FrameLayout with a inner GLSurfaceView constructed at run time we keep as a private member variable.

    Then just move some of the calls to set up GL to this variable.

    Going to need to something like this to be able to handle things like the Mapbox logo overlay.

  11. added a commit that references this issue on Aug 4, 2015
  12. bleege commented on Aug 4, 2015

    @bleege
    ContributorAuthor

    I was able to get MapView to extend ViewGroup instead of SurfaceView so that it'd be possible to layer multiple View objects on top of it. The basic implementation needs to be cleaned up a bit as it's currently struggling with ImageView because ImageView uses a FrameLayout instead of the basic MapView.LayoutParams. I'm not too worried about simplifying the basic implementation this to get it to work though.

    For a point of comparison, I looked at the Raster SDK's drawing of UserLocation. It avoids the Android View hierarchy all together and instead relies on direct painting using Canvas. I think it's going to be best to make use of the View hierarchy though as we'll also have the Compass to add too.

  13. added a commit that references this issue on Aug 4, 2015
  14. 18 remaining items

  15. bleege commented on Aug 5, 2015

    @bleege
    ContributorAuthor

    Addressed in #2000. Will roll new SNAPSHOT now.

  16. added 12 commits that reference this issue on Nov 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Android

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions