• JMap.Geometry.isValidGeometry

    Returns true if the provided geometry is valid.

    Parameters

    • geometry: any

      The given geometry object to test

    Returns boolean

    Example

    // returns true
    JMap.Geometry.isValidGeometry({
    "type": "Point",
    "coordinates": [43.6, 10.1]
    })

    // returns false
    JMap.Geometry.isValidGeometry({
    "coordinates": [43.6, 10.1]
    })