Results 1 to 10 of 10

Thread: Problems for Brazil

  1. #1
    Etablierter skobbler
    Join Date
    29.08.2014
    Posts
    18

    Problems for Brazil

    Hi
    In your demo app and the app we have developed we can not place by long tap and hold for start or end pins for Brazil.
    All other countries are fine.

  2. #2
    Dev platform evangelist dandronic's Avatar
    Join Date
    31.03.2014
    Posts
    177
    Hello - if you can reproduce the issue with the demo project, can you attach a modified project to this thread so that we can look into it?

  3. #3
    Etablierter skobbler
    Join Date
    29.08.2014
    Posts
    18
    Hi, not possible at this stage to post our project. In your demo app, no start or end find can be placed for Brazil in Simulation mode and in Real, no end pin can be placed.

  4. #4
    Dev platform evangelist dandronic's Avatar
    Join Date
    31.03.2014
    Posts
    177
    If you can reproduce this problem in the demo project - can you edit the code and post the modified demo project?

  5. #5
    Etablierter skobbler
    Join Date
    29.08.2014
    Posts
    18
    There is no need for me to post any edited code. It does not work in the demo project downloaded...

    1. Click to open Project folder.
    2. Click to open*SKMaps
    3. Click to open*SKMapsFrameworkDemo
    4. Open “FrameworkIOSDemo.xcodeproj” using xCode
    5. Select your preferable simulator for this project
    6. Run the project
    7. Select “Car Navigation UI “ or “Pedesrian Navigation UI” under Routing and Navigation
    8. Long tap on map it will place a red pin on map.
    9. Change the menu button on left side from Select End Point to Select Start Point, now again Long tap on map, it will place a green pin in map.
    10. Now scroll map to Brazil, repeat steps 8 and 9, it will not place Red or Green Pin in Brazil but in other countries it will place pins.
    Last edited by outbacktouring; 17.06.2015 at 03:47.

  6. #6

  7. #7
    Oberskobbler
    Join Date
    22.07.2014
    Posts
    399
    Thank you outbacktouring, We will investigate it and we'll get back to you with an answer as soon as we can.

  8. #8
    Etablierter skobbler
    Join Date
    29.08.2014
    Posts
    18
    Thanks. It is an odd bug and only seems to be for Brazil, although I do note that the Forever app and other apps by squabbler in the app store do handle Brazil OK.

  9. #9
    Dev platform evangelist dandronic's Avatar
    Join Date
    31.03.2014
    Posts
    177
    Hello,
    Indeed this is a bug in the demo project - inside SKTNavigationUtils.m, in the locationIsZero function:


    Code:
    + (BOOL)locationIsZero:(CLLocationCoordinate2D)location {
        return (location.latitude < 0.000001 && location.longitude < 0.000001);
    }
    The above code will fail when both latitude and longitude have negative values (the case for Brasil or any other country in South America).

    The code has to be change do something like

    Code:
    + (BOOL)locationIsZero:(CLLocationCoordinate2D)location {
        return (fabs(location.latitude) < 0.000001 && fabs(location.longitude < 0.000001));
    }
    We will fix this in the next release - please make the change yourself in the demo project for the time being

  10. #10
    Etablierter skobbler
    Join Date
    29.08.2014
    Posts
    18
    Thanks, great work and support.

Posting Permissions

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