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.
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.
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.
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.
Activity
ljbade commentedon Jul 28, 2015
Same as #1719
bleege commentedon Jul 31, 2015
The Google Maps API has 2 key access points:
#1940 - Adding Mapzen LOST to GL SDK dependency list to server as Loc…
#1940 - Porting Location controls to SDK and setting up Google Map AP…
#1940 - Refactoring TestApp to use UserLocation API in GL SDK
bleege commentedon Jul 31, 2015
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.
bleege commentedon Aug 1, 2015
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
ViewGroupandFrameLayoutinstead while keeping aSurfaceViewobject 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.ljbade commentedon Aug 2, 2015
@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.
#1940 - Initial conversion from extending SurfaceView to extending Vi…
bleege commentedon Aug 4, 2015
I was able to get
MapViewto extendViewGroupinstead ofSurfaceViewso that it'd be possible to layer multipleViewobjects on top of it. The basic implementation needs to be cleaned up a bit as it's currently struggling withImageViewbecauseImageViewuses aFrameLayoutinstead of the basicMapView.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.#1940 - Refactored to use stock FrameLayout and to display User Locat…
18 remaining items
bleege commentedon Aug 5, 2015
Addressed in #2000. Will roll new SNAPSHOT now.
mapbox#1940 - Adding Mapzen LOST to GL SDK dependency list to server …
mapbox#1940 - Porting Location controls to SDK and setting up Google …
mapbox#1940 - Refactoring TestApp to use UserLocation API in GL SDK
mapbox#1940 - Initial conversion from extending SurfaceView to extend…
mapbox#1940 - Refactored to use stock FrameLayout and to display User…
mapbox#1940 - DRYing out GPS Marker setup. Confirming that On / Off t…
mapbox#1940 - Converting OnMapChangedListener to a Collection instead…
mapbox#1940 - Cleaning up setup process for OnMapChangedListeners. Re…
mapbox#1940 - Initial migration of Compass from TestApp to SDK
mapbox#1940 - Adding enable / disable Compass API
mapbox#1940 -Adding menu item controls for compass on / off. Removing…
mapbox#1940 -Adding Null Check due to DRY initialization