Closed megaacheyounes closed 8 months ago
Hi @megaacheyounes
The React Native Map Plugin of HMS Core is a wrapper of native Huawei Map SDK and mimics its properties and usage in classes such as HMSMarker. Unfortunately for the time being, rendering children components inside HMSMarker is not a feature for the RN Map Plugin.
You can use title
and snippet
props to show related information when the marker is clicked to serve your purpose.
For detailed information, you may also check the official documentations to see what you can do with HMSMarker.
The feature requests similar to this one is valuable for us, thus we will definetly consider to develop it in our future releases. Meanwhile you may also submit a ticket online for feature requests to native SDKs.
Thank you for your interest in our plugins.
Hi guys,
Let me start with an example: using react-native-maps I can render components as the icon of the marker, as shown in this example.
when running the app, we get this marker![marker_icon](https://user-images.githubusercontent.com/36759976/199713868-bd3b0b03-d918-4352-8db3-97894666e61d.PNG)
<RNDevsMarker/>
drawn on Google Maps<Map/>
as shown here:but when I try to do the same with
<HMSMarker/>
, Huawei Map<HMSMap/>
renders the default marker and ignores all children components inside<HMSMarker/>
!Currently the only way that you provide to customize
HMSMarker
is by using the attributeicon
, which is not convenient when we want to render complex or dynamic markers.what I want is described here:
Please let me know if there's a way to get this to work like google maps, or consider this a Feature Request and implement it :)
Thanks!