@octostar/map-component 0.6.1 โ†’ 0.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1527,6 +1527,154 @@ function formatGradientStop(value) {
1527
1527
  }
1528
1528
  return new Intl.NumberFormat("en-US", { maximumFractionDigits: 2 }).format(value);
1529
1529
  }
1530
+ const ICONS = [
1531
+ // Location & Places
1532
+ { id: "map-pin", emoji: "๐Ÿ“", name: "Map Pin", category: "places" },
1533
+ { id: "home", emoji: "๐Ÿ ", name: "Home", category: "places" },
1534
+ { id: "building", emoji: "๐Ÿข", name: "Building", category: "places" },
1535
+ { id: "store", emoji: "๐Ÿช", name: "Store", category: "places" },
1536
+ { id: "factory", emoji: "๐Ÿญ", name: "Factory", category: "places" },
1537
+ { id: "construction", emoji: "๐Ÿ—๏ธ", name: "Construction", category: "places" },
1538
+ { id: "church", emoji: "โ›ช", name: "Church", category: "places" },
1539
+ { id: "hospital", emoji: "๐Ÿฅ", name: "Hospital", category: "places" },
1540
+ { id: "school", emoji: "๐Ÿซ", name: "School", category: "places" },
1541
+ { id: "graduation", emoji: "๐ŸŽ“", name: "University", category: "places" },
1542
+ { id: "library", emoji: "๐Ÿ“š", name: "Library", category: "places" },
1543
+ { id: "landmark", emoji: "๐Ÿ›๏ธ", name: "Landmark", category: "places" },
1544
+ { id: "castle", emoji: "๐Ÿฐ", name: "Castle", category: "places" },
1545
+ { id: "mosque", emoji: "๐Ÿ•Œ", name: "Mosque", category: "places" },
1546
+ { id: "stadium", emoji: "๐ŸŸ๏ธ", name: "Stadium", category: "places" },
1547
+ { id: "tent", emoji: "โ›บ", name: "Camping", category: "places" },
1548
+ // Transport
1549
+ { id: "car", emoji: "๐Ÿš—", name: "Car", category: "transport" },
1550
+ { id: "bus", emoji: "๐ŸšŒ", name: "Bus", category: "transport" },
1551
+ { id: "train", emoji: "๐Ÿš‚", name: "Train", category: "transport" },
1552
+ { id: "plane", emoji: "โœˆ๏ธ", name: "Plane", category: "transport" },
1553
+ { id: "ship", emoji: "๐Ÿšข", name: "Ship", category: "transport" },
1554
+ { id: "bike", emoji: "๐Ÿšฒ", name: "Bike", category: "transport" },
1555
+ { id: "fuel", emoji: "โ›ฝ", name: "Gas Station", category: "transport" },
1556
+ { id: "helicopter", emoji: "๐Ÿš", name: "Helicopter", category: "transport" },
1557
+ { id: "rocket", emoji: "๐Ÿš€", name: "Rocket", category: "transport" },
1558
+ { id: "motorcycle", emoji: "๐Ÿ๏ธ", name: "Motorcycle", category: "transport" },
1559
+ { id: "taxi", emoji: "๐Ÿš•", name: "Taxi", category: "transport" },
1560
+ { id: "truck", emoji: "๐Ÿš›", name: "Truck", category: "transport" },
1561
+ // Food & Drink
1562
+ { id: "utensils", emoji: "๐Ÿด", name: "Restaurant", category: "food" },
1563
+ { id: "coffee", emoji: "โ˜•", name: "Coffee", category: "food" },
1564
+ { id: "beer", emoji: "๐Ÿบ", name: "Bar", category: "food" },
1565
+ { id: "wine", emoji: "๐Ÿท", name: "Wine", category: "food" },
1566
+ { id: "pizza", emoji: "๐Ÿ•", name: "Pizza", category: "food" },
1567
+ { id: "ice-cream", emoji: "๐Ÿฆ", name: "Ice Cream", category: "food" },
1568
+ { id: "apple", emoji: "๐ŸŽ", name: "Apple", category: "food" },
1569
+ { id: "cake", emoji: "๐ŸŽ‚", name: "Cake", category: "food" },
1570
+ { id: "hamburger", emoji: "๐Ÿ”", name: "Burger", category: "food" },
1571
+ // Nature
1572
+ { id: "trees", emoji: "๐ŸŒฒ", name: "Forest", category: "nature" },
1573
+ { id: "mountain", emoji: "โ›ฐ๏ธ", name: "Mountain", category: "nature" },
1574
+ { id: "waves", emoji: "๐ŸŒŠ", name: "Water", category: "nature" },
1575
+ { id: "sun", emoji: "โ˜€๏ธ", name: "Sun", category: "nature" },
1576
+ { id: "cloud", emoji: "โ˜๏ธ", name: "Cloud", category: "nature" },
1577
+ { id: "umbrella", emoji: "๐ŸŒ‚", name: "Umbrella", category: "nature" },
1578
+ { id: "flower", emoji: "๐ŸŒธ", name: "Flower", category: "nature" },
1579
+ { id: "leaf", emoji: "๐Ÿƒ", name: "Leaf", category: "nature" },
1580
+ { id: "rainbow", emoji: "๐ŸŒˆ", name: "Rainbow", category: "nature" },
1581
+ { id: "snowflake", emoji: "โ„๏ธ", name: "Snow", category: "nature" },
1582
+ { id: "fire", emoji: "๐Ÿ”ฅ", name: "Fire", category: "nature" },
1583
+ { id: "volcano", emoji: "๐ŸŒ‹", name: "Volcano", category: "nature" },
1584
+ // Symbols & Markers
1585
+ { id: "heart", emoji: "โค๏ธ", name: "Heart", category: "symbols" },
1586
+ { id: "star", emoji: "โญ", name: "Star", category: "symbols" },
1587
+ { id: "flag", emoji: "๐Ÿšฉ", name: "Flag", category: "symbols" },
1588
+ { id: "alert", emoji: "โš ๏ธ", name: "Warning", category: "symbols" },
1589
+ { id: "info", emoji: "โ„น๏ธ", name: "Info", category: "symbols" },
1590
+ { id: "check", emoji: "โœ…", name: "Check", category: "symbols" },
1591
+ { id: "x-mark", emoji: "โŒ", name: "X", category: "symbols" },
1592
+ { id: "zap", emoji: "โšก", name: "Zap", category: "symbols" },
1593
+ { id: "bell", emoji: "๐Ÿ””", name: "Bell", category: "symbols" },
1594
+ { id: "peace", emoji: "โ˜ฎ๏ธ", name: "Peace", category: "symbols" },
1595
+ { id: "recycle", emoji: "โ™ป๏ธ", name: "Recycle", category: "symbols" },
1596
+ { id: "radioactive", emoji: "โ˜ข๏ธ", name: "Radioactive", category: "symbols" },
1597
+ { id: "biohazard", emoji: "โ˜ฃ๏ธ", name: "Biohazard", category: "symbols" },
1598
+ // Activities
1599
+ { id: "camera", emoji: "๐Ÿ“ท", name: "Camera", category: "activities" },
1600
+ { id: "music", emoji: "๐ŸŽต", name: "Music", category: "activities" },
1601
+ { id: "film", emoji: "๐ŸŽฌ", name: "Cinema", category: "activities" },
1602
+ { id: "gamepad", emoji: "๐ŸŽฎ", name: "Gaming", category: "activities" },
1603
+ { id: "trophy", emoji: "๐Ÿ†", name: "Trophy", category: "activities" },
1604
+ { id: "medal", emoji: "๐ŸŽ–๏ธ", name: "Medal", category: "activities" },
1605
+ { id: "sports", emoji: "โšฝ", name: "Sports", category: "activities" },
1606
+ { id: "basketball", emoji: "๐Ÿ€", name: "Basketball", category: "activities" },
1607
+ { id: "fishing", emoji: "๐ŸŽฃ", name: "Fishing", category: "activities" },
1608
+ { id: "art", emoji: "๐ŸŽจ", name: "Art", category: "activities" },
1609
+ // Work & Tools
1610
+ { id: "briefcase", emoji: "๐Ÿ’ผ", name: "Office", category: "work" },
1611
+ { id: "wrench", emoji: "๐Ÿ”ง", name: "Repair", category: "work" },
1612
+ { id: "hammer", emoji: "๐Ÿ”จ", name: "Construction", category: "work" },
1613
+ { id: "gear", emoji: "โš™๏ธ", name: "Settings", category: "work" },
1614
+ { id: "microscope", emoji: "๐Ÿ”ฌ", name: "Science", category: "work" },
1615
+ { id: "test-tube", emoji: "๐Ÿงช", name: "Lab", category: "work" },
1616
+ { id: "computer", emoji: "๐Ÿ’ป", name: "Computer", category: "work" },
1617
+ // Shopping
1618
+ { id: "cart", emoji: "๐Ÿ›’", name: "Shopping", category: "shopping" },
1619
+ { id: "gift", emoji: "๐ŸŽ", name: "Gift", category: "shopping" },
1620
+ { id: "package", emoji: "๐Ÿ“ฆ", name: "Package", category: "shopping" },
1621
+ { id: "money", emoji: "๐Ÿ’ฐ", name: "Money", category: "shopping" },
1622
+ { id: "credit-card", emoji: "๐Ÿ’ณ", name: "Payment", category: "shopping" },
1623
+ // Communication
1624
+ { id: "phone", emoji: "๐Ÿ“ฑ", name: "Phone", category: "communication" },
1625
+ { id: "mail", emoji: "๐Ÿ“ง", name: "Mail", category: "communication" },
1626
+ { id: "globe", emoji: "๐ŸŒ", name: "Web", category: "communication" },
1627
+ { id: "satellite", emoji: "๐Ÿ“ก", name: "Satellite", category: "communication" },
1628
+ { id: "radio", emoji: "๐Ÿ“ป", name: "Radio", category: "communication" },
1629
+ { id: "tv", emoji: "๐Ÿ“บ", name: "TV", category: "communication" },
1630
+ // People & Animals
1631
+ { id: "user", emoji: "๐Ÿ‘ค", name: "Person", category: "people" },
1632
+ { id: "users", emoji: "๐Ÿ‘ฅ", name: "Group", category: "people" },
1633
+ { id: "baby", emoji: "๐Ÿ‘ถ", name: "Baby", category: "people" },
1634
+ { id: "dog", emoji: "๐Ÿ•", name: "Dog", category: "people" },
1635
+ { id: "cat", emoji: "๐Ÿˆ", name: "Cat", category: "people" },
1636
+ { id: "bird", emoji: "๐Ÿฆ", name: "Bird", category: "people" },
1637
+ { id: "horse", emoji: "๐Ÿด", name: "Horse", category: "people" },
1638
+ { id: "fish", emoji: "๐ŸŸ", name: "Fish", category: "people" },
1639
+ // Maritime & Navigation
1640
+ { id: "anchor", emoji: "โš“", name: "Anchor", category: "maritime" },
1641
+ { id: "compass", emoji: "๐Ÿงญ", name: "Compass", category: "maritime" },
1642
+ { id: "lighthouse", emoji: "๐Ÿ—ผ", name: "Lighthouse", category: "maritime" },
1643
+ { id: "sailboat", emoji: "โ›ต", name: "Sailboat", category: "maritime" },
1644
+ // Security
1645
+ { id: "lock", emoji: "๐Ÿ”’", name: "Lock", category: "security" },
1646
+ { id: "key", emoji: "๐Ÿ”‘", name: "Key", category: "security" },
1647
+ { id: "shield", emoji: "๐Ÿ›ก๏ธ", name: "Shield", category: "security" },
1648
+ { id: "eye", emoji: "๐Ÿ‘๏ธ", name: "Eye", category: "security" },
1649
+ { id: "search", emoji: "๐Ÿ”", name: "Search", category: "security" },
1650
+ { id: "police", emoji: "๐Ÿš”", name: "Police", category: "security" },
1651
+ { id: "siren", emoji: "๐Ÿšจ", name: "Siren", category: "security" },
1652
+ // Time & Organization
1653
+ { id: "clock", emoji: "๐Ÿ•", name: "Clock", category: "time" },
1654
+ { id: "calendar", emoji: "๐Ÿ“…", name: "Calendar", category: "time" },
1655
+ { id: "bookmark", emoji: "๐Ÿ”–", name: "Bookmark", category: "time" },
1656
+ { id: "tag", emoji: "๐Ÿท๏ธ", name: "Tag", category: "time" },
1657
+ { id: "pushpin", emoji: "๐Ÿ“Œ", name: "Pin", category: "time" },
1658
+ // Shapes & Geometric
1659
+ { id: "red-circle", emoji: "๐Ÿ”ด", name: "Red Circle", category: "shapes" },
1660
+ { id: "blue-circle", emoji: "๐Ÿ”ต", name: "Blue Circle", category: "shapes" },
1661
+ { id: "green-circle", emoji: "๐ŸŸข", name: "Green Circle", category: "shapes" },
1662
+ { id: "yellow-circle", emoji: "๐ŸŸก", name: "Yellow Circle", category: "shapes" },
1663
+ { id: "orange-circle", emoji: "๐ŸŸ ", name: "Orange Circle", category: "shapes" },
1664
+ { id: "purple-circle", emoji: "๐ŸŸฃ", name: "Purple Circle", category: "shapes" },
1665
+ { id: "white-circle", emoji: "โšช", name: "White Circle", category: "shapes" },
1666
+ { id: "black-circle", emoji: "โšซ", name: "Black Circle", category: "shapes" },
1667
+ { id: "red-square", emoji: "๐ŸŸฅ", name: "Red Square", category: "shapes" },
1668
+ { id: "blue-square", emoji: "๐ŸŸฆ", name: "Blue Square", category: "shapes" },
1669
+ { id: "diamond", emoji: "๐Ÿ’Ž", name: "Diamond", category: "shapes" },
1670
+ // Arrows
1671
+ { id: "arrow-up", emoji: "โฌ†๏ธ", name: "Arrow Up", category: "arrows" },
1672
+ { id: "arrow-down", emoji: "โฌ‡๏ธ", name: "Arrow Down", category: "arrows" },
1673
+ { id: "arrow-left", emoji: "โฌ…๏ธ", name: "Arrow Left", category: "arrows" },
1674
+ { id: "arrow-right", emoji: "โžก๏ธ", name: "Arrow Right", category: "arrows" },
1675
+ { id: "target", emoji: "๐ŸŽฏ", name: "Target", category: "arrows" }
1676
+ ];
1677
+ const EMOJI_BY_ID = new Map(ICONS.map((i) => [i.id, i.emoji]));
1530
1678
  function windowFromRange(start, end) {
1531
1679
  if (!start || !end) return null;
1532
1680
  const t0 = start.getTime();
@@ -2005,6 +2153,23 @@ function sanitizeValue(value) {
2005
2153
  if (value instanceof Date) return value.toISOString();
2006
2154
  return String(value);
2007
2155
  }
2156
+ const EMOJI_ICON = new RegExp(
2157
+ String.raw`^(?:(?:[\p{Extended_Pictographic}\p{Regional_Indicator}]|[0-9#*]\uFE0F?\u20E3)[\p{Emoji_Modifier}\uFE0F\u20E3\u{E0020}-\u{E007F}]*\u200D?)+$`,
2158
+ "u"
2159
+ );
2160
+ function isEmojiIcon(value) {
2161
+ return typeof value === "string" && EMOJI_ICON.test(value);
2162
+ }
2163
+ let lastIcon = "";
2164
+ let lastResolvedIcon = "";
2165
+ function resolveIcon(value) {
2166
+ if (typeof value !== "string" || value === "") return "";
2167
+ if (value !== lastIcon) {
2168
+ lastIcon = value;
2169
+ lastResolvedIcon = isEmojiIcon(value) ? value : EMOJI_BY_ID.get(value) ?? "";
2170
+ }
2171
+ return lastResolvedIcon;
2172
+ }
2008
2173
  const heatmapHidesPoints = (layer) => {
2009
2174
  var _a;
2010
2175
  return ((_a = layer == null ? void 0 : layer.heatmapConfig) == null ? void 0 : _a.enabled) === true;
@@ -2070,12 +2235,13 @@ function styleFeatureForPaint(f, layer, ctx, slim) {
2070
2235
  labelText = fieldValue !== void 0 && fieldValue !== null ? String(fieldValue) : "";
2071
2236
  }
2072
2237
  }
2073
- let featureIcon = ((_e = f.properties) == null ? void 0 : _e.pointIcon) || ((_f = f.properties) == null ? void 0 : _f.icon);
2238
+ let featureIcon = resolveIcon(((_e = f.properties) == null ? void 0 : _e.pointIcon) || ((_f = f.properties) == null ? void 0 : _f.icon));
2074
2239
  let featureIconSize = ((_g = f.properties) == null ? void 0 : _g.pointIconSize) || ((_h = f.properties) == null ? void 0 : _h.iconSize) || 24;
2075
2240
  const iconConfig = visualConfig == null ? void 0 : visualConfig.icon;
2076
- if ((iconConfig == null ? void 0 : iconConfig.enabled) && iconConfig.icon && !featureIcon) {
2077
- featureIcon = iconConfig.icon;
2078
- featureIconSize = iconConfig.size ?? 24;
2241
+ const layerIcon = !featureIcon && (iconConfig == null ? void 0 : iconConfig.enabled) ? resolveIcon(iconConfig.icon) : "";
2242
+ if (layerIcon) {
2243
+ featureIcon = layerIcon;
2244
+ featureIconSize = (iconConfig == null ? void 0 : iconConfig.size) ?? 24;
2079
2245
  }
2080
2246
  const isPoint = f.geometry.type === "Point";
2081
2247
  const hideByHeatmap = isPoint && heatmapHidesPoints(layer);
@@ -2129,7 +2295,7 @@ function styleFeatureForPaint(f, layer, ctx, slim) {
2129
2295
  isHiddenByCluster: hideByCluster ? 1 : 0,
2130
2296
  isTracePoint: isTracePoint2 ? true : false,
2131
2297
  _endpointRadius: endpointRadius,
2132
- icon: featureIcon || "",
2298
+ icon: featureIcon,
2133
2299
  iconSize: featureIconSize,
2134
2300
  stroke: strokeColor,
2135
2301
  "stroke-width": strokeWidth,
@@ -2382,153 +2548,6 @@ function IngestProgressOverlay({
2382
2548
  }
2383
2549
  );
2384
2550
  }
2385
- const ICONS = [
2386
- // Location & Places
2387
- { id: "map-pin", emoji: "๐Ÿ“", name: "Map Pin", category: "places" },
2388
- { id: "home", emoji: "๐Ÿ ", name: "Home", category: "places" },
2389
- { id: "building", emoji: "๐Ÿข", name: "Building", category: "places" },
2390
- { id: "store", emoji: "๐Ÿช", name: "Store", category: "places" },
2391
- { id: "factory", emoji: "๐Ÿญ", name: "Factory", category: "places" },
2392
- { id: "construction", emoji: "๐Ÿ—๏ธ", name: "Construction", category: "places" },
2393
- { id: "church", emoji: "โ›ช", name: "Church", category: "places" },
2394
- { id: "hospital", emoji: "๐Ÿฅ", name: "Hospital", category: "places" },
2395
- { id: "school", emoji: "๐Ÿซ", name: "School", category: "places" },
2396
- { id: "graduation", emoji: "๐ŸŽ“", name: "University", category: "places" },
2397
- { id: "library", emoji: "๐Ÿ“š", name: "Library", category: "places" },
2398
- { id: "landmark", emoji: "๐Ÿ›๏ธ", name: "Landmark", category: "places" },
2399
- { id: "castle", emoji: "๐Ÿฐ", name: "Castle", category: "places" },
2400
- { id: "mosque", emoji: "๐Ÿ•Œ", name: "Mosque", category: "places" },
2401
- { id: "stadium", emoji: "๐ŸŸ๏ธ", name: "Stadium", category: "places" },
2402
- { id: "tent", emoji: "โ›บ", name: "Camping", category: "places" },
2403
- // Transport
2404
- { id: "car", emoji: "๐Ÿš—", name: "Car", category: "transport" },
2405
- { id: "bus", emoji: "๐ŸšŒ", name: "Bus", category: "transport" },
2406
- { id: "train", emoji: "๐Ÿš‚", name: "Train", category: "transport" },
2407
- { id: "plane", emoji: "โœˆ๏ธ", name: "Plane", category: "transport" },
2408
- { id: "ship", emoji: "๐Ÿšข", name: "Ship", category: "transport" },
2409
- { id: "bike", emoji: "๐Ÿšฒ", name: "Bike", category: "transport" },
2410
- { id: "fuel", emoji: "โ›ฝ", name: "Gas Station", category: "transport" },
2411
- { id: "helicopter", emoji: "๐Ÿš", name: "Helicopter", category: "transport" },
2412
- { id: "rocket", emoji: "๐Ÿš€", name: "Rocket", category: "transport" },
2413
- { id: "motorcycle", emoji: "๐Ÿ๏ธ", name: "Motorcycle", category: "transport" },
2414
- { id: "taxi", emoji: "๐Ÿš•", name: "Taxi", category: "transport" },
2415
- { id: "truck", emoji: "๐Ÿš›", name: "Truck", category: "transport" },
2416
- // Food & Drink
2417
- { id: "utensils", emoji: "๐Ÿด", name: "Restaurant", category: "food" },
2418
- { id: "coffee", emoji: "โ˜•", name: "Coffee", category: "food" },
2419
- { id: "beer", emoji: "๐Ÿบ", name: "Bar", category: "food" },
2420
- { id: "wine", emoji: "๐Ÿท", name: "Wine", category: "food" },
2421
- { id: "pizza", emoji: "๐Ÿ•", name: "Pizza", category: "food" },
2422
- { id: "ice-cream", emoji: "๐Ÿฆ", name: "Ice Cream", category: "food" },
2423
- { id: "apple", emoji: "๐ŸŽ", name: "Apple", category: "food" },
2424
- { id: "cake", emoji: "๐ŸŽ‚", name: "Cake", category: "food" },
2425
- { id: "hamburger", emoji: "๐Ÿ”", name: "Burger", category: "food" },
2426
- // Nature
2427
- { id: "trees", emoji: "๐ŸŒฒ", name: "Forest", category: "nature" },
2428
- { id: "mountain", emoji: "โ›ฐ๏ธ", name: "Mountain", category: "nature" },
2429
- { id: "waves", emoji: "๐ŸŒŠ", name: "Water", category: "nature" },
2430
- { id: "sun", emoji: "โ˜€๏ธ", name: "Sun", category: "nature" },
2431
- { id: "cloud", emoji: "โ˜๏ธ", name: "Cloud", category: "nature" },
2432
- { id: "umbrella", emoji: "๐ŸŒ‚", name: "Umbrella", category: "nature" },
2433
- { id: "flower", emoji: "๐ŸŒธ", name: "Flower", category: "nature" },
2434
- { id: "leaf", emoji: "๐Ÿƒ", name: "Leaf", category: "nature" },
2435
- { id: "rainbow", emoji: "๐ŸŒˆ", name: "Rainbow", category: "nature" },
2436
- { id: "snowflake", emoji: "โ„๏ธ", name: "Snow", category: "nature" },
2437
- { id: "fire", emoji: "๐Ÿ”ฅ", name: "Fire", category: "nature" },
2438
- { id: "volcano", emoji: "๐ŸŒ‹", name: "Volcano", category: "nature" },
2439
- // Symbols & Markers
2440
- { id: "heart", emoji: "โค๏ธ", name: "Heart", category: "symbols" },
2441
- { id: "star", emoji: "โญ", name: "Star", category: "symbols" },
2442
- { id: "flag", emoji: "๐Ÿšฉ", name: "Flag", category: "symbols" },
2443
- { id: "alert", emoji: "โš ๏ธ", name: "Warning", category: "symbols" },
2444
- { id: "info", emoji: "โ„น๏ธ", name: "Info", category: "symbols" },
2445
- { id: "check", emoji: "โœ…", name: "Check", category: "symbols" },
2446
- { id: "x-mark", emoji: "โŒ", name: "X", category: "symbols" },
2447
- { id: "zap", emoji: "โšก", name: "Zap", category: "symbols" },
2448
- { id: "bell", emoji: "๐Ÿ””", name: "Bell", category: "symbols" },
2449
- { id: "peace", emoji: "โ˜ฎ๏ธ", name: "Peace", category: "symbols" },
2450
- { id: "recycle", emoji: "โ™ป๏ธ", name: "Recycle", category: "symbols" },
2451
- { id: "radioactive", emoji: "โ˜ข๏ธ", name: "Radioactive", category: "symbols" },
2452
- { id: "biohazard", emoji: "โ˜ฃ๏ธ", name: "Biohazard", category: "symbols" },
2453
- // Activities
2454
- { id: "camera", emoji: "๐Ÿ“ท", name: "Camera", category: "activities" },
2455
- { id: "music", emoji: "๐ŸŽต", name: "Music", category: "activities" },
2456
- { id: "film", emoji: "๐ŸŽฌ", name: "Cinema", category: "activities" },
2457
- { id: "gamepad", emoji: "๐ŸŽฎ", name: "Gaming", category: "activities" },
2458
- { id: "trophy", emoji: "๐Ÿ†", name: "Trophy", category: "activities" },
2459
- { id: "medal", emoji: "๐ŸŽ–๏ธ", name: "Medal", category: "activities" },
2460
- { id: "sports", emoji: "โšฝ", name: "Sports", category: "activities" },
2461
- { id: "basketball", emoji: "๐Ÿ€", name: "Basketball", category: "activities" },
2462
- { id: "fishing", emoji: "๐ŸŽฃ", name: "Fishing", category: "activities" },
2463
- { id: "art", emoji: "๐ŸŽจ", name: "Art", category: "activities" },
2464
- // Work & Tools
2465
- { id: "briefcase", emoji: "๐Ÿ’ผ", name: "Office", category: "work" },
2466
- { id: "wrench", emoji: "๐Ÿ”ง", name: "Repair", category: "work" },
2467
- { id: "hammer", emoji: "๐Ÿ”จ", name: "Construction", category: "work" },
2468
- { id: "gear", emoji: "โš™๏ธ", name: "Settings", category: "work" },
2469
- { id: "microscope", emoji: "๐Ÿ”ฌ", name: "Science", category: "work" },
2470
- { id: "test-tube", emoji: "๐Ÿงช", name: "Lab", category: "work" },
2471
- { id: "computer", emoji: "๐Ÿ’ป", name: "Computer", category: "work" },
2472
- // Shopping
2473
- { id: "cart", emoji: "๐Ÿ›’", name: "Shopping", category: "shopping" },
2474
- { id: "gift", emoji: "๐ŸŽ", name: "Gift", category: "shopping" },
2475
- { id: "package", emoji: "๐Ÿ“ฆ", name: "Package", category: "shopping" },
2476
- { id: "money", emoji: "๐Ÿ’ฐ", name: "Money", category: "shopping" },
2477
- { id: "credit-card", emoji: "๐Ÿ’ณ", name: "Payment", category: "shopping" },
2478
- // Communication
2479
- { id: "phone", emoji: "๐Ÿ“ฑ", name: "Phone", category: "communication" },
2480
- { id: "mail", emoji: "๐Ÿ“ง", name: "Mail", category: "communication" },
2481
- { id: "globe", emoji: "๐ŸŒ", name: "Web", category: "communication" },
2482
- { id: "satellite", emoji: "๐Ÿ“ก", name: "Satellite", category: "communication" },
2483
- { id: "radio", emoji: "๐Ÿ“ป", name: "Radio", category: "communication" },
2484
- { id: "tv", emoji: "๐Ÿ“บ", name: "TV", category: "communication" },
2485
- // People & Animals
2486
- { id: "user", emoji: "๐Ÿ‘ค", name: "Person", category: "people" },
2487
- { id: "users", emoji: "๐Ÿ‘ฅ", name: "Group", category: "people" },
2488
- { id: "baby", emoji: "๐Ÿ‘ถ", name: "Baby", category: "people" },
2489
- { id: "dog", emoji: "๐Ÿ•", name: "Dog", category: "people" },
2490
- { id: "cat", emoji: "๐Ÿˆ", name: "Cat", category: "people" },
2491
- { id: "bird", emoji: "๐Ÿฆ", name: "Bird", category: "people" },
2492
- { id: "horse", emoji: "๐Ÿด", name: "Horse", category: "people" },
2493
- { id: "fish", emoji: "๐ŸŸ", name: "Fish", category: "people" },
2494
- // Maritime & Navigation
2495
- { id: "anchor", emoji: "โš“", name: "Anchor", category: "maritime" },
2496
- { id: "compass", emoji: "๐Ÿงญ", name: "Compass", category: "maritime" },
2497
- { id: "lighthouse", emoji: "๐Ÿ—ผ", name: "Lighthouse", category: "maritime" },
2498
- { id: "sailboat", emoji: "โ›ต", name: "Sailboat", category: "maritime" },
2499
- // Security
2500
- { id: "lock", emoji: "๐Ÿ”’", name: "Lock", category: "security" },
2501
- { id: "key", emoji: "๐Ÿ”‘", name: "Key", category: "security" },
2502
- { id: "shield", emoji: "๐Ÿ›ก๏ธ", name: "Shield", category: "security" },
2503
- { id: "eye", emoji: "๐Ÿ‘๏ธ", name: "Eye", category: "security" },
2504
- { id: "search", emoji: "๐Ÿ”", name: "Search", category: "security" },
2505
- { id: "police", emoji: "๐Ÿš”", name: "Police", category: "security" },
2506
- { id: "siren", emoji: "๐Ÿšจ", name: "Siren", category: "security" },
2507
- // Time & Organization
2508
- { id: "clock", emoji: "๐Ÿ•", name: "Clock", category: "time" },
2509
- { id: "calendar", emoji: "๐Ÿ“…", name: "Calendar", category: "time" },
2510
- { id: "bookmark", emoji: "๐Ÿ”–", name: "Bookmark", category: "time" },
2511
- { id: "tag", emoji: "๐Ÿท๏ธ", name: "Tag", category: "time" },
2512
- { id: "pushpin", emoji: "๐Ÿ“Œ", name: "Pin", category: "time" },
2513
- // Shapes & Geometric
2514
- { id: "red-circle", emoji: "๐Ÿ”ด", name: "Red Circle", category: "shapes" },
2515
- { id: "blue-circle", emoji: "๐Ÿ”ต", name: "Blue Circle", category: "shapes" },
2516
- { id: "green-circle", emoji: "๐ŸŸข", name: "Green Circle", category: "shapes" },
2517
- { id: "yellow-circle", emoji: "๐ŸŸก", name: "Yellow Circle", category: "shapes" },
2518
- { id: "orange-circle", emoji: "๐ŸŸ ", name: "Orange Circle", category: "shapes" },
2519
- { id: "purple-circle", emoji: "๐ŸŸฃ", name: "Purple Circle", category: "shapes" },
2520
- { id: "white-circle", emoji: "โšช", name: "White Circle", category: "shapes" },
2521
- { id: "black-circle", emoji: "โšซ", name: "Black Circle", category: "shapes" },
2522
- { id: "red-square", emoji: "๐ŸŸฅ", name: "Red Square", category: "shapes" },
2523
- { id: "blue-square", emoji: "๐ŸŸฆ", name: "Blue Square", category: "shapes" },
2524
- { id: "diamond", emoji: "๐Ÿ’Ž", name: "Diamond", category: "shapes" },
2525
- // Arrows
2526
- { id: "arrow-up", emoji: "โฌ†๏ธ", name: "Arrow Up", category: "arrows" },
2527
- { id: "arrow-down", emoji: "โฌ‡๏ธ", name: "Arrow Down", category: "arrows" },
2528
- { id: "arrow-left", emoji: "โฌ…๏ธ", name: "Arrow Left", category: "arrows" },
2529
- { id: "arrow-right", emoji: "โžก๏ธ", name: "Arrow Right", category: "arrows" },
2530
- { id: "target", emoji: "๐ŸŽฏ", name: "Target", category: "arrows" }
2531
- ];
2532
2551
  const CATEGORIES = [
2533
2552
  { id: "places", label: "Places" },
2534
2553
  { id: "transport", label: "Transport" },
@@ -2546,7 +2565,6 @@ const CATEGORIES = [
2546
2565
  { id: "shapes", label: "Shapes" },
2547
2566
  { id: "arrows", label: "Arrows" }
2548
2567
  ];
2549
- const EMOJI_BY_ID = new Map(ICONS.map((i) => [i.id, i.emoji]));
2550
2568
  function IconPicker({ value, onChange, disabled = false, renderTrigger, open: controlledOpen, onOpenChange }) {
2551
2569
  const [internalOpen, setInternalOpen] = useState(false);
2552
2570
  const open = controlledOpen ?? internalOpen;
@@ -9650,7 +9668,7 @@ function loadEmojiIconsIntoMap(mapInstance) {
9650
9668
  }
9651
9669
  }
9652
9670
  mapInstance.setMissingStyleImageResolver((id) => {
9653
- if (mapInstance.hasImage(id)) return;
9671
+ if (mapInstance.hasImage(id) || !isEmojiIcon(id)) return;
9654
9672
  try {
9655
9673
  const canvas = renderEmojiToCanvas(id);
9656
9674
  mapInstance.addImage(id, emojiCanvasToImageData(canvas), { pixelRatio: ratio });