Token导航 LogoToken导航TokenDH.com
待分类external-servicegithub未标认证来源可访问许可证需确认审计通过

syncfusion-aspnetcore-maps同步融合 aspnetcore 映射

Agent Skill

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

总安装

216

周安装

9

GitHub Stars

公开资料未说明

下载量

72
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

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

简介

同步融合 ASP.NET Core 地图组件,集成地理空间数据展示功能。

  • 适用于位置服务、物流跟踪、区域分析等地图相关应用。
  • 通过 GitHub 安装并接入地图服务商 API,支持自定义图层叠加。
  • 使用前需申请地图服务密钥并遵守调用频次限制。syncfusion-aspnetcore-maps 属于待分类类 Skill,可作为该场景下的辅助能力补充。
  • 涉及用户位置信息时应获得明确授权并匿名化处理。

SKILL.md

Implementing Syncfusion Maps for ASP.NET Core

The Syncfusion Maps component is a powerful tool for visualizing geographical data using Scalable Vector Graphics (SVG). It supports GeoJSON data, multiple layers, map providers (Bing, Azure, OpenStreetMap), and rich interactive features like zooming, panning, tooltips, and selection.

When to Use This Skill

Use the Syncfusion Maps component when you need to:

  • Visualize geographical data - Display country, state, or regional data on interactive maps
  • Create choropleth maps - Show data distribution using color mapping across regions
  • Plot location markers - Display points of interest, offices, stores, or custom locations
  • Render bubble maps - Visualize quantitative data with size-based bubbles on geographical locations
  • Integrate map providers - Use Bing Maps, Azure Maps, or OpenStreetMap as base layers
  • Show custom shapes - Render custom GeoJSON shapes for specific regions or areas
  • Build interactive dashboards - Create zoomable, pannable maps with tooltips and selection
  • Display navigation routes - Show navigation lines connecting different locations
  • Overlay annotations - Add custom HTML/text annotations on maps
  • Create multi-layer visualizations - Combine multiple data layers on a single map

Component Overview

Key Capabilities:

  • 📍 Multiple Layers - Support for unlimited layers and sublayers with independent configuration
  • 🗺️ GeoJSON Support - Load and render custom geographical shapes
  • 🌐 Map Providers - Integration with Bing Maps, Azure Maps, and OpenStreetMap
  • 🎨 Color Mapping - Visualize data with equal, range, and desaturation color schemes
  • 📌 Markers & Bubbles - Plot locations with customizable markers and size-based bubbles
  • 🏷️ Data Labels - Display shape names and data values with smart positioning
  • 🎯 Interactivity - Zoom, pan, tooltip, selection, and highlight features
  • 📊 Legend - Interactive legends for color mapping, markers, and bubbles
  • ✏️ Annotations - Custom HTML overlays at specific coordinates
  • 🌍 Projections - Support for 6 map projection types
  • 🖨️ Export - Print and export maps to PNG, JPEG, SVG, PDF formats
  • Accessibility - WCAG compliant with keyboard navigation and screen reader support

Documentation and Navigation Guide

Getting Started and Installation

📄 Read: references/getting-started.md

When user needs to:

  • Set up the Maps component for the first time
  • Install NuGet packages and configure dependencies
  • Add tag helpers and script references
  • Create a basic map with GeoJSON data
  • Understand the minimal setup requirements

Layers and GeoJSON Data

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

When user needs to:

  • Understand map layer architecture
  • Work with GeoJSON format and custom shapes
  • Add multiple layers or sublayers
  • Load GeoJSON from files or URLs
  • Configure layer visibility and ordering
  • Handle layer-specific settings

Data Binding and Population

📄 Read: references/data-binding.md

When user needs to:

  • Bind data source to map shapes
  • Configure ShapeDataPath and ShapePropertyPath
  • Match data records to geographical shapes
  • Bind data from JSON, databases, or APIs
  • Update data dynamically
  • Transform data for visualization

Markers

📄 Read: references/markers.md

When user needs to:

  • Add location markers to maps
  • Use different marker types (Circle, Image, Letter, Template)
  • Customize marker appearance (size, color, borders)
  • Position markers using latitude/longitude
  • Add marker tooltips and events
  • Implement marker clustering
  • Create custom marker templates

Bubbles

📄 Read: references/bubbles.md

When user needs to:

  • Create bubble visualizations on maps
  • Size bubbles based on data values
  • Configure bubble colors and opacity
  • Set minimum and maximum bubble radius
  • Add bubble tooltips
  • Implement multiple bubble sets
  • Handle bubble selection

Data Labels

📄 Read: references/data-labels.md

When user needs to:

  • Display labels on map shapes
  • Configure label positioning and alignment
  • Use smart label modes (Trim, Hide, None)
  • Customize label fonts and styling
  • Create template-based labels
  • Handle label intersections
  • Add labels to markers and bubbles

Color Mapping

📄 Read: references/color-mapping.md

When user needs to:

  • Apply colors to shapes based on data
  • Configure equal color mapping (value-to-color)
  • Set up range color mapping (min-max ranges)
  • Use desaturation color mapping (gradient opacity)
  • Create choropleth maps
  • Define custom color palettes
  • Handle accessibility and contrast

Legend

📄 Read: references/legend.md

When user needs to:

  • Add legend to maps
  • Configure legend positioning and alignment
  • Enable interactive legend (toggle, highlight)
  • Customize legend shapes and text
  • Create legends for color mapping
  • Add legends for markers and bubbles
  • Implement legend paging for many items

Annotations

📄 Read: references/annotations.md

When user needs to:

  • Add custom HTML content to maps
  • Position annotations at specific coordinates
  • Create text or template-based annotations
  • Style and align annotations
  • Handle annotation z-index and layering
  • Add dynamic annotations
  • Create responsive annotations

User Interactions

📄 Read: references/user-interactions.md

When user needs to:

  • Enable zooming (mouse wheel, pinch, toolbar)
  • Configure panning features
  • Add tooltips with custom templates
  • Implement shape selection and multi-selection
  • Enable highlight on hover
  • Handle click events
  • Add navigation lines between locations
  • Set zoom levels and constraints

Map Providers Integration

📄 Read: references/map-providers.md

When user needs to:

  • Integrate Bing Maps (Road, Aerial, Hybrid)
  • Set up Azure Maps with API keys
  • Use OpenStreetMap (OSM) tiles
  • Configure custom tile servers
  • Combine providers with GeoJSON layers
  • Handle provider authentication
  • Compare provider features and limitations

Advanced Features

When user needs to:

  • Render polygons with custom data
  • Add navigation lines with arrows
  • Print or export maps to images/PDF
  • Implement internationalization (i18n)
  • Configure localization (l10n)
  • Enable accessibility features
  • Implement state persistence
  • Use programmatic methods
  • Optimize performance
  • Migrate from EJ1 to EJ2

Quick Start Example

Basic Map with GeoJSON and Color Mapping

@using Newtonsoft.Json
@using Syncfusion.EJ2.Maps

@{
    // Load GeoJSON data
    string geoJson = System.IO.File.ReadAllText("wwwroot/scripts/MapsData/WorldMap.json");
    var worldMapData = JsonConvert.DeserializeObject(geoJson);

    // Load data source
    string dataJson = System.IO.File.ReadAllText("wwwroot/scripts/MapsData/population.json");
    var populationData = JsonConvert.DeserializeObject(dataJson);

    // Define color mapping
    var colorMapping = new List<MapsColorMapping> {
        new MapsColorMapping { From = 0, To = 100000000, Color = "#C6E7F0", Label = "< 100M" },
        new MapsColorMapping { From = 100000000, To = 500000000, Color = "#6AB7D6", Label = "100M - 500M" },
        new MapsColorMapping { From = 500000000, To = 1500000000, Color = "#1A7FA0", Label = "> 500M" }
    };

    var propertyPath = new[] { "name" };
}

<ejs-maps id="maps" height="600px">
    <e-maps-titlesettings text="World Population by Country">
        <e-maps-titlesettings-textstyle size="16px" fontWeight="500"></e-maps-titlesettings-textstyle>
    </e-maps-titlesettings>

    <e-maps-legendsettings visible="true" position="Bottom"></e-maps-legendsettings>

    <e-maps-layers>
        <e-maps-layer shapeData="worldMapData"
                      dataSource="populationData"
                      shapeDataPath="Country"
                      shapePropertyPath="propertyPath">
            <e-layersettings-shapesettings
                fill="#E5E5E5"
                colorValuePath="Population"
                colorMapping="colorMapping">
            </e-layersettings-shapesettings>

            <e-layersettings-tooltipsettings visible="true" valuePath="Country">
                <e-tooltipsettings-template>
                    <div style="padding: 8px;">
                        <strong>${Country}</strong><br/>
                        Population: ${Population}
                    </div>
                </e-tooltipsettings-template>
            </e-layersettings-tooltipsettings>
        </e-maps-layer>
    </e-maps-layers>
</ejs-maps>

Map with Markers

@using Newtonsoft.Json
@using Syncfusion.EJ2.Maps

@{
    var worldMapData = JsonConvert.DeserializeObject(System.IO.File.ReadAllText("wwwroot/scripts/MapsData/WorldMap.json"));

    var cities = new[]
    {
        new { Name = "New York", Latitude = 40.7128, Longitude = -74.0060, Population = "8.4M" },
        new { Name = "Tokyo", Latitude = 35.6762, Longitude = 139.6503, Population = "13.9M" },
        new { Name = "London", Latitude = 51.5074, Longitude = -0.1278, Population = "9.0M" },
        new { Name = "Sydney", Latitude = -33.8688, Longitude = 151.2093, Population = "5.3M" }
    };
}

<ejs-maps id="maps" height="600px">
    <e-maps-zoomsettings enable="true" zoomFactor="2"></e-maps-zoomsettings>

    <e-maps-layers>
        <e-maps-layer shapeData="worldMapData">
            <e-layersettings-shapesettings fill="#C3E6ED"></e-layersettings-shapesettings>

            <e-layersettings-markersettings>
                <e-layersettings-markersetting
                    visible="true"
                    dataSource="cities"
                    shape="Circle"
                    fill="#FF6347"
                    height="15"
                    width="15">
                    <e-layersettings-markersetting-tooltipsettings
                        visible="true"
                        valuePath="Name">
                        <e-markersetting-tooltipsettings-template>
                            <div style="padding: 8px;">
                                <strong>${Name}</strong><br/>
                                Population: ${Population}
                            </div>
                        </e-markersetting-tooltipsettings-template>
                    </e-layersettings-markersetting-tooltipsettings>
                </e-layersettings-markersetting>
            </e-layersettings-markersettings>
        </e-maps-layer>
    </e-maps-layers>
</ejs-maps>

API Reference

Maps Class

The primary Maps component class with properties, methods, and events for controlling map behavior and appearance.

Namespace: Syncfusion.EJ2.Maps Assembly: Syncfusion.EJ2.dll Official API Reference

Core Properties (63 total)

PropertyTypeDefaultDescriptionAPI Link
AllowImageExportboolfalseEnables or disables the export to image (PNG, JPEG, SVG) functionality in mapsLearn More
AllowPdfExportboolfalseEnables or disables the export to PDF functionality in mapsLearn More
AllowPrintboolfalseEnables or disables the print functionality in mapsLearn More
AnnotationsListnullGets or sets the options for customizing the annotations in the maps. Annotations allow custom HTML/text overlays at specific coordinatesLearn More
BackgroundstringnullGets or sets the background color of the maps containerLearn More
BaseLayerIndexdouble0Gets or sets the index of the layer which will be the base layer. Determines which layer is visible in the mapsLearn More
BorderMapsBordernullGets or sets the options for customizing the style properties of the maps border (width, color)Learn More
CenterPositionMapsCenterPositionnullGets or sets the center position of the maps using latitude and longitude coordinatesLearn More
DescriptionstringnullGets or sets the description of the maps for assistive technology and accessibilityLearn More
EnablePersistenceboolfalseEnable or disable persisting component's state between page reloads. Maintains zoom level, pan position, etc.Learn More
EnableRtlboolfalseEnable or disable rendering component in right to left direction for RTL languagesLearn More
FormatstringnullGets or sets the format to apply internationalization for the text in the mapsLearn More
HeightstringnullGets or sets the height in which the maps is to be rendered. Can be percentage or pixel valueLearn More
HtmlAttributesobjectnullAllows additional HTML attributes such as title, name, data-*, etc. in key-value pair formatLearn More
LayersListnullGets or sets the options to customize the layers of the maps. Supports unlimited layers and sublayersLearn More
LegendSettingsMapsLegendSettingsnullGets or sets the options to customize the legend of the maps (position, alignment, visibility, etc.)Learn More
Localestring"en-US"Overrides the global culture and localization value for this componentLearn More
MapsAreaMapsMapsAreaSettingsnullGets or sets the options to customize the area around the map (background, border)Learn More
MarginMapsMarginnullGets or sets the options to customize the margin of the maps (top, bottom, left, right)Learn More
ProjectionTypeProjectionTypeMercatorGets or sets the projection type (Mercator, EquirectangularProjection, MercatorProjection, etc.)Learn More
TabIndexdouble0Gets or sets the tab index value for the mapsLearn More
ThemeMapsThemeMaterialGets or sets the theme styles supported for maps (Material, Fabric, HighContrast, BootstrapDark, etc.)Learn More
TitleSettingsMapsTitleSettingsnullGets or sets the options to customize the title of the maps (text, alignment, font, etc.)Learn More
TooltipDisplayModeTooltipGestureMouseMoveGets or sets the mode in which the tooltip is displayed (MouseMove, Click, DoubleClick)Learn More
UseGroupingSeparatorboolfalseEnables or disables the visibility state of the separator for grouping in formatted numbersLearn More
WidthstringnullGets or sets the width in which the maps is to be rendered. Can be percentage or pixel valueLearn More
ZoomSettingsMapsZoomSettingsnullGets or sets the options to customize the zooming operations in mapsLearn More

Maps Events (28 total)

EventTypeTrigger ConditionDescription
AnimationCompletestringnullTriggers after the animation is completed in the maps
AnnotationRenderingstringnullTriggers before rendering an annotation in the maps
BeforePrintstringnullTriggers before the print gets started
BubbleClickstringnullTriggers when performing the click operation on the bubble element in maps
BubbleMouseMovestringnullTriggers when hovering the mouse on the bubble element in maps
BubbleRenderingstringnullTriggers before the bubble element gets rendered on the map
ClickstringnullTriggers when a user clicks on an element in Maps
DataLabelRenderingstringnullTriggers before the data-label gets rendered
DoubleClickstringnullTriggers when performing the double click operation on an element in maps
ItemHighlightstringnullTrigger before the shape, bubble or marker gets highlighted
ItemSelectionstringnullTriggers before the shape, bubble or marker gets selected
LayerRenderingstringnullTriggers before the maps layer gets rendered
LegendRenderingstringnullTriggers before the legend gets rendered
LoadstringnullTriggers before the maps gets rendered
LoadedstringnullTriggers after the maps gets rendered
MarkerClickstringnullTriggers when clicking on a marker element
MarkerClusterClickstringnullTriggers when clicking the marker cluster in maps
MarkerClusterMouseMovestringnullTriggers when moving the mouse over the marker cluster element
MarkerClusterRenderingstringnullTriggers before the maps marker cluster gets rendered
MarkerDragEndstringnullWhen the marker has stopped dragging on the map, this event is triggered
MarkerDragStartstringnullWhen the marker begins to drag on the map, this event is triggered
MarkerMouseMovestringnullTriggers when moving the mouse over the marker element in maps
MarkerRenderingstringnullTriggers before the maps marker gets rendered
MouseMovestringnullThis event is triggered when the mouse pointer moves over the map
PanstringnullTriggers before performing the panning operation
PanCompletestringnullThis event is triggered after performing the panning action
ResizestringnullTriggers to notify the resize of the maps when the window is resized
RightClickstringnullTriggers when performing the right click operation on an element in maps
ShapeHighlightstringnullTriggers before the shape gets highlighted
ShapeRenderingstringnullTriggers before the maps shape gets rendered
ShapeSelectedstringnullTriggers when a shape is selected in the maps
TooltipRenderstringnullTriggers before the maps tooltip gets rendered
TooltipRenderCompletestringnullTriggers after the maps tooltip gets rendered
ZoomstringnullTriggers before the zoom operations such as zoom in and zoom out
ZoomCompletestringnullThis event is triggered after the zooming operation is completed

MapsLayer Class

Defines the configuration for individual map layers supporting geometry data, map providers, and data binding.

Official API Reference

Key Properties

PropertyTypeDefaultDescription
DataSourceobjectnullData source for binding with shapes
ShapeDataobjectnullGeoJSON data for rendering the shapes
ShapeDataPathstringnullProperty path in the data source to match with shapes
ShapePropertyPathstring[]nullProperty path in the shape data to match with data source
BubbleSettingsListnullConfiguration for bubble visualization
MarkerSettingsListnullConfiguration for marker visualization
DataLabelSettingsMapsDataLabelSettingsnullConfiguration for data labels on shapes
NavigationLineSettingsListnullConfiguration for navigation lines
SelectionSettingsMapsSelectionSettingsnullConfiguration for shape selection
HighlightSettingsMapsHighlightSettingsnullConfiguration for shape highlighting on hover
TooltipSettingsMapsTooltipSettingsnullConfiguration for layer tooltips
ShapeSettingsMapsShapeSettingsnullConfiguration for shape styling
Typestring"Layer"Layer type (Layer or SubLayer)
VisiblebooltrueGets or sets the visibility of the layer

MapsZoomSettings Class

Manages map zoom and pan behavior.

Official API Reference

Key Properties

PropertyTypeDefaultDescription
EnableboolfalseEnables or disables zooming in maps
ToolbarOrientationstring"Vertical"Specifies the orientation of zoom toolbar (Horizontal/Vertical)
Toolbarsstring[]nullDefines zoom toolbar buttons (Zoom, ZoomIn, ZoomOut, Pan, Reset)
ZoomFactordouble2Zoom factor for each zoom in or zoom out
MinZoomdouble1Minimum zoom level
MaxZoomdouble28Maximum zoom level
EnableMouseWheelZoomboolfalseEnable zooming using mouse wheel
EnablePinchZoomboolfalseEnable zooming using pinch gesture on touch devices
EnableSelectionZoomingboolfalseEnable zooming by selection (draw box to zoom)
EnableDoubleTapZoombooltrueEnable zooming on double tap

MapsShapeSettings Class

Configures appearance and behavior of shapes in the map.

Official API Reference

Key Properties

PropertyTypeDefaultDescription
Fillstring"#E5E5E5"Color to fill the shapes
Opacitydouble1.0Opacity of shapes (0 to 1)
Palettestring[]nullColor palette for color mapping
ColorValuePathstringnullProperty path in data source for color mapping
ColorMappingListnullColor mapping configuration
DashArraystring""Defines dash pattern for shape borders

MapsMarker Class

Defines markers to be displayed on the map at specified coordinates.

Official API Reference

Key Properties

PropertyTypeDefaultDescription
DataSourceobjectnullData source containing marker locations and properties
LatitudedoublenullLatitude coordinate for marker placement
LongitudedoublenullLongitude coordinate for marker placement
ShapeMarkerTypeCircleMarker shape (Circle, Rectangle, Image, Letter, Template)
Widthdouble20Width of the marker
Heightdouble20Height of the marker
Fillstring"#F41747"Fill color of the marker
BorderstringnullBorder configuration
ImageUrlstringnullImage URL for image type markers
TooltipSettingsMapsTooltipSettingsnullTooltip configuration for markers

Related Classes (40+ classes available)

ClassPurposeAPI Link
MapsLegendSettingsConfigure and customize legendLink
MapsTooltipSettingsConfigure tooltip behaviorLink
MapsBubbleBubble visualization settingsLink
MapsColorMappingDefine color mapping rulesLink
MapsDataLabelSettingsData label customizationLink
MapsAnnotationAnnotation configurationLink
MapsNavigationLineNavigation line settingsLink
MapsMarkerClusterSettingsMarker clustering configurationLink
MapsTitleSettingsMap title customizationLink
MapsMarginMargin configurationLink

Enumerations

ProjectionType

Defines supported map projections.

ValueDescription
MercatorWeb Mercator projection (default)
EquirectangularProjectionEquirectangular/Plate Carée projection
MercatorProjectionMercator projection
MillerMiller cylindrical projection
NaturalEarth1Natural Earth 1 projection
NaturalEarth2Natural Earth 2 projection

MarkerType

Defines available marker shapes.

ValueDescription
CircleCircular marker
RectangleRectangular marker
TriangleTriangular marker
DiamondDiamond-shaped marker
ImageCustom image marker
LetterLetter-based marker
TemplateCustom template marker

MapsTheme

Defines available themes.

ValueDescription
MaterialMaterial design theme
FabricFabric design theme
HighContrastHigh contrast theme
BootstrapDarkBootstrap dark theme
BootstrapLightBootstrap light theme

TooltipGesture

Defines tooltip display modes.

ValueDescription
MouseMoveDisplay on mouse move (default)
ClickDisplay on click
DoubleClickDisplay on double click

LegendType

Defines legend types.

ValueDescription
LayersLegend for layers
MarkersLegend for markers
BubblesLegend for bubbles

Common Patterns

Pattern 1: Choropleth Map with Data Binding

Use Case: Visualize statistical data across regions with color-coded shapes.

@{
    var colorMapping = new List<MapsColorMapping> {
        new MapsColorMapping { Value = "Low", Color = "#90EE90" },
        new MapsColorMapping { Value = "Medium", Color = "#FFD700" },
        new MapsColorMapping { Value = "High", Color = "#FF6347" }
    };
}

<e-maps-layer shapeData="@geoJsonData"
              dataSource="@statisticsData"
              shapeDataPath="RegionName"
              shapePropertyPath="@(new[] { "name" })">
    <e-layersettings-shapesettings
        colorValuePath="DataLevel"
        colorMapping="colorMapping">
    </e-layersettings-shapesettings>
</e-maps-layer>

Pattern 2: Interactive Map with Zoom and Selection

Use Case: Enable user interaction for detailed exploration.

<ejs-maps id="maps">
    <e-maps-zoomsettings
        enable="true"
        enableSelectionZooming="true"
        toolbars='new string[] {"Zoom", "ZoomIn", "ZoomOut", "Pan", "Reset"}'>
    </e-maps-zoomsettings>

    <e-maps-layers>
        <e-maps-layer shapeData="@mapData">
            <e-layersettings-selectionsettings
                enable="true"
                fill="#8B0000"
                opacity="0.5">
            </e-layersettings-selectionsettings>

            <e-layersettings-highlightsettings
                enable="true"
                fill="#FF6347">
            </e-layersettings-highlightsettings>
        </e-maps-layer>
    </e-maps-layers>
</ejs-maps>

Pattern 3: Multiple Data Layers

Use Case: Overlay multiple data sets on a single map.

<e-maps-layers>
    <!-- Base layer: Country boundaries -->
    <e-maps-layer shapeData="@countryData" type="Layer">
        <e-layersettings-shapesettings fill="#E5E5E5"></e-layersettings-shapesettings>
    </e-maps-layer>

    <!-- Sublayer: State boundaries -->
    <e-maps-layer shapeData="@stateData" type="SubLayer">
        <e-layersettings-shapesettings fill="transparent" border-width="1"></e-layersettings-shapesettings>
    </e-maps-layer>

    <!-- Data layer: Markers -->
    <e-maps-layer type="Layer">
        <e-layersettings-markersettings>
            <e-layersettings-markersetting dataSource="@locations" shape="Circle"></e-layersettings-markersetting>
        </e-layersettings-markersettings>
    </e-maps-layer>
</e-maps-layers>

Pattern 4: Bing Maps Integration

Use Case: Use Bing Maps as base layer with custom data overlay.

<ejs-maps id="maps">
    <e-maps-layers>
        <!-- Bing Maps base layer -->
        <e-maps-layer layerType="Bing" bingMapType="Aerial" key="YOUR_BING_MAPS_KEY">
        </e-maps-layer>

        <!-- Data overlay layer -->
        <e-maps-layer type="SubLayer" shapeData="@customData">
            <e-layersettings-shapesettings fill="#FF6347" opacity="0.5"></e-layersettings-shapesettings>
        </e-maps-layer>
    </e-maps-layers>
</ejs-maps>

Key Properties Reference

Essential Properties

PropertyPurposeExample
shapeDataGeoJSON data for rendering shapesshapeData="worldMapData"
dataSourceData to bind to shapesdataSource="populationData"
shapeDataPathProperty in dataSource to match shapesshapeDataPath="Country"
shapePropertyPathProperty in GeoJSON to match datashapePropertyPath="@(new[] {"name"})"
colorValuePathData property for color mappingcolorValuePath="Population"
colorMappingDefine color ranges/valuescolorMapping="@colorMappingList"

Layer Configuration

PropertyPurposeCommon Values
typeLayer typeLayer, SubLayer
layerTypeProvider typeGeometry, Bing, OSM
visibleShow/hide layertrue, false
shapeSettingsShape stylingFill, border, palette
markerSettingsMarker configurationShape, size, color
bubbleSettingsBubble configurationSize, color, radius

Interaction Settings

PropertyPurposeConfiguration
zoomSettingsZoom configurationenable, zoomFactor, minZoom, maxZoom
tooltipSettingsTooltip configurationvisible, valuePath, template
selectionSettingsSelection configurationenable, fill, opacity
highlightSettingsHover highlightenable, fill, border

Common Use Cases

Use Case 1: Sales Dashboard by Region

Create a choropleth map showing sales performance across different regions with color-coded intensity.

Applies: Color mapping, data binding, legend, tooltips

Use Case 2: Store Locator

Display retail store locations on a map with custom markers, allowing users to zoom and click for details.

Applies: Markers, tooltips, zooming, Bing/OSM integration

Use Case 3: Population Density Visualization

Show population density using bubble sizes, with larger bubbles representing higher populations.

Applies: Bubbles, data binding, legend, color mapping

Use Case 4: Election Results Map

Visualize election results by state/region with color coding and interactive selection.

Applies: Color mapping, selection, highlight, data labels, legend

Use Case 5: Shipping Routes Visualization

Display shipping routes between cities using navigation lines with directional arrows.

Applies: Navigation lines, markers, annotations, layers

Use Case 6: Weather Map Dashboard

Overlay weather data on maps with custom annotations and real-time data updates.

Applies: Annotations, dynamic data, multiple layers, map providers

Use Case 7: Real Estate Property Map

Show property listings with custom markers, filtering, and detailed tooltips.

Applies: Markers, custom templates, tooltips, zooming, panning

Related Components

  • Chart - For non-geographical data visualization
  • HeatMap - For matrix-based heat map visualization
  • TreeMap - For hierarchical data visualization
  • Diagram - For network and flowchart visualization

Additional Resources

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

32.69%
按下载量换算24

Claude

29.38%
按下载量换算21

Cursor

19.12%
按下载量换算14

Gemini CLI

9.22%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

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

来源信息

继续浏览同类 Skills