SKHeader:Need to edit the header triangle when navigation starts

孤街浪徒 提交于 2019-12-14 03:32:44

问题


enter image description here I have an issue regarding "SKHeading". When i use (SKMapSettings.SKHeadingMode.ROTATING_MAP) and starts navigation i am getting a triangle on my navigated route which define a header i want to edit that header to smaller one but i am not able to find it in code can you please suggest me how to do that one. So that i can make that header triangle small and play around with it.Below is my code:

   SKNavigationSettings navigationSettings = new SKNavigationSettings();
            navigationSettings.setNavigationType(SKNavigationSettings.SKNavigationType.SIMULATION);
            navigationSettings.setPositionerVerticalAlignment(-0.25f);
            navigationSettings.setShowRealGPSPositions(true);
            navigationSettings.setShowStreetNamesPopusOnRoute(true);
            navigationSettings.setDistanceUnit(SKMaps.SKDistanceUnitType.DISTANCE_UNIT_MILES_FEET);
            navigationSettings.getSpeedWarningThresholdInCity();
            SKNavigationManager sknavigation = SKNavigationManager.getInstance();
            sknavigation.setMapView(mapView);
            sknavigation.setNavigationListener(this);
            sknavigation.startNavigation(navigationSettings);
            navigationInProgress = true;
            mapView.centerOnCurrentPosition(17, true, 500);
            mapView.getMapSettings().setHeadingMode(SKMapSettings.SKHeadingMode.ROTATING_MAP);
            startOrientationSensor();

This is the line which creates that triangle. mapView.getMapSettings().setHeadingMode(SKMapSettings.SKHeadingMode.ROTATING_MAP

Please click on image and see the red circled marked.I want to remove that blue color triangle


回答1:


To change any textures you must go into the SKMaps.zip file located in your projects assets folder. All the textures used by SKMaps are contained inside this zip file including the ones used for creating the headers. You can change the textures inside the zip file as long as you keep the names the same.



来源:https://stackoverflow.com/questions/42675885/skheaderneed-to-edit-the-header-triangle-when-navigation-starts

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!