Type Definitions

CircleGeoJsonFeature

Type:
  • GeoJsonFeature
Properties
NameTypeAttributesDescription
geometry.type"Point"GeoJSON Type
geometry.coordinatesArray.<number>GeoJSON Geometry
properties.eagleview.subType"Circle"EagleView SubType to use
properties.eagleview.radiusnumberRadius of the circle
properties.eagleview.style.colorstring<nullable>
Color of the circle border
properties.eagleview.style.sizenumber<nullable>
Size of the border
properties.eagleview.style.opacitynumber<nullable>
Opacity of the circle border
properties.eagleview.style.fillnumber<nullable>
Color to fill the circle with
properties.eagleview.style.fillOpacitynumber<nullable>
Opacity of the circle fill
Example
{
  "type": "Feature",
  "geometry": {
    "type": "Point",
    "coordinates": [-122.126986, 47.639754]
  },
  "properties": {
    "eagleview": {
      "subType": "Circle",
      "radius": 100,
      "style": {
        "size": 5,
        "color": "#FFF",
        "fill": "#AAA",
        "opacity": 0.5,
        "fillOpacity": 0.3
      }
    }
  }
}

GeoJsonFeature

Type:
  • Object
Properties
NameTypeAttributesDescription
type"Feature"Required GeoJSON Type
geometryObjectGeoJSON Geometry
propertiesObject<nullable>
Optional GeoJSON Properties

LineStringGeoJsonFeature

Type:
  • GeoJsonFeature
Properties
NameTypeAttributesDescription
geometry.type"LineString" | "MultiLineString"GeoJSON Type
geometry.coordinatesArray.<Array.<number>> | Array.<Array.<Array.<number>>>GeoJSON Geometry
properties.eagleview.style.sizenumber<nullable>
Size of the line in pixels
properties.eagleview.style.colorstring<nullable>
Hexidecimal string ("#FFF" or "#FFFFFF"). Color of the line
properties.eagleview.style.opacitynumber<nullable>
Decimal between 0.0 and 1.0. Opacity of the line
Examples
{
  "type": "Feature",
  "geometry": {
    "type": "LineString",
    "coordinates": [
      [100.0, 0.0],
      [101.0, 1.0]
    ]
  },
  "properties": {
    "eagleview": {
      "style": {
        "size": 5,
        "color": "#FFF",
        "opacity": 0.5
      }
    }
  }
}
{
  "type": "Feature",
  "geometry": {
    "type": "MultiLineString",
    "coordinates": [
      [[100.0, 0.0],[101.0, 1.0]],
      [[50.0, 0.0],[51.0, 1.0]]
    ]

  },
  "properties": {
    "eagleview": {
      "style": {
        "size": 5,
        "color": "#FFF",
        "opacity": 0.5
      }
    }
  }
}

MarkerGeoJsonFeature

Type:
  • GeoJsonFeature
Properties
NameTypeAttributesDescription
geometry.type"Point"GeoJSON Type
geometry.coordinatesArray.<number>GeoJSON Geometry
properties.eagleview.subType"Marker"EagleView SubType to use
properties.eagleview.svgstring<optional>
SVG string to generate custom marker from
properties.eagleview.iconstring<optional>
Font Awesome icon name
properties.eagleview.style.colorstring<nullable>
Color of the marker
properties.eagleview.style.sizenumber<nullable>
Size of the marker
Examples

Basic marker annotation using FontAwesome icon names.

{
  "type": "Feature",
  "geometry": {
    "type": "Point",
    "coordinates": [-122.126986, 47.639754]
  },
  "properties": {
    "eagleview": {
      "subType": "Marker",
      "icon": "FaMapPin",
      "style": {
        "color": "#FFF",
        "size": 24,
      }
    }
  }
}

Use of an SVG string to create a custom marker annotation. Note that color styles for the SVG must be part of the SVG string, size property works normally.

{
  "type": "Feature",
  "geometry": {
    "type": "Point",
    "coordinates": [-122.126986, 47.639754]
  },
  "properties": {
    "eagleview": {
      "subType": "Marker",
      "svg": `<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
                viewBox="0 0 264.4 264.4" style="enable-background:new 0 0 264.4 264.4;" xml:space="preserve">
                <style type="text/css">
                 .st0{fill:#F15A29;}
                 .st1{fill:#00A651;}
                </style>
                <path class="st0" d="M132.2,0C59.2,0,0,59.2,0,132.2s59.2,132.2,132.2,132.2s132.2-59.2,132.2-132.2S205.2,0,132.2,0z M132.2,225.4
                  c-51.5,0-93.2-41.7-93.2-93.2C39,80.7,80.7,39,132.2,39c51.5,0,93.2,41.7,93.2,93.2C225.4,183.7,183.7,225.4,132.2,225.4z"/>
                <circle class="st1" cx="132.2" cy="132.2" r="54.2"/>
              </svg>`,
      "style": {
        "size": 24,
      }
    }
  }
}

PointGeoJsonFeature

Type:
  • GeoJsonFeature
Properties
NameTypeAttributesDescription
geometry.type"Point" | "MultiPoint"GeoJSON Type
geometry.coordinatesArray.<number> | Array.<Array.<number>>GeoJSON Geometry
properties.eagleview.style.colorstring<nullable>
Hexidecimal string ("#FFF" or "#FFFFFF"). Color of the stroke around the point
properties.eagleview.style.opacitynumber<nullable>
Decimal between 0.0 and 1.0. Opacity of the stroke around the point
properties.eagleview.style.sizenumber<nullable>
Size of the stroke around the point in pixels
properties.eagleview.style.fillstring<nullable>
Hexidecimal string ("#FFF" or "#FFFFFF"). Color of the fill inside the point
properties.eagleview.style.fillOpacitynumber<nullable>
Decimal between 0.0 and 1.0. Opacity of the fill inside the point
Examples
{
  "type": "Feature",
  "geometry": {
    "type": "Point",
    "coordinates": [-122.126986, 47.639754]
  },
  "properties": {
    "eagleview": {
      "style": {
        "color": "#FFF",
        "opacity": 0.5,
        "size": 2,
        "fill": "#F00",
        "fillOpacity": 1.0
      }
    }
  }
}
{
  "type": "Feature",
  "geometry": {
    "type": "MultiPoint",
    "coordinates": [[-77.647679, 43.0645],[-77.647679, 43.065]]
  },
  "properties": {
    "eagleview": {
      "style": {
        "color": "#FFF",
        "opacity": 0.5,
        "size": 2,
        "fill": "#F00",
        "fillOpacity": 1.0
      }
    }
  }
}

PolygonGeoJsonFeature

Type:
  • GeoJsonFeature
Properties
NameTypeAttributesDescription
geometry.type"Polygon" | "MultiPolygon"GeoJSON Type
geometry.coordinatesArray.<Array.<Array.<number>>> | Array.<Array.<Array.<Array.<number>>>>GeoJSON Geometry
properties.eagleview.style.colorstring<nullable>
Hexidecimal string ("#FFF" or "#FFFFFF"). Color of the stroke around the polygon
properties.eagleview.style.opacitynumber<nullable>
Decimal between 0.0 and 1.0. Opacity of the stroke around the polygon
properties.eagleview.style.sizenumber<nullable>
Size of the stroke around the polygon in pixels
properties.eagleview.style.fillstring<nullable>
Hexidecimal string ("#FFF" or "#FFFFFF"). Color of the fill inside the polygon
properties.eagleview.style.fillOpacitynumber<nullable>
Decimal between 0.0 and 1.0. Opacity of the fill inside the polygon
Examples
{
  "type": "Feature",
  "geometry": {
    "type": "Polygon",
    "coordinates": [[[0, 0], [3, 6], [6, 1], [0, 0]]]
  },
  "properties": {
    "eagleview": {
      "style": {
        "size": 5,
        "color": "#FFF",
        "fill": "#AAA",
        "opacity": 0.5,
        "fillOpacity": 0.3
      }
    }
  }
}
{
  "type": "Feature",
  "geometry": {
    "type": "MultiPolygon",
    "coordinates": [
      [[[-77.648, 43.0635],[-77.647, 43.0635],[-77.6475, 43.063],[-77.648, 43.0635]]],
      [[[-77.648, 43.063], [-77.649, 43.063], [-77.6485, 43.0635], [-77.648, 43.063]]]
    ]
  },
  "properties": {
    "eagleview":{
      "style": {
        "size": 5,
        "color": "#FFF",
        "fill": "#AAA",
        "opacity": 0.5,
        "fillOpacity": 0.3
      }
    }
  }
}

TextGeoJsonFeature

Type:
  • GeoJsonFeature
Properties
NameTypeAttributesDescription
geometry.type"Point"GeoJSON Type
geometry.coordinatesArray.<number>GeoJSON Geometry. The text annotation will be anchored to the bottom right of this coordinate.
properties.eagleview.subType"Text"EagleView SubType to use
properties.eagleview.valuestringText to display
properties.eagleview.style.fontFamilystring<nullable>
Font to use. Fonts supported: "Arial", "Tahoma", "Courier New", "Times New Roman", "Verdana"
properties.eagleview.style.colorstring<nullable>
Color of the text. Hexidecimal string ("#FFF" or "#FFFFFF")
properties.eagleview.style.sizenumber<nullable>
Size of the text in pixels
Example
{
  "type": "Feature",
  "geometry": {
    "type": "Point",
    "coordinates": [-122.126986, 47.639754]
  },
  "properties": {
    "eagleview": {
      "subType": "Text",
      "value": "Hello, World!",
      "style": {
        "fontFamily": "Arial",
        "color": "#FFF",
        "size": 10,
      }
    }
  }
}