×

Discussion Board

Results 1 to 4 of 4

Threaded View

  1. #1
    Registered User
    Join Date
    Jun 2013
    Posts
    6

    Issue with Route Component in Public Transit Mode

    The route component seems to have a problem when rendering a route with the mode set to public transit. I am using the route adapter to find the route between 2 waypoints and the component is drawing an additional shape on the map. The snippet below will reproduce the issue I am coming across in my app.


    nokia.mh5.assetsPath = "lib/";
    nokia.mh5.appId = "YOUR_APP_ID";
    nokia.mh5.appCode = "YOUR_APP_CODE";
    var map = new nokia.mh5.components.Map({});
    document.getElementById("mapContainer").appendChild(map.root);
    var waypoints = [{ latitude: 40.835537, longitude: -73.921400 }, { latitude: 40.804138, longitude: -73.937594}];
    nokia.mh5.adapters.Route.fetch(waypoints,
    { mode: "pt" },
    function (result) {
    //success
    waypoints.forEach(function (wayPoi) {
    map.pois = waypoints;
    map.route = result.shape;
    map.box = waypoints; //result.box;
    map.zoom = 14;
    });
    }, function (errormsg) {
    console.log("Erorr ", errormsg);
    }
    );
    Last edited by drewizkid; 2013-06-29 at 18:56.

Similar Threads

  1. Windows Phone 8 Public Transit Routes
    By drewizkid in forum Maps API for Windows Phone
    Replies: 2
    Last Post: 2013-06-22, 21:59
  2. Qt SDK 1.1.4 smart installer issue (qt component 1.1 upgrade)
    By yogeshwarp in forum [Archived] Nokia Smart Installer for Symbian
    Replies: 5
    Last Post: 2011-11-20, 12:13
  3. Creating IAP in Hidden/Public mode
    By shivprakash.m in forum Symbian
    Replies: 1
    Last Post: 2008-04-09, 08:18
  4. route and record route on 3rd edition
    By jcaradec in forum Symbian Networking & Messaging (Closed)
    Replies: 3
    Last Post: 2007-04-16, 19:07
  5. Weird behaviour Text component in dictionary mode
    By bercobeute in forum Symbian
    Replies: 1
    Last Post: 2006-01-10, 20:30

Posting Permissions

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