Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Note: To access all shared projects, get information about environment setup, and view other guides, please visit Explore-In-HMOS-Wearable Index.

How to implement routing with MapKit

This codelab shows how to use MapKit to implement routing functionality on HarmonyOS.
The project (MapRoutingTask) demonstrates how to visualize start and end points on a map and dynamically draw a connecting route.

Preview

Use Cases

  • Set start and end points with markers
  • Dynamically draw route with MapArcParams
  • Handle map callbacks and controller with MapComponent

Tech Stack

  • Languages: ArkTS, ArkUI
  • Frameworks: HarmonyOS SDK 5.0.2(14)
  • Tools: DevEco Studio 5.1.0.828
  • Libraries: @kit.MapKit

Directory Structure

entry/src/main/ets/
├── entryability
│    └── EntryAbility.ets
├── entrybackupability
│    └── EntryBackupAbility.ets
└── pages
     └── Index.ets

Constraints and Restrictions

Supported Device

  • HarmonyOS devices with MapKit support (e.g. Huawei Watch 5, compatible phones/emulators)

Preparations Before Run

License

MapRoutingTask is distributed under the terms of the MIT License.
See the LICENSE file for more information.

About

Map Kit route-drawing codelab for HarmonyOS with start/end markers, MapArcParams and map controller callbacks.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages