ImageMapSource.IsLevelSupported never called

2 posts, 0 answers
  1. Michael
    Michael avatar
    6 posts
    Member since:
    Nov 2011

    Posted 07 Nov 2011 Link to this post

    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
  2. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 10 Nov 2011 Link to this post

    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 >>

  3. DevCraft banner
Back to Top