XYZ - Developer Guide
  • Introduction
  • Licence
  • Deploying
    • Local Deployments
  • Access
    • Access Control List (ACL)
    • User account registration
    • Password reset
    • Failed login attempts
  • Environment Settings
    • Hosting
    • Access Control
    • Workspace Connections
    • 3rd party API keys
  • Workspaces
    • Title
    • Documentation
    • Locate
    • Locales
      • Gazetteer
    • Layers
      • Tile Layer
      • PostGIS Data Layers
      • Cluster Layer
      • GeoJSON Layer
      • MapBox Vector Tile (MVT) Layer
      • Grid (Hex) Layer
      • Filter
    • Locations
      • infoj
        • Groups
        • Filter
        • Lookups
        • withSelect
        • Table definition
        • Ordered list
        • Geometry
    • Editing
    • Access Restrictions & Filter
    • Workspace Checks
  • Routes
    • / (root)
    • /proxy/request
    • /api
      • /gazetteer
        • /autocomplete
        • /googleplaces
      • /layer
        • /cluster
        • /extent
        • /geojson
        • /grid
        • /mvt/:z/:x/:y
      • /location
        • /edit
          • /delete
          • /image/delete
          • /image/upload
          • /draw
          • /draw/catchment
          • /catchment/create
          • /catchment/delete
          • /update
        • /select
          • /id
          • /cluster
          • /latlng/contains
          • /latlng/nnearest
          • /latlng/intersects
          • /aggregate
        • /field/range
    • /auth
      • /login
      • /register
      • /token
        • /api
        • /renew
      • /user
        • /admin
        • /verify
        • /approve
        • /update
        • /delete
    • /workspace
      • /get
      • /load
      • /admin
      • /admin/json
  • Infrastructure
    • _xyz
      • host
      • layer
      • location
      • mapview
      • tableview
    • Dependencies
      • Webpack
      • SASS
    • Testing
    • Security
      • JWT token
      • Strategy
      • SQL Injections
    • Server
    • Client
Powered by GitBook
On this page
  1. Routes
  2. /api
  3. /layer

/grid

grid data array.

GET geolytix.xyz/api/layer/grid

Query a grid data array for the given viewport.

Query Parameters

Name
Type
Description

locale

string

The locale key.

layer

string

The layer key.

table

string

The PostGIS table.

size

string

The field to size grid cells.

color

string

The field to color grid cells.

west

string

The western bounds of the view port.

south

string

The southern bounds of the view port.

east

string

The eastern bounds of the view port.

north

string

The northern bounds of the view port.

token

string

Required for private endpoints.

[
  [
    -2.073213,
    52.664887,
    "3.60789779426134277128",
    "4.30620059315063492056"
  ],
  [
    -1.952632,
    52.734294,
    "7.24688848013594977801",
    "7.88207392461001708923"
  ],
  [...]
]
'Invalid locale.'

'Invalid layer.'

'Missing table.'

'Invalid parameter.'
'Failed to query PostGIS table.'

Previous/geojsonNext/mvt/:z/:x/:y

Last updated 6 years ago