Skip to content

Geocode search windows can incorrectly convert doubles #658

@mihakrajnc

Description

@mihakrajnc

When using the geocode search window to find locations, in some locales the gps coordinates will get formatted with a comma instead of a dot, e.g.:

"42,23551, 33,123555" instead of "42.23551, 33.123555 ".

AbstractMap will then not be able to parse the coordinates.

Note: If this is a bug or support ticket, please provide the following information:

  • Unity version: 2018.1.0b12
  • Mapbox SDK version: 1.4
[Exception] ArgumentException: Wrong number of arguments
Conversions.StringToLatLon()    Assets/Addons/Mapbox/Unity/Utilities/Conversions.cs:48
AbstractMap.InitializeMap()    Assets/Addons/Mapbox/Unity/Map/AbstractMap.cs:420
AbstractMap.SetUpMap()    Assets/Addons/Mapbox/Unity/Map/AbstractMap.cs:395
AbstractMap.Start()    Assets/Addons/Mapbox/Unity/Map/AbstractMap.cs:291
[Exception] NullReferenceException: Object reference not set to an instance of an object
RangeTileProvider.Update()    Assets/Addons/Mapbox/Unity/Map/RangeTileProvider.cs:47

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions