1. Description of the problem:
After compatibleSdkVersion was upgraded to 5.0.0(12), the coordinate system conversion API was called: (.WGS84, .GCJ02, { longitude: ,
latitude: }) will always initiate a native crash.
For example, if you create a blank project (empty ability) and call the above method in it, the app will natively crash on startup (even if the app doesn't execute when it starts)
Solution:
is a known problem that can be solved in two ways.
[Solution]
Upgrade system to new version 3.0.0.18 (SP33DEVC00E18R4P1log)
[Avoidance Program]
1, open the IDE in the SDK configuration path under the HarmonyOS-NEXT-DB1 (this path may be somewhat different) \hms\ets\api directory
2. Find the @ file, open it and delete it *@bundle /mapLibrary/ets/map 5.0.0(12)
3. Find the @ file, open it and delete it *@bundle /mapLibrary/ets/mapCommon 5.0.0(12)
4. Find the @file, open it and delete it * @bundle /mapLibrary/ets/MapComponent 5.0.0(12)
5, close and reopen DevEco Studio, navigation bar - > Build - > Clean Project, repackage can be.
2. Description of the problem:
Is there a cameraMoveEnd method in Map Kit to listen for the end of the map move?
Found cameraMoveStart and cameraMove so far.
Solution:
You can use this method: on(type: 'cameraIdle')
/consumer/cn/doc/harmonyos-references-V5/map-map-V5#section1478064219344
3. Description of the problem:
Does the map component support adding massive markers and is there a limit to the number of markers?
Solution:
The map component supports adding a large number of markers, there is no clear description of the limit of the number of markers in the official document, the default is 5000, if more than 5000, it may be subject to system performance limitations.
4. Description of the problem:
The documentation mentions that "For domestic sites, the GCJ02 coordinate system is used in mainland China, *, China, and Macau, China, and the WGS84 coordinate system is used in *, China, and overseas."
Why do I get WGS84 coordinate system instead of GCJ02 coordinate system when I use positioning in China?
Solution:
Currently, the default coordinate system provided by LocationKit is 84 coordinate system, so when calling Map Kit service via WGS84 coordinate in China (including * and Macau), you need to convert it to GCJ02 coordinate system before accessing. Refer to the documentation:/consumer/cn/doc/harmonyos-guides-V5/convertcoordinate-services-V5#section194373053016
5. Description of the problem:
I only found the method to convert WGS84 coordinate system to GCJ02 coordinate system on the map location service related documents (), how to realize the WGS84 coordinate system to BD09LL coordinate system?
Solution:
You can use Baidu HarmonyOS NEXT version of the map SDK for coordinate conversion, refer to the documentation:/faq/api?title=harmonynextsdk/guide/navigation/coordinate
6. Description of the problem:
Does the Hongmeng system prevent and control virtual positioning cheating anti, there are a large number of virtual positioning problems on Android, does Hongmeng provide a mechanism or method to circumvent?
Solution:
Currently HarmonyOS Next does not open the location simulation function for the time being, there is no virtual location problem
Learn more >>
interviewsIn-App Payment Service Alliance Official Website