OpenGeoscience / geojs

High-performance visualization and interactive data exploration of scientific and geospatial location aware datasets

Home Page:https://opengeoscience.github.io/geojs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Points with string values for lat/long behave inconsistently

waxlamp opened this issue · comments

When supplying location data for points as strings, sometimes the geoOn() API picks them up, and sometimes it doesn't.

The trouble here is the inconsistency, since it can be considered a client error to supply non-numeric data in the first place. The solution could be either to coerce all string values to numbers, to present a type error, or to document that non-numeric location data leads to undefined behavior.