Deep Link
The Deep Link module is a powerful feature designed to capture external URLs and route them directly into the Gismatrix application. You can use it, for example, to prepare a button in a Windows, web, or mobile application that automatically opens Gismatrix and highlights a specific location on the map, or simply share a generated map link instantly via email or messaging apps.
Accessing the Tool
You can dynamically generate a deep link directly from the map view:
- Via Context Menu: Select the desired objects on the map, click the right mouse button (or the menu display button on mobile devices), and choose the Deep Link option. The application will prompt you to select the desired protocol format. Afterwards, the native system sharing dialog will appear (on supported devices), allowing you to easily send the link via email, SMS, or messaging apps like WhatsApp and Viber. If native system sharing is unavailable, the URL will be safely copied directly to your clipboard.
Integration with External Software
Deep links provide a direct and seamless way to connect and integrate external software programs directly with Gismatrix. This is particularly useful when connecting business software (such as ERP, CRM, or MS Access applications) that manages data about parcels, clients, infrastructure, and other spatial elements.
Use Cases:
- Displaying Client or Parcel Locations: Within your CRM system, parcel registry, or MS Access database, you can add a "Show on Map" button (triggering a hyperlink or Shell command). Upon clicking, a deep link automatically launches Gismatrix, instantly positioning the map and highlighting the specific client, building, or land parcel.
- Infrastructure Viewing and Management: In infrastructure management software (e.g., for water networks), a user clicking on a specific pipe or manhole can trigger a deep link that opens that exact object in Gismatrix. This allows the user to immediately inspect surrounding elements and spatial conditions.
- Triggering Spatial Analytics (SQL): A deep link can pass complex spatial queries to Gismatrix (for
example, utilizing
ST_spatial functions). This enables the external program to initiate an analysis within Gismatrix, which then computes and visually displays the results on the map (e.g., identifying which objects fall within a certain radius or which infrastructure intersects a selected area). - Opening Data Tables Directly in the Browser Tab: External ERP, CRM, or document systems can pass
query_type=browserto open any spatial or standalone attribute table (either in full or filtered by an SQL condition) directly inside the tabular Browser view. - Direct Map Coordinate Jumps: External CAD, surveying, or field programs can center and zoom the Gismatrix
map directly to real-world
X, Ycoordinates (automatically transforming from any suppliedepsgcoordinate system into the active workspace projection).
Supported Platforms & User Experience
Deep linking functionality into Progressive Web Apps (PWAs) depends on the operating system and the browser:
- Windows: PWAs installed through Chrome or Edge natively capture links clicked inside browser tabs. When a
user clicks a link inside an external desktop application (e.g., in an email client like Outlook or via a
Shell command from Microsoft Access / ERP), the link primarily opens in the default web browser.
User Experience & Functionality: The deep link functionality works 100% seamlessly in the browser tab — Gismatrix loads, executes the spatial search, and highlights the target object on the map. If the PWA is already installed, the browser (Chrome or Edge) will display an "Open in app" button (or prompt) in the address bar, allowing the user to easily switch to the standalone application window with a single click. - Android: Capturing links clicked in other applications (like Gmail) works reliably only when the PWA is installed using Chrome. Edge and Firefox typically route links to their own in-app browsers.
- iOS: Currently, there is no native support for routing deep links directly into an installed PWA. Safari intercepts all external links and opens them in new browser tabs. However, Gismatrix intelligently handles this by utilizing cross-tab communication. When a deep link opens in a new tab, the query is seamlessly forwarded to the existing active application instance, and the new redundant tab is silently closed, ensuring a smooth and uninterrupted user experience.
- macOS: Deep linking from external apps works reliably only when the web app is added to the Dock with Safari (and has been interacted with directly). Chrome or Edge can only capture links clicked inside other browser tabs.
- ChromeOS: Deep linking works reliably, as PWAs are natively integrated through Chrome.
Technical Documentation & Parameters
The application captures URL parameters during cold boot, via the launchQueue API, or via cross-tab
communication. The handler processes these parameters to switch applications, change workspaces, and execute map
queries.
URL Parameters
app_id: Validates user access and switches to the specified application context (supports a single ID or a comma-separated list of allowed IDs). If a switch is required, the app reloads silently.workspace_uuid: Verifies and switches the active workspace. If the workspace is not found, a warning is displayed.query_type: Defines the query target:map– executes a spatial search on the map, highlights matching features, zooms to fit, and opens the Info window (requirestableandfilter).browser– opens a spatial or standalone attribute table directly inside the Browser tab (requirestable;filteris optional).
table: Name of the target layer/table (or a comma-separated list of candidate table names, using the first existing match).filter: SQLWHEREclause used to filter records or select map objects.xandy: Coordinates used to center the map view directly on a location.epsg(optional withxandy): Coordinate system code of the supplied coordinates (e.g.,3794orEPSG:4326). Automatically transforms coordinates into the active workspace projection if different.zoom(optional withxandy): Target map zoom level (e.g.,18).action(optional): Quick launch actions –map(switch to Map view),browser(switch to Browser view), orimport(open the universal GIS file import picker).
Advanced Filtering
When executing a map or Browser query, the SQL filter is validated in read-only mode to prevent destructive
operations. The engine natively supports sub-selects and spatial ST_ functions, allowing
for complex geometric queries directly from the URL.
Practical Examples
- Single object selection using a fixed GID:
https://app.gismatrix.com/?app_id=8&query_type=map&table=gurs_izv_rn_hs_crp_reg&filter=gid%3D159757 - Multiple object selection using the IN operator:
https://app.gismatrix.com/?app_id=8&query_type=map&table=gurs_izv_rn_hs_crp_reg&filter=gid+IN+%28112466%2C112826%2C115101%2C151264%2C151265%2C151266%2C151267%2C151268%2C151375%2C159222%2C159223%2C159224%2C159225%2C159757%2C166541%2C167358%2C204073%2C204075%2C204076%2C204167%2C212225%2C212226%2C212227%2C212640%2C212697%29 - Complex selection using a Subselect and Spatial functions:
https://app.gismatrix.com/?app_id=8&query_type=map&table=objects&filter=ST_Intersects(geom, ST_MakeEnvelope(14.5, 46.0, 14.6, 46.1, 4326)) OR __id__ IN (SELECT object_id FROM owners WHERE last_name='Smith') - Opening a table (with an optional SQL filter) directly in the Browser tab:
web+gismatrix://?app_id=8&query_type=browser&table=cadastral_parcels&filter=municipality_id%3D657 - Direct coordinate jump in EPSG:3794 with custom zoom level:
https://app.gismatrix.com/?app_id=8&x=550055&y=157147&epsg=3794&zoom=18
Summary of Protocol Usage
| Use Case | Recommended Protocol | Reason |
|---|---|---|
| Email / Messaging Apps (WhatsApp, Viber, SMS) | https://app.gismatrix.com/... |
Ensures the link works reliably across all devices and recipients (even if PWA is not installed). |
| External Software Integration (MS Access, ERP, Buttons) | web+gismatrix://... |
Enables direct opening inside the standalone PWA window without intermediate browser tabs. |