8000 GitHub - MrPooo/rightclick · GitHub
[go: up one dir, main page]

Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Right Click Widget for ArcGIS Experience Builder

Version: 1.0.0
Requires: ArcGIS Experience Builder 1.17.0+
Author: Brian McLeer, City of Grand Junction
License: Apache 2.0

Overview

The Right Click widget extends ArcGIS Experience Builder map functionality with a context menu activated on map right-click. Users can perform spatial operations, measurements, and queries without toolbar buttons.

Features

  • Navigation — Zoom in/out, pan to clicked location
  • Coordinate Tools — Copy coordinates, plot numbered markers, reverse geocoding
  • Measurements — Interactive distance and area measurement with configurable units
  • Markers & Text — Add simple markers and text graphics to map
  • Queries — Spatial feature queries ("What's Here?") on configured feature services
  • Street View — Open Google Street View at clicked location
  • Pictometry — Launch Pictometry viewer (URL configurable)
  • Property Reports — Trigger external property info widget (optional)

Quick Start

1. Install Widget

Copy the rightclick folder to your-extensions/widgets/ in your ArcGIS Experience Builder installation.

2. Add to Experience

  1. Open Experience Builder
  2. In the toolbar, click Insert Widget
  3. Search for "Right Click"
  4. Drag onto canvas to add

3. Configure Map Source

  1. In the widget settings panel, select a Map Widget from the dropdown
  2. The context menu will appear when users right-click the map

4. Enable/Disable Actions

By default, all actions except "Property Report" are enabled. Toggle switches to customize available actions per your needs.

Configuration Sections

Basic Settings

  • Map Widget — Required; select which map widget to hook into

Actions (Toggles)

  • Zoom In/Out
  • Center Here
  • Copy Coordinates / Plot Coordinates / Plot Marker
  • Add Text
  • Street View & Pictometry
  • Measure Distance / Area
  • What's Here? Query

Coordinate System

Configure how coordinates are displayed and copied:

  • Map coordinates (default)
  • Web Mercator
  • Custom WKID

Markers & Text Styling

Customize appearance of plotted markers and text:

  • Plot Coordinates — Numbered markers with coordinate labels
  • Simple Markers — Single-click markers
  • Text Graphics — User-typed text on map

Measurement Settings

  • Default units: feet, meters, miles, kilometers, yards
  • Display: single unit or both metric/imperial

What's Here? Feature Queries

  1. Add feature service URLs
  2. Select query fields
  3. Configure search radius and result limit

Advanced

  • Reverse geocoding service URL
  • Pictometry viewer URL
  • Property report widget targeting (for Property Report action)

Technical Details

  • Tech Stack: TypeScript, React (functional components), jimu-core, jimu-arcgis
  • Map Integration: JimuMapView (ArcGIS JavaScript API 4.x)
  • Storage: All settings in widget config; no backend required
  • Context Menu: Floating menu, screen coordinates; auto-positioned near click point

Files

  • manifest.json — Widget metadata
  • config.json — Default configuration values
  • src/config.ts — TypeScript interfaces and validators
  • src/runtime/widget.tsx — Main widget component (3200+ LOC)
  • src/setting/setting.tsx — Configuration panel (2200+ LOC)

Requirements

  • ArcGIS Experience Builder 1.17.0 or later
  • jimu-arcgis dependency (included in ExB)
  • ESRI ArcGIS JavaScript API 4.x
  • Modern browser (Chrome, Firefox, Safari, Edge)

Support

For issues, feature requests, or documentation, contact the City of Grand Junction GIS team.


Note: See docs/ for architecture, code standards, and detailed configuration reference.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0