Token导航 LogoToken导航TokenDH.com
前端设计敏感数据github未标认证来源可访问许可证需确认审计提醒

syncfusion-angular-mapssyncfusion Angular maps 命令行

Agent Skill

syncfusion-angular-maps 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,082

周安装

46

GitHub Stars

公开资料未说明

下载量

379
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:syncfusion-angular-maps(syncfusion Angular maps 命令行)
来源仓库:https://github.com/syncfusion/angular-ui-components-skills
仓库路径:skills/syncfusion-angular-maps
安装命令:
npx skills add https://github.com/syncfusion/angular-ui-components-skills --skill syncfusion-angular-maps
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/syncfusion/angular-ui-components-skills --skill syncfusion-angular-maps

简介

用于处理 GitHub 仓库、Issue 和 Pull Request 协作信息。

  • 适合围绕仓库状态和代码变更进行整理。
  • 通过 GitHub 仓库安装,支持主流宿主环境。
  • 使用前建议确认权限范围和维护状态。syncfusion-angular-maps 属于前端设计类 Skill,可作为该场景下的辅助能力补充。
  • 注意可能涉及联网和命令执行,需谨慎使用。

SKILL.md

Implementing Syncfusion Angular Maps

Comprehensive guide for implementing the Syncfusion Angular Maps component to visualize geographical data with interactive features, multiple layers, and rich customization options.

When to Use This Skill

Use this skill when you need to:

  • Visualize geographical data - Display statistical data on world maps, country maps, regional maps, or custom geographic shapes
  • Create interactive maps - Build maps with zoom, pan, selection, highlighting, and tooltip interactions
  • Plot locations - Add markers, bubbles, or annotations to highlight specific geographic points
  • Display map layers - Work with multiple overlapping layers using GeoJSON data or map providers (Bing, OpenStreetMap, Azure)
  • Color-code regions - Apply color mapping based on data values for choropleth/heat map visualizations
  • Custom map visualizations - Create non-geographic visualizations like seat layouts, floor plans, or stadium maps
  • Navigation and routing - Draw navigation lines or routes between markers
  • Export and print maps - Generate printable or exportable map visualizations
  • Build dashboards - Integrate maps into Angular applications for business intelligence or analytics

Component Overview

The Syncfusion Angular Maps component (@syncfusion/ej2-angular-maps) is a powerful data visualization tool that renders geographical data using Scalable Vector Graphics (SVG). It supports:

  • Multiple layers and sublayers for complex visualizations
  • GeoJSON data binding for custom shapes and regions
  • Map providers (Bing Maps, OpenStreetMap, Azure Maps) as base layers
  • Six projection types (Mercator, Equirectangular, Miller, Eckert3, Eckert5, Eckert6, Winkel3, AitOff)
  • Rich visualization elements - markers, bubbles, data labels, legends, navigation lines, annotations
  • Interactive features - zooming, panning, tooltips, selection, highlighting
  • Responsive and accessible design with WCAG compliance

Documentation and Navigation Guide

Getting Started

📄 Read: references/getting-started.md

When implementing Maps for the first time or setting up a new Angular project:

  • Installing dependencies (@syncfusion/ej2-angular-maps package)
  • Setting up Angular environment and importing MapsModule
  • Creating first basic map with world map data
  • Understanding module injection for features (MarkerService, BubbleService, etc.)
  • Adding CSS themes and styling
  • Running the application

Layers and Data Binding

📄 Read: references/layers-and-data.md

For working with map layers, shape data, and data source binding:

  • Understanding layer structure and configuration
  • Loading GeoJSON shape data (shapeData property)
  • Binding external data sources (dataSource, shapeDataPath, shapePropertyPath)
  • Creating multiple layers and sublayers
  • Layer types (base layer vs sublayer)
  • Switching between layers (baseLayerIndex)
  • Rendering custom shapes for non-geographic visualizations
  • GeometryType options (Geographic vs Normal)

Markers

📄 Read: references/markers.md

For adding and customizing location markers:

  • Adding markers with latitude/longitude data
  • Marker shapes (Balloon, Circle, Cross, Diamond, Image, Rectangle, Star, Triangle)
  • Custom marker templates
  • Marker styling (size, color, border, opacity)
  • Dynamic markers with data binding
  • Marker clustering
  • Marker animations and transitions
  • Marker tooltips and events
  • Creating routes between markers

Data Visualization Features

📄 Read: references/data-visualization.md

For visualizing data with bubbles, colors, labels, and legends:

  • Bubbles - Size-based visualization for quantitative data
  • Color mapping - Range color mapping, equal color mapping, desaturation color mapping
  • Data labels - Displaying shape names or data values on the map
  • Legends - Adding legends for color mapping and bubbles
  • Navigation lines - Drawing lines between locations
  • Annotations - Adding custom HTML content at specific positions
  • Combining multiple visualization features

User Interactions

📄 Read: references/user-interactions.md

For implementing interactive map behaviors:

  • Zooming - Mouse wheel zoom, pinch zoom, double-click zoom, zoom toolbar
  • Panning - Mouse drag and touch panning
  • Tooltips - Layer tooltips, marker tooltips, bubble tooltips
  • Selection - Shape selection, marker selection, bubble selection
  • Highlighting - Hover highlight effects
  • Interactive legend - Clicking legend items to show/hide shapes
  • Event handling (click, hover, zoom, pan events)
  • Touch and mobile support

Map Providers

📄 Read: references/map-providers.md

For integrating external map services:

  • Overview of map provider support
  • Bing Maps integration and API key configuration
  • OpenStreetMap (OSM) integration
  • Azure Maps integration
  • Provider-specific features and limitations
  • Combining map providers with shape layers
  • URL templates and tile services
  • Zoom level configuration

Polygon Shapes

📄 Read: references/polygon-shapes.md

For drawing and customizing polygons:

  • Adding polygon overlays to maps
  • Polygon configuration and data structure
  • Styling polygons (fill, border, opacity)
  • Polygon events (click, hover)
  • Use cases (highlighting regions, boundaries, zones)
  • Dynamic polygon rendering

Customization and Styling

📄 Read: references/customization.md

For theming and visual customization:

  • Built-in themes (Material, Bootstrap, Fabric, Tailwind, etc.)
  • CSS customization and theme overrides
  • Shape styling (fill, border, color schemes)
  • Responsive design patterns
  • Map projections - Choosing and configuring projection types
  • Background customization (colors, images)
  • Title and subtitle styling
  • Border and margin configuration

Localization and Internationalization

📄 Read: references/localization.md

For globalizing map content:

  • Internationalization (i18n) setup
  • Localization (l10n) for different languages
  • Right-to-left (RTL) support
  • Number formatting for different locales
  • Currency formatting in tooltips/labels
  • Date and time formatting
  • Culture-specific rendering

Advanced Features

📄 Read: references/advanced-features.md

For advanced capabilities and APIs:

  • Print and Export - Printing maps, exporting to PNG/JPEG/SVG/PDF
  • State persistence - Saving and restoring map state
  • Public methods - Programmatic control (refresh, print, export, etc.)
  • Events reference - Complete list of available events
  • Creating routes - Drawing navigation routes between markers
  • Custom path rendering - Advanced path and line customization
  • Drilldown navigation - Creating hierarchical map navigation

Accessibility

📄 Read: references/accessibility.md

For accessible map implementations:

  • WCAG 2.1 compliance guidelines
  • Keyboard navigation support
  • ARIA attributes and roles
  • Screen reader compatibility
  • High contrast theme support
  • Focus indicators and management
  • Alternative text for shapes and markers

Quick Start

Installation

# Install the Maps package
npm install @syncfusion/ej2-angular-maps --save

Basic Implementation

import { Component } from '@angular/core';
import { MapsModule } from '@syncfusion/ej2-angular-maps';
import { world_map } from './world-map'; // GeoJSON data

@Component({
  selector: 'app-root',
  standalone: true,
  imports: [MapsModule],
  template: `
    <ejs-maps id='maps-container'>
      <e-layers>
        <e-layer [shapeData]='shapeData'></e-layer>
      </e-layers>
    </ejs-maps>
  `
})
export class AppComponent {
  public shapeData: object = world_map;
}

With Data Binding and Color Mapping

import { Component } from '@angular/core';
import { MapsModule } from '@syncfusion/ej2-angular-maps';
import { world_map } from './world-map';

@Component({
  selector: 'app-root',
  standalone: true,
  imports: [MapsModule],
  template: `
    <ejs-maps id='maps-container'>
      <e-layers>
        <e-layer
          [shapeData]='shapeData'
          [dataSource]='dataSource'
          shapeDataPath='Country'
          shapePropertyPath='name'
          [shapeSettings]='shapeSettings'>
        </e-layer>
      </e-layers>
    </ejs-maps>
  `
})
export class AppComponent {
  public shapeData: object = world_map;

  public dataSource: object[] = [
    { Country: 'United States', Population: 331002651, Code: 'US' },
    { Country: 'India', Population: 1380004385, Code: 'IN' },
    { Country: 'China', Population: 1439323776, Code: 'CN' }
  ];

  public shapeSettings: object = {
    colorValuePath: 'Population',
    colorMapping: [
      { from: 0, to: 100000000, color: '#C5E8B7' },
      { from: 100000001, to: 500000000, color: '#5BC85A' },
      { from: 500000001, to: 2000000000, color: '#238B45' }
    ]
  };
}

Common Patterns

Pattern 1: Map with Markers and Tooltips

import { Component } from '@angular/core';
import { MapsModule, MarkerService, MapsTooltipService } from '@syncfusion/ej2-angular-maps';
import { world_map } from './world-map';

@Component({
  selector: 'app-root',
  standalone: true,
  imports: [MapsModule],
  providers: [MarkerService, MapsTooltipService],
  template: `
    <ejs-maps id='maps-container'>
      <e-layers>
        <e-layer
          [shapeData]='shapeData'
          [markerSettings]='markerSettings'>
        </e-layer>
      </e-layers>
    </ejs-maps>
  `
})
export class AppComponent {
  public shapeData: object = world_map;

  public markerSettings: object[] = [{
    visible: true,
    dataSource: [
      { latitude: 40.7128, longitude: -74.0060, name: 'New York' },
      { latitude: 51.5074, longitude: -0.1278, name: 'London' },
      { latitude: 35.6762, longitude: 139.6503, name: 'Tokyo' }
    ],
    shape: 'Circle',
    fill: '#FF6347',
    height: 15,
    width: 15,
    tooltipSettings: {
      visible: true,
      valuePath: 'name'
    }
  }];
}

Pattern 2: Interactive Map with Zoom and Legend

import { Component } from '@angular/core';
import { MapsModule, ZoomService, LegendService } from '@syncfusion/ej2-angular-maps';
import { world_map } from './world-map';

@Component({
  selector: 'app-root',
  standalone: true,
  imports: [MapsModule],
  providers: [ZoomService, LegendService],
  template: `
    <ejs-maps
      id='maps-container'
      [zoomSettings]='zoomSettings'
      [legendSettings]='legendSettings'>
      <e-layers>
        <e-layer
          [shapeData]='shapeData'
          [dataSource]='dataSource'
          shapeDataPath='Country'
          shapePropertyPath='name'
          [shapeSettings]='shapeSettings'>
        </e-layer>
      </e-layers>
    </ejs-maps>
  `
})
export class AppComponent {
  public shapeData: object = world_map;

  public dataSource: object[] = [
    { Country: 'United States', Category: 'High' },
    { Country: 'Canada', Category: 'Medium' },
    { Country: 'Mexico', Category: 'Low' }
  ];

  public shapeSettings: object = {
    colorValuePath: 'Category',
    colorMapping: [
      { value: 'High', color: '#E74C3C' },
      { value: 'Medium', color: '#F39C12' },
      { value: 'Low', color: '#27AE60' }
    ]
  };

  public zoomSettings: object = {
    enable: true,
    toolbars: ['Zoom', 'ZoomIn', 'ZoomOut', 'Pan', 'Reset']
  };

  public legendSettings: object = {
    visible: true,
    position: 'Bottom'
  };
}

Pattern 3: Multi-Layer Map with Sublayers

import { Component } from '@angular/core';
import { MapsModule } from '@syncfusion/ej2-angular-maps';
import { world_map } from './world-map';
import { usa_map } from './usa-map';
import { california } from './california';

@Component({
  selector: 'app-root',
  standalone: true,
  imports: [MapsModule],
  template: `
    <ejs-maps id='maps-container'>
      <e-layers>
        <!-- Base layer -->
        <e-layer
          [shapeData]='usaMap'
          [shapeSettings]='baseShapeSettings'>
        </e-layer>

        <!-- Sublayer highlighting California -->
        <e-layer
          type='SubLayer'
          [shapeData]='californiaMap'
          [shapeSettings]='sublayerShapeSettings'>
        </e-layer>
      </e-layers>
    </ejs-maps>
  `
})
export class AppComponent {
  public usaMap: object = usa_map;
  public californiaMap: object = california;

  public baseShapeSettings: object = {
    fill: '#E5E5E5',
    border: { color: '#000000', width: 0.5 }
  };

  public sublayerShapeSettings: object = {
    fill: '#FFD700',
    border: { color: '#FF6347', width: 2 }
  };
}

Key Configuration Options

Layer Settings

  • shapeData - GeoJSON data for shapes
  • dataSource - External data to bind
  • shapeDataPath - Field in dataSource identifying shape
  • shapePropertyPath - Field in shapeData matching dataSource
  • shapeSettings - Visual styling for shapes
  • type - Layer type ('Layer' or 'SubLayer')

Shape Settings

  • fill - Shape fill color
  • border - Border configuration (color, width, opacity)
  • colorValuePath - Data field for color mapping
  • colorMapping - Array of color ranges or values
  • autofill - Auto-generate colors for shapes

Marker Settings

  • visible - Show/hide markers
  • dataSource - Marker data with latitude/longitude
  • shape - Marker shape type
  • height / width - Marker dimensions
  • template - Custom HTML template
  • tooltipSettings - Marker tooltip configuration

Zoom Settings

  • enable - Enable/disable zooming
  • zoomFactor - Initial zoom level
  • maxZoom / minZoom - Zoom limits
  • toolbars - Zoom control buttons
  • mouseWheelZoom - Enable mouse wheel zooming
  • pinchZooming - Enable touch pinch zoom

Legend Settings

  • visible - Show/hide legend
  • position - Legend placement (Top, Bottom, Left, Right)
  • mode - Legend mode ('Default', 'Interactive')
  • type - Legend type ('Layers', 'Bubbles', 'Markers')

Common Use Cases

Use Case 1: Sales Dashboard by Region

Create choropleth maps showing sales data across countries or states with color-coded regions, interactive tooltips, and legends. Useful for business intelligence dashboards.

Use Case 2: Store Locator Map

Display store locations with custom marker icons, clustering for dense areas, and tooltips showing store details. Integrate with map providers for street-level detail.

Use Case 3: Election Results Visualization

Show election results across districts/states using color mapping, with drilldown capability to explore detailed regional data.

Use Case 4: Real-time Tracking Dashboard

Plot vehicle, shipment, or asset locations with animated markers, navigation lines showing routes, and real-time data updates.

Use Case 5: Weather or Environmental Data

Visualize temperature, rainfall, air quality, or other environmental metrics using color gradients and data labels on geographic regions.

Use Case 6: COVID-19 or Disease Spread Tracking

Display case counts, vaccination rates, or infection rates by region using bubble sizes and color intensity.

Use Case 7: Flight Route Visualization

Show flight paths between cities using navigation lines, with markers for airports and interactive selection.

Use Case 8: Custom Seating Layouts

Use custom GeoJSON shapes for non-geographic visualizations like seat selection in theaters, stadiums, or transportation.

Module Injection Requirements

The Maps component uses feature-specific services that must be injected:

import {
  MapsModule,
  MarkerService,          // For markers
  BubbleService,          // For bubbles
  DataLabelService,       // For data labels
  LegendService,          // For legends
  MapsTooltipService,     // For tooltips
  ZoomService,            // For zoom and pan
  SelectionService,       // For selection
  HighlightService,       // For highlighting
  NavigationLineService,  // For navigation lines
  AnnotationsService,     // For annotations
  PolygonService          // For polygons
} from '@syncfusion/ej2-angular-maps';

@Component({
  providers: [
    MarkerService,
    LegendService,
    MapsTooltipService,
    ZoomService
    // Add only the services you need
  ]
})

API Reference Documentation

Complete API Catalog

📘 Full API Reference Guide - Comprehensive documentation of all Maps APIs

Quick API Links by Category

Core Component

Layer Configuration

Markers & Bubbles

User Interactions

Customization

Key Events (25+ Total)

Enumerations

Event Interfaces

Context-Specific API References

Each reference guide includes relevant API tables:


Next Steps

  1. Start with getting-started.md to set up your first map
  2. Explore layers-and-data.md to understand data binding
  3. Add markers.md to plot locations
  4. Implement user-interactions.md for zoom, pan, and tooltips
  5. Review customization.md for styling and themes
  6. Check accessibility.md to ensure WCAG compliance

Package: @syncfusion/ej2-angular-maps Documentation: Syncfusion Angular Maps Documentation Demos: Syncfusion Angular Maps Demos

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude

34.13%
按下载量换算129

Codex

33.3%
按下载量换算126

Cursor

19.55%
按下载量换算74

Gemini CLI

10.16%
按下载量换算39

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills