# Vector Maps - Quick Start Guide
## π Get Started in 3 Minutes
### Step 1: Get API Key (Free)
1. Go to [maptiler.com](https://www.maptiler.com/)
2. Sign up (free tier: 100,000 requests/month)
3. Copy your API key
### Step 2: Add to Environment
Edit `.env` file:
```bash
REACT_APP_MAPTILER_KEY=your_key_here
```
### Step 3: Use Vector Maps
```typescript
import VectorMap from './components/home/VectorMap';
```
## π¨ Available Styles
| Style | Description |
|-------|-------------|
| `positron` | Clean light (recommended) |
| `dark-matter` | Sleek dark theme |
| `osm-bright` | Colorful OpenStreetMap |
| `klokantech-basic` | Simple & minimal |
## β¨ Features
β
**60% faster** than raster tiles
β
**Sharp on all displays** - perfect Retina support
β
**Club color integration** - automatic marker coloring
β
**Smooth zoom** - GPU accelerated
β
**Mobile optimized** - touch gestures built-in
## π― Club Color Integration
Your club colors are automatically applied:
```typescript
```
**Result:**
- Marker pin colored with primary color
- Water features subtly tinted
- Perfect brand consistency
## π Comparison
### Vector (New)
- π 150 KB initial + 20 KB per zoom
- πΌοΈ Always sharp (vector rendering)
- π¨ Runtime color changes
- β‘ GPU accelerated
### Raster (Old)
- π¦ 100 KB initial + 200 KB per zoom
- πΌοΈ Pixelated between zooms
- π¨ Fixed tile colors
- π» CPU rendering
## π‘ Pro Tips
1. **For Red/Blue Clubs:**
Use `positron` style - makes your colors pop
2. **For Dark Sites:**
Use `dark-matter` - modern look
3. **For Performance:**
Use `klokantech-basic` - simplest, fastest
4. **For Best Quality:**
Always provide both primary & secondary colors
## π§ Advanced: Custom Styles
Host your own style JSON:
```typescript
```
Based on [Positron GL Style](https://github.com/openmaptiles/positron-gl-style)
## π± Mobile
Works perfectly out of the box:
- Pinch to zoom
- Pan with one finger
- Rotate with two fingers
- Auto-adjusts to screen size
## π When to Use Each
**Use Vector Maps When:**
- Need sharp rendering
- Want dynamic styling
- Performance matters
- Modern browsers only
**Use Raster Maps When:**
- Need broad compatibility
- Simpler implementation
- Offline maps required
## π Learn More
- Full docs: `VECTOR_MAPS_IMPLEMENTATION.md`
- Style customization: `ENHANCED_MAP_IMPLEMENTATION.md`
- MapLibre docs: [maplibre.org](https://maplibre.org/)
---
**Time to Implement:** ~5 minutes
**Difficulty:** Easy
**Cost:** Free (100k requests/month)
**Result:** Professional, fast, beautiful maps! πΊοΈβ¨