Geocoding requires reference to Map?

4 posts, 0 answers
  1. Ken
    Ken avatar
    104 posts
    Member since:
    Aug 2010

    Posted 03 Aug 2010 Link to this post

    Hi,

    I tried playing with the RadMap a bit today and it's really cool. However, I noticed that when doing a geocoding if I don't set the MapControl property for the provider I get some exception. Is this property really required? I mean, in a MVVM scenario you'd usually not have a reference to the map control in the ViewModel.

    Thanks!
  2. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 04 Aug 2010 Link to this post

    Hello Adrian,

    This behavior is a result of the integration between services and map control made for usability purposes.
    The geocoding, routing and search services are designed for using with RadMap control instance. They use RadMap data such as distance unit to provide requests using already specified properties of RadMap. Also the response contains useful information like to the "best view" rectangle for returned data. It required the MapControl, because it depends on a size of the map viewport.

    Could you, please, explain your scenario in more details, so we can provide you with further assistance?

    Greetings,
    Andrey Murzov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
  4. Ken
    Ken avatar
    104 posts
    Member since:
    Aug 2010

    Posted 04 Aug 2010 Link to this post

    Hi Andrey,

    My scenario is a pretty straightforward case of MVVM. I have a view which contains the RadMap and a view-model for it. The view-model would ideally make the webservice-calls and expose results as properties (e.g. Location, RoutePoints etc) to which the view/RadMap binds.

    Currently I have it working but for this I'm using the Bing services directly and was just a bit confused about the map dependency (also, the exception didn't help much).

    So I guess this behavior is by design :)

    Thanks,
    Adrian
  5. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 09 Aug 2010 Link to this post

    Hello Adrian,

    We will change this behavior in the future releases. You can check when this functionality will be available using our PITS:

    http://www.telerik.com/support/pits.aspx#/public/silverlight/2986

    Best wishes,
    Andrey Murzov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top