SocioWire frontend (working JS source, swchrist/sw-fe) — self-hosted mirror w/ v2 globe+clusters
Go to file
Your Name 266292eba2 Final polish: Remove duplicate buttons, fix pin anchoring
1. Remove Duplicate Buttons (MapView.jsx):
   - Removed "My spot" and "New wire" buttons from map-top-actions
   - These functions already available in SmartSearchBar icons
   - Cleaner UI, less clutter

2. Fix Pin Anchoring - Pins Stay Fixed Now! (markerManager.js):
   - Root element now has fixed dimensions: width:40px, height:52px
   - Pin container positioned absolute bottom:0 (ensures correct anchor point)
   - Hover card uses bottom:100% instead of fixed pixel value
   - Transform includes translateY(-6px) for proper spacing
   - Result: Pins remain perfectly fixed at geographic position during zoom/pan

Pin DOM structure now:
```
<div root style="width:40px;height:52px"> (anchor bottom here)
  <div container style="position:absolute;bottom:0">
    <circle>image</circle>
    <triangle>point</triangle>
  </div>
  <div hover-card style="bottom:100%">preview</div>
</div>
```

The key: Root has explicit height, pin container at bottom,
so MapLibre anchor:"bottom" aligns triangle point with lat/lon

Tested: Pins now stay locked to position on zoom/pan 

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-23 15:48:01 -05:00
public update frontend 2025-12-21 23:37:00 -05:00
src Final polish: Remove duplicate buttons, fix pin anchoring 2025-12-23 15:48:01 -05:00
utils update frontend 2025-12-21 00:28:26 -05:00
.gitignore yeah 2025-12-08 23:22:58 +00:00
README.md carche 2025-12-22 02:30:42 -05:00
deploy.sh blehh 2025-12-18 22:39:29 -05:00
eslint.config.js yeah 2025-12-08 23:22:58 +00:00
index.html update frontend 2025-12-21 22:54:50 -05:00
logo-master.png update frontend 2025-12-21 20:16:34 -05:00
package-lock.json bleh 2025-12-19 16:24:21 -05:00
package.json j essais de fix 2025-12-16 22:47:17 -05:00
vite.config.js j essais de fix 2025-12-16 22:47:17 -05:00

README.md

React + Vite

char ok tourbmarxhe y

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

React Compiler

The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.

Expanding the ESLint configuration

If you are developing a production application, we recommend using TypeScript with type-aware lint rules enabled. Check out the TS template for information on how to integrate TypeScript and typescript-eslint in your project.