Constructors

Properties

Extent: typeof Extent = Extent
Graphic: typeof Graphic = Graphic
LineString: typeof LineString = LineString
LineStyle: typeof LineStyle = LineStyle
LinearRing: typeof LinearRing = LinearRing
MultiLineString: typeof MultiLineString = MultiLineString
MultiPoint: typeof MultiPoint = MultiPoint
MultiPolygon: typeof MultiPolygon = MultiPolygon
Point: typeof Point = Point
PointStyle: typeof PointStyle = PointStyle
Polygon: typeof Polygon = Polygon
PolygonStyle: typeof PolygonStyle = PolygonStyle
SpatialReference: typeof SpatialReference = SpatialReference

Methods

  • Convert an ESRI map click event object to a generic RAMPish map click event object

    Parameters

    • esriMapClick: ViewClickEvent | ViewDoubleClickEvent

      an event param from an esri 2D map click or double-click event

    • Optionalid: string | number

      optional id for the map point geometry on the result

    Returns MapClick

    a generic bundle of data matching a subset of the incoming esri data

  • Convert an ESRI map click event object to a generic RAMPish map click event object

    Parameters

    • esriMapMove: ViewPointerMoveEvent

      an event param from an esri 2D map click or double-click event

    Returns MapMove

    a generic bundle of data matching a subset of the incoming esri data

  • Parameters

    Returns
        | "point"
        | "multipoint"
        | "polyline"
        | "polygon"

  • Converts any GeoJson geometry to a corresponding RAMP API geometry

    Parameters

    • geoJsonGeometry: DirectGeometryObject

      a GeoJson geometry

    • Optionalid: string | number

      optional id for the result geometry

    Returns BaseGeometry

    a RAMP API geometry

  • Converts any GeoJson Feature to a RAMP API Graphic

    Parameters

    • geoJsonFeature: any

      a GeoJson Feature

    • OptionalgeomId: string | number

      an id to apply to the geometry of the graphic

    Returns Graphic

    a RAMP API Graphic

  • Converts any RAMP API Graphic to a GeoJson Feature. Any styles or ids will be excluded from the result.

    Parameters

    • rampGraphic: Graphic

      a RAMP API graphic

    Returns any

    a GeoJson Feature

  • Check to see if text provided is a valid image / data URL based on extension type or format.

    Parameters

    • text: string

      string to be matched against valid image types / data url format

    Returns boolean

    true if valid image extension

    isImageUrl