Community生产力与协作github.com

mapbox/mapbox-web-integration-patterns

Mapbox GL JS 在主流 Web 框架(React、Vue、Svelte、Angular)中的官方集成模式。涵盖设置、生命周期管理、令牌处理、搜索集成及常见陷阱。基于 Mapbox 的 create-web-app 脚手架工具。

mapbox-web-integration-patterns 是什么?

此技能提供了 Mapbox GL JS 在 React、Vue、Svelte 和 Angular 等流行 Web 框架中的官方集成模式。它涵盖了从初始框架设置、地图生命周期管理、API 令牌处理、搜索功能集成到常见集成陷阱的完整指导。该技能基于 Mapbox 的 create-web-app 脚手架工具,确保与最新最佳实践保持一致。使用此技能时,AI 开发者可以快速获取跨框架集成示例,避免常见错误,并实现高效的地图应用开发。它适用于任何需要将 Mapbox 地图嵌入现代 Web 框架的项目。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/mapbox/mapbox-agent-skills/tree/main/skills/mapbox-web-integration-patterns

Installed? Explore more 生产力与协作 skills: steipete/gemini, steipete/gh-issues, steipete/skill-creator · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

mapbox-web-integration-patterns 是做什么的?

官方集成模式,用于在主流 Web 框架(React、Vue、Svelte、Angular)中使用 Mapbox GL JS。涵盖设置、生命周期管理、令牌处理、搜索集成及常见陷阱。基于 Mapbox 的 create-web-app 脚手架工具。

Individual skills in this repo

This repo contains 8 individual skills — each has its own dedicated page.

mapbox/mapbox-cartography

Expert guidance on map design principles, color theory, visual hierarchy, typography, and cartographic best practices for creating effective and beautiful maps with Mapbox. Use when designing map styles, choosing colors, or making cartographic decisions.

mapbox/mapbox-data-visualization-patterns

Patterns for visualizing data on maps including choropleth maps, heat maps, 3D visualizations, data-driven styling, and animated data. Covers layer types, color scales, and performance optimization.

mapbox/mapbox-geospatial-operations

Expert guidance on choosing the right geospatial tool based on problem type, accuracy requirements, and performance needs

mapbox/mapbox-search-integration

Complete workflow for implementing Mapbox search in applications - from discovery questions to production-ready integration with best practices

mapbox/mapbox-style-patterns

Common style patterns, layer configurations, and recipes for typical mapping scenarios including restaurant finders, real estate, data visualization, navigation, delivery/logistics, and more. Use when implementing specific map use cases or looking for proven style patterns.

mapbox/mapbox-style-quality

Expert guidance on validating, optimizing, and ensuring quality of Mapbox styles through validation, accessibility checks, and optimization. Use when preparing styles for production, debugging issues, or ensuring map quality standards.

mapbox/mapbox-token-security

Security best practices for Mapbox access tokens, including scope management, URL restrictions, rotation strategies, and protecting sensitive data. Use when creating, managing, or advising on Mapbox token security.

mapbox/mapbox-web-performance-patterns

Performance optimization patterns for Mapbox GL JS web applications. Covers initialization waterfalls, bundle size, rendering performance, memory management, and web optimization. Prioritized by impact on user experience.

相关技能