This is a migrated thread and some comments may be shown as answers.
ImageMapSource.IsLevelSupported never called
1 Answer 11 Views
Map
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 07 Nov 2011, 08:47 PM
I'm trying to implement a custom image provider but am having trouble understanding the calls that will be made to the Provider/Source pair. For instance, I created a custom ImageProvider and ImageMapSource that creates a 1024x1024 WriteableBitmap as the image source and draws a big X on it.

I'm using the standard RadMap navigation tools and when zooming and panning, the only call I ever get is on the ImageMapSource which calls GetImageSource(3) exactly 2 times. I can pan and zoom all over and I never get another call to GetImageSource and my X is always drawn right in the middle of the screen...

What am I missing? Aren't there supposed to be some calls from the map to my Provider/Source pair to tell me where the user is looking? Why don't I get any calls to GetImageSource() with the new zoom levels?

Thanks,
Michael

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 10 Nov 2011, 08:37 AM
Hi Michael,

Unfortunately it is very complicated and it is hard to reproduce the problem without your solution or code.
I have attached a simple solution which uses a WriteableBitmap as the image source to render an ellipse.
I hope it helps.

Kind regards,
Andrey Murzov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
Map
Asked by
Michael
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or