Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
970 views
in Technique[技术] by (71.8m points)

java - SKHeader:Need to edit the header triangle when navigation starts

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

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...