Substring widget not capturing correct values from GPS location widget

  • Profile Image
    Asked on December 03, 2017 at 05:22 PM

    My maps having been working well using GPS location and the sub string widgets as displayed above.

    I have noticed though that certain areas on the map don't display correctly in the longitude and latitude examples from above.

    For example if you use search for Sri lanka in your demo above you will see that the longitude sub string widget displays it as (0.77180) instead of (80.77180).

    This setup works all over the world except for just above the equator line where is misses the first value of the longitude.

    The easiest way to see what I'm talking about is to manually drag the map pointer to just above the equator line in your demo and you will see the widget getting confused.

    Would there be a fix to this?


  • Profile Image
    Answered on December 03, 2017 at 10:45 PM

    Just wondering if there is a way to copy the correct longitude and latitude values?

    Since the substring widget is having trouble collecting the correct values based on the number that gets displayed closer to the equator as they are smaller than the rest of the world.

    Is there a way to tell it to copy all the values up until the comma and then copy all values after the comma?

    That way it won't have any issues with the amount of numbers displayed.


  • Profile Image
    Answered on December 04, 2017 at 07:07 AM

    Please note that subsrting widget uses a fixed character count value for the start and end character of the string.

    Unfortunately it is currently not possible to get the index value of the any character of string. Let me test and get back to you if I am able to find any workaround to achieve your requirement.