Skip to main content
The Seguridad system includes powerful map visualization capabilities for displaying crime incidents and police operations geographically.

Overview

Map visualization helps identify crime patterns, hotspots, and operational coverage areas. The system supports two main map types: crime incident mapping and operations mapping.

Crime Incident Mapping

Access Point

The main crime map interface is accessed through consultaMapa.php, which provides filtering options before displaying the map via resultadoMapa.php.

Map Query Parameters

ur
select
required
Regional UnitSelect the regional unit (Unidad Regional) to display. Choose “TODOS” to show incidents from all units.
dependencia
select
DepartmentFilter by specific police department. This field is dynamically populated based on the selected regional unit.
desde
text
required
Start DateDate in DD-MM-YYYY format. Defaults to current date.
hasta
text
required
End DateDate in DD-MM-YYYY format. Defaults to current date.
tipo_delito
select
Crime TypeFilter map markers by specific crime type. Options include:
  • TODOS (All types)
  • Individual crime types from the tipo_delito table
modus_operandi
select
Modus OperandiFilter by crime method or pattern. Select “TODOS” for all patterns or choose a specific modus operandi.
esclarecidos
select
default:"T"
Case Status
  • T: TODOS (Show all incidents)
  • S: SI (Show only solved cases)
  • N: NO (Show only unsolved cases)

Crime Map Features

Geographic Plotting

Each crime incident is plotted as a marker on the map based on its location coordinates.

Incident Details

Click on map markers to view detailed information about specific incidents.

Multi-Layer Display

Display multiple crime types simultaneously with different marker styles.

Date Range Filtering

View crime patterns over specific time periods.

Operations Mapping

Access Point

Police operations are mapped through consultaMapaOperativos.php, with results displayed via resultadoMapaOperativos.php.

Operations Map Parameters

ur
select
required
Regional UnitSelect the unit to display operations for, or “TODOS” for all units.
dependencia
select
Police Stations (Comisarías)Filter operations by specific police station. The dropdown populates based on the selected regional unit.When “TODOS” is selected for the unit, the station dropdown automatically shows “TODOS” and becomes disabled.
desde
date
required
Start DateOperations start date in YYYY-MM-DD format.
hasta
date
required
End DateOperations end date in YYYY-MM-DD format.
Similar to crime statistics, when querying all units and departments, the date range should not exceed 1 year to prevent system overload.

Operations Map Features

Display the geographic locations where police operations were conducted, including:
  • Checkpoints
  • Patrols
  • Special operations
  • Control points
Visualize police operational coverage across different regions and time periods.
Understand where police resources are being deployed geographically.

Map Interface Components

Interactive Controls

1

Pan and Zoom

Navigate the map by dragging to pan and using scroll wheel or zoom controls to adjust the view level.
2

Marker Selection

Click on individual markers to view detailed information about incidents or operations.
3

Layer Toggle

Enable or disable different data layers to focus on specific information.
4

Filter Adjustment

Modify filters and refresh the map to update displayed data.

Map Legends

The map interface provides legends to distinguish:
  • Different crime types (by marker color or icon)
  • Solved vs. unsolved cases
  • Different operational categories
  • Time periods

Technical Implementation

Data Loading

// Example: Dependent dropdown for departments
function cargaDependencias(selectId) {
  // Loads departments based on selected regional unit
  // Uses AJAX to fetch data from the server
  // Updates the dependencia dropdown dynamically
}

Map Rendering

The system likely uses a JavaScript mapping library (such as Google Maps, Leaflet, or OpenLayers) to:
  1. Initialize the map with appropriate center and zoom level
  2. Plot markers based on query results
  3. Attach popup/tooltip information to each marker
  4. Handle user interactions

Query Workflow

1

Access Map Interface

Navigate to either the crime map or operations map page.
2

Select Geographic Scope

Choose the regional unit and optionally a specific department.
3

Set Time Period

Define the date range for incidents or operations to display.
4

Apply Filters

For crime maps, optionally filter by crime type, modus operandi, and case status.
5

Generate Map

Click “BUSCAR” to load the map in a new window with plotted locations.
6

Interact with Map

Explore the map, click markers for details, and analyze geographic patterns.

Use Cases

Hotspot Identification

Identify areas with high crime concentration to focus patrol resources.

Pattern Analysis

Discover geographic patterns in crime types, times, or methods.

Operations Planning

Plan future operations based on historical incident locations.

Resource Deployment

Optimize police resource allocation based on geographic crime data.

Reporting

Generate visual reports for briefings and public information.

Trend Monitoring

Track how crime patterns shift geographically over time.

Performance Notes

For optimal map performance, limit queries to specific regions and reasonable time periods. Province-wide queries with extensive date ranges may result in slower loading times due to the large number of markers.

Crime Statistics

View detailed statistical reports and data tables

Reports

Generate formal reports and export data

Build docs developers (and LLMs) love