Custom MapMarkers not working on ImageryLayer

Hallo Syncfusion Team,

Please check the attached solution. It seems there are two bugs that I can't resolve.

First it seems impossible to use custom MapMarkers on an ImageryLayer. Is this true or did I do something wrong?
Second, as you can see in the screenshots, the custom MapMarkers on ShapeFileLayer work under specific conditions only. The screenshots are in folder SfMapTest\SfMapTest\Results.

Help to use custom MapMarkers on ImageryLayer would be appreciated. Are any references missing?

Best regards
Michael

Attachment: SfMapTest_5f65108e.zip

3 Replies

MP Michael Prabhu M Syncfusion Team August 16, 2018 12:15 PM UTC

Hi Michael, 
 
Query: Custom marker not displaying for Imagery layer. 
 
We have prepared a sample for show casing the custom marker for Imagery layer. You can download the sample from the below link. 
 
Code snippet 
 
Please find the below code snippet for marker template. 
 
<DataTemplate > 
                                <StackLayout Padding="-12,-30,0,0" IsClippedToBounds="false" HorizontalOptions="StartAndExpand" VerticalOptions="Center"  
                                                     HeightRequest="60" WidthRequest="70" Spacing="0" Orientation="Horizontal" > 
                                    <Image Source="marker.png" Scale="1" Aspect="AspectFit " HorizontalOptions="Start" VerticalOptions="Center"  HeightRequest="15" WidthRequest="23"   /> 
                                    <Label   VerticalOptions="Center" HorizontalOptions="Start" Text="{Binding Label}"></Label> 
                                </StackLayout> 
 
                            </DataTemplate> 
 
 
 
Output screenshot
 
 
 
 
Query 2: Custom marker not displaying for shape file layer in some cases. 
 
We are able to reproduce this reported issue and logged a defect report for this. Fix for this reported problem will be available in our upcoming Volume 3, 2018 release. 
 
Thanks, 
Michael 
 



MP Michael Pusch August 18, 2018 10:29 AM UTC

Hi Michael,

thank you for your quick reply and the provided sample.

However, I would that not call custom markers. While the layout is customized, the databinding is on the base MapMarker. And when I try to bind on a derived type, even on a bindable property that fails. Or on a image that is different for each pin.

It would be great if that worked. It is working on Xamarin.Forms.Maps, but they don't provide OSM.

Best regards,
Michael


MP Michael Prabhu M Syncfusion Team August 20, 2018 11:27 AM UTC

Hi Michael, 
 
We have analyzed your query and we confirm that the reported problem is a bug. We have logged a defect report for this. This fix will be available in our upcoming Volume3, 2018 release which is expected to be roll out on end of September 2018. 
 
We appreciate your patience until then. 
 
Thanks, 
Michael 


Loader.
Up arrow icon