Custom Marker Position Issue when Zoom In and Out

Hi, I am using the latest Xamarin and Syncfusion library version for the development.  I created a few custom markers with specific latitude longitude, however, when it is zoomed out, the marker position is not accurate.  When it zoomed in, it will be more accurate.  I am using the default OSM map, would like to stick with OSM rather than Google. 

https://drive.google.com/file/d/12wOwXq2wtrb--BnzI9Kvi-ELRnxCzaD_/view?usp=sharing

As the file size is larger than the limit size, I attached the solution through google drive.

5 Replies 1 reply marked as answer

ET Eswaran Thirugnanasambandam Syncfusion Team February 24, 2021 09:45 AM UTC

Hi Arthur Liew,  
 
Greetings from Syncfusion, 
 
We checked the reported issue “Custom marker is not placed accurately in OSM” and we would like to inform you that we place the marker in center of the given geo point. So, if you give custom marker like pin image, it looks like not accurate when decrease the zoom level. 
 
We can fix this by setting the VerticalAlignment property as near in the marker settings. Please refer below link to know how to set VerticalAlignment property. 
 
  
The link attached in your update is not accessible, so we have prepared a sample based on your requirement by setting the VerticalAlignment property as near to show the custom view to display in the exact location. Please get the sample from the below link. 
 
 
Please check the sample and let us know if you have any other concerns. If you still face any problem, can you revert us by modifying the attached sample based on your scenario, this will help us to provide you a better solution at the earliest. 
 
Regards, 
Eswaran 



AL Arthur Liew February 24, 2021 10:48 AM UTC

Hi Eswaran,

I attached a new link with my current progress:
https://drive.google.com/file/d/14fxnA9oyL0psZDuRpbQ-7n9kwp1rIybZ/view?usp=sharing

I used the sample you gave to me, it works, however, I have one Label that indicates the country name, it has a gap when it zoomed out, and the gap is slowly tighter when I zoomed in.  
May I know what's causing it?


SS Sridevi Sivakumar Syncfusion Team February 25, 2021 01:55 PM UTC

Hi Arthur Liew,

Thanks for sharing the sample.

We have checked the reported problem with the shared sample and working fine at our end.

The equal space is maintained between the label and a marker pin icon in each zoom level.

We have prepared a video for your requirement.  Please have a video from the below link.


https://www.syncfusion.com/downloads/support/forum/162876/ze/Map_Video1501394745

Tested device:
Android:

MI A3( OS version: Android 10)

iOS:
iPhone 12 Pro Max iOS 14.3

Can you please share the issue reproducing platform and video?  It will be helpful for us to analyze further and provide an appropriate solution.


Regards,
Sridevi S.
 
 


Marked as answer

AL Arthur Liew March 2, 2021 03:00 AM UTC

Hi Sridevi S. ,

Thanks for the reply, the issue has been resolved, thanks very much for your support!


SS Sridevi Sivakumar Syncfusion Team March 3, 2021 11:53 AM UTC

Hi  Arthur Liew,

Thanks for your update.

Let us know if you need any further assistance.

Regards,
Sridevi S. 


Loader.
Up arrow icon