×

Discussion Board

Results 1 to 12 of 12
  1. #1
    Registered User
    Join Date
    Jan 2012
    Posts
    18

    Question How to add custom route to a new Map?

    I'm working on a App that records the route and shows it on a map. The new map control has AddRoute method that shows the route under the street names. This is great. Unfortunately it accepts only MapRoute object that is sealed. Constructor of MapRoute accepts only Route class, that does not have public constructor, Geometry property is read only and it's setter is internal. Route class implements IRoutePath interface, but MapRoute does not accepts it (why do we need this interface anyway?). I have tried MapPolyline, but it is being shown over the street names.
    So my question is, how to add a custom path to the map control?
    P.S. the app should work in offline mode, so RouteQuery is not possible.

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,144

    Re: How to add custom route to a new Map?

    if you want it to look like a route, just add it as polyline, and then add markers where needed to complete it.

  3. #3
    Registered User
    Join Date
    Jan 2012
    Posts
    18

    Re: How to add custom route to a new Map?

    As I wrote in my first post - polylines are OVER street names, the route is UNDER street names. Also the street names over the route are moving while you move the map and stay centered on the screen. Polyline is not a solution!
    What else can I do?

  4. #4
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,144

    Re: How to add custom route to a new Map?

    Sorry missed the point.. I would then suppose that's just a feature of the API. I have not seen any ways on setting Z-orders with the components, so would not know any ways on changing the order things appear on the maps.

  5. #5
    Registered User
    Join Date
    Jan 2012
    Posts
    18

    Re: How to add custom route to a new Map?

    I thought new Map control is from Nokia. Microsoft also does not have an answer

  6. #6
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,144

    Re: How to add custom route to a new Map?

    I'll try checking from behind, but as far as I know the interfaces provided in the SDK are what we currently have..

  7. #7
    Registered User
    Join Date
    Jan 2012
    Posts
    18

    Re: How to add custom route to a new Map?

    Would be cool if MapRoute would accept the IRoutePath interface. But unfortunately it isn't.

  8. #8
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,144

    Re: How to add custom route to a new Map?

    Yep, got the answer that the Route is indeed renders UNDER the street labels, but the API’s ALWAYS render over everything else, so basically best you could do, would be to use partial-transparency with the polyline, and get the things under the line, showing through the line.

    I know its not optimal, but only thing I would have to offer at the moment.

  9. #9
    Registered User
    Join Date
    Jan 2012
    Posts
    18

    Re: How to add custom route to a new Map?

    I thought so. That is what I did. But it same as in old map control. Very sad to get a new shinny control you'v been waiting for a long time, and see that you can't use it's new features.

  10. #10
    Registered User
    Join Date
    Jan 2009
    Location
    Melbourne, Australia
    Posts
    2,578

    Re: How to add custom route to a new Map?

    Quote Originally Posted by nesher_hh View Post
    I thought so. That is what I did. But it same as in old map control. Very sad to get a new shinny control you'v been waiting for a long time, and see that you can't use it's new features.
    Symbianyucca (don't you wish you'd named yourself Nokiayucca now?) - where would be the right place for nesher_hh to post this suggested functionality as a feature request?

  11. #11
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,144

    Re: How to add custom route to a new Map?

    Quote Originally Posted by hamishwillee View Post
    Symbianyucca (don't you wish you'd named yourself Nokiayucca now?) - where would be the right place for nesher_hh to post this suggested functionality as a feature request?
    Not on hurry on changing my name, anyway for the feature requests, I would not know official way, though would suppose its through MS, since its SDK API indeed.

  12. #12
    Registered User
    Join Date
    Jan 2009
    Location
    Melbourne, Australia
    Posts
    2,578

    Re: How to add custom route to a new Map?

    Quote Originally Posted by symbianyucca View Post
    though would suppose its through MS, since its SDK API indeed.
    I guess https://connect.microsoft.com/Visual...eFeedback.aspx - Visual Studio Connect is Microsoft's bug reporting portal for all .net platforms for the past 8 years. It currently has over 300 bugs for windows phone.

Similar Threads

  1. Route Map is not working...
    By Ulala in forum [Archived] Maps API for Javascript
    Replies: 6
    Last Post: 2012-03-19, 20:12
  2. route and record route on 3rd edition
    By jcaradec in forum Symbian Networking & Messaging (Closed)
    Replies: 3
    Last Post: 2007-04-16, 19:07
  3. Record-Route and Route at SIP
    By mhappenhofer in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2005-11-30, 09:22

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •