Radmap markers are the wrong icon, and wrong position
0 Answers 6 Views
Map
Ryan
Top achievements
Rank 1
Ryan asked on 12 Jul 2021, 07:16 PM

Hi,

I created a test RadMap and I'm getting some odd results. Here is the code:

 

<telerik:RadMap RenderMode="Lightweight" runat="server" ID="RadMap1" Zoom="6" Width="600" Height="500" >
    <CenterSettings Latitude="51.525619" Longitude="-0.111802" />
    <LayersCollection>
        <telerik:MapLayer Type="Tile" Subdomains="a,b,c"
                    UrlTemplate="https://#= subdomain #.tile.openstreetmap.org/#= zoom #/#= x #/#= y #.png"
                    Attribution="&copy; <a href='http://osm.org/copyright' title='OpenStreetMap contributors' target='_blank'>OpenStreetMap                    contributors</a>.">
                </telerik:MapLayer>
    </LayersCollection>
    <MarkersCollection>
        <telerik:MapMarker Shape="pinTarget" Title="London, UK">
            <LocationSettings Latitude="51.525619" Longitude="-0.111802"/>
        </telerik:MapMarker>
        <telerik:MapMarker Shape="pin" Title="Test">
            <LocationSettings Latitude="53.525619" Longitude="-1.111802"/>
        </telerik:MapMarker>

    </MarkersCollection>
</telerik:RadMap>

 

So the pin target and pin show the same icon, the icon is clipped, and when you zoom out the marker is in the completely wrong location. I'm not sure where to go from here. I haven't modified any css or applied any custom styles to the icons. Any help would be appreciated.

 

Thanks!

Vessy
Telerik team
commented on 13 Jul 2021, 11:17 AM

The faced behavior is caused due to an already fixed regression, introduced in our previous release. Can you upgrade to the latest version of the controls and see if the problem persists?

If upgrading is not possible at the moment, you can try applying the workaround provided in the following feedback item which contains almost all of the fixed styles:

https://feedback.telerik.com/aspnet-ajax/1519641-font-size-family-and-line-height-changed-for-classic-render-mode-in-r2-2021 
Ryan
Top achievements
Rank 1
commented on 13 Jul 2021, 11:05 PM | edited

Interesting, I did update and the issue is resolved, however that link seems to be for controls in classic mode while I was using Lightweight. Moot point I guess, but thanks for the pointer!
Vessy
Telerik team
commented on 14 Jul 2021, 06:30 AM

That's a bit strange, indeed. But I am glad that the issue is fixed, despite of that :) 

No answers yet. Maybe you can help?

Tags
Map
Asked by
Ryan
Top achievements
Rank 1
Share this question
or