This is a migrated thread and some comments may be shown as answers.

Different backgrounds for different zoom levels

2 Answers 25 Views
Map
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 19 Jun 2014, 06:37 PM
Is there a way to have different RadMap backgrounds for different zoom levels?   I have an application that uses a high-level map for a facility.  When I zoom in to a certain level I would like to switch to a more detailed image background.  I would need the RadMap to behave as follows:

* for zoom levels 20-15, use URI #1 as the background image.
* for zoom levels 15 and lower, use URI #2 as the background image.

  What is the best way to achieve this bahavior?

2 Answers, 1 is accepted

Sort by
0
James
Top achievements
Rank 1
answered on 19 Jun 2014, 06:44 PM
Sorry for the typo - what is the best way to achieve this behavior?
0
Andrey
Telerik team
answered on 20 Jun 2014, 02:33 PM
Hi James,

You can use the RadMap.ZoomChanged event for changing the Uri of the background image dynamically depending on the zoom level.
I have attached a sample solution.
I hope it helps.

Regards,
Andrey Murzov
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
Map
Asked by
James
Top achievements
Rank 1
Answers by
James
Top achievements
Rank 1
Andrey
Telerik team
Share this question
or