imagerySet

1 Answer 32 Views
Map
Kjell
Top achievements
Rank 1
Iron
Iron
Kjell asked on 07 Jul 2024, 09:17 AM

I want to change the imagerySet of the bing maps layer code behind when postback? How?

ImagerySet="road" / ImagerySet="aerialWithLabels"......

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 08 Jul 2024, 09:36 AM

 Hi Kjell,

You can modify the looks of the Bing map Tile Layer via the ImagerySet property of the MapLayer item. You can examine the Cross-Layer Integration demo, in which the Aerial look is set in the codebehind:

MapLayer MapLayer = RadMap1.LayersCollection[0];

If (ConfigurationManager.AppSettings["BingMapKey"] != null)
{
    MapLayer.Type = UI.Map.LayerType.Bing;
    MapLayer.ImagerySet = "Aerial";
    MapLayer.Key = ConfigurationManager.AppSettings["BingMapKey"].ToString();
}

Regards,
Rumen
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Telerik family, check out our getting started resources
Kjell
Top achievements
Rank 1
Iron
Iron
commented on 08 Jul 2024, 10:53 AM

Thanks for the help, worked perfectly :-)
Tags
Map
Asked by
Kjell
Top achievements
Rank 1
Iron
Iron
Answers by
Rumen
Telerik team
Share this question
or