Map libraries

Libraries used to create Moped web maps

This is a Vis.gl (Uber) library that provides a React API for Mapbox GL JSarrow-up-right and serves as a client to present and select geospatial data within Moped. An example of the data represented in the web maps in this application is the project extent viewed in the Project Summary view or the Map tab of a project.

To draw project lines or project points and add them to the geography of a component, we use Mapbox GL Draw which is the first-party plugin for drawing on a Mapbox GL JS map. The API documentation is herearrow-up-right. Currently in Moped, the draw modes are limited to simple_selectarrow-up-right, draw_line_stringarrow-up-right, and draw_pointarrow-up-right.

This is the first-party geocoding plugin for Mapbox GL which uses the Mapbox Geocoding APIarrow-up-right. To limit the geocoder results, the the bbox prop of this library is used along with the bbox array from the feature collection returned from this queryarrow-up-right (Austin Full Purpose Jurisdiction).

{
  type: "FeatureCollection",
  crs: {
    type: "name",
    properties: {
      name: "EPSG:4326",
    },
  },
  bbox: [
    -97.940377028014,
    30.1337172258415,
    -97.578205982277,
    30.4648268798927,
  ],
  features: [],
}

Last updated

Was this helpful?