NextGIS Frontend
    Preparing search index...

    Hierarchy

    • NgwConnector
      • default
    Index
    cache: default
    emitter: EventEmitter<DefaultEventMap> = ...
    id: number = ...
    resources: ResourcesControl
    user?: UserInfo
    withCredentials?: boolean = undefined
    errors: __module = errors
    • Establishing a connection with NextGIS Web to fulfill all other requests.

      Parameters

      Returns Promise<PyramidRoute>

      This method need not be called manually as it is used when forming a request in apiRequest. Can be used to check connection.

      const connector = new NgwConnector({ baseUrl: 'https://demo.nextgis.com' });
      connector.connect()
      .then(() => console.log('Ok'))
      .catch((er) => console.log('Connection problem', er));

    post

    • Fast way to specify the connection address to NextGIS Web. The current connection will be severed.

      Parameters

      • baseUrl: string

        NGW url

      Returns void