Open JustinFincher opened 6 years ago
Hi - thanks for the question. It isn't currently possible to configure the WRLD Android Java Api to disable road labels, indoor map markers, etc.
However, this should be relatively easy to achieve, since the underlying C++ API does allow this configuration.
Marking this as an enhancement for consideration.
Notes: Would likely involve additional configuration supplied via EegeoMapOptions, and possibly allowing these to be set via AttributeSet: https://github.com/wrld3d/android-api/blob/9b0c37be433e193e5ddef610f9d9d916a44c3f83/sdk/src/main/java/com/eegeo/mapapi/map/EegeoMapOptions.java#L13
EegeoMapOptions is consumed in platform creation here: https://github.com/wrld3d/android-api/blame/9b0c37be433e193e5ddef610f9d9d916a44c3f83/sdk/src/main/java/com/eegeo/mapapi/EegeoNativeMapView.java#L320
Thanks for your reply (and good work in this gorgeous looking SDK), I might as well start using map with labels in the current version, meanwhile I am looking forward to the implementation! :-)
By the way, I have a question that can I use this SDK with an external SurfaceHolder
? Let's say I want to make what originally should be painted on the surfaceView
of MapView
to be painted on android.service.wallpaper.WallpaperService.Engine
, which provides a SurfaceHolder
when created, will this be possible with some quick hack? Just want to do a validation of this idea (though it seems crazy to put such a resource heavy view into the wallpaper), thanks!
Hi - using with an external SurfaceHolder isn't something that we've experimented with. You are of course welcome to try for yourself. Internally, the api gets notified of SurfaceHolder creation here: https://github.com/wrld3d/android-api/blob/9b0c37be433e193e5ddef610f9d9d916a44c3f83/sdk/src/main/java/com/eegeo/mapapi/EegeoNativeMapView.java#L237
Let us know how you get on!
Description
Hi, I have searched for a while through documentation and examples, but I can't find a way to turn off the label and icons. I want to display the WRLD map in native Android with no visual disturbances, just like what WRLD Unity SDK does in default: I can see that
EegeoMap
has addMarker / removeMarker functions, but no 'disable all marker' or similar properties, is that currently impossible? Or is this behavior defined in the theme manifest? thanks!Expected behavior: Android SDK has a property to turn off all visual elements except the map itself
Actual behavior: Currently it seems to be not providing such level of adjustment.
Additional Information
Android Device Version: 8.1 and 9 Android Studio Version: 3.2 Gradle Version: 4.6 SDK Version: 0.0.955@aar