Performance, Testing & Common Mistakes
Performance Optimization
Style Performance:
- Minimize layer count (combine similar layers)
- Use expressions instead of multiple layers for variants
- Simplify complex geometries at lower zooms
- Use sprite sheets for repeated icons
- Leverage tileset simplification
Loading Speed:
- Preload critical zoom levels
- Use style optimization tools
- Minimize external resource calls
- Compress images in sprite sheets
Testing Your Design
Checklist:
- View at all relevant zoom levels
- Test in different lighting conditions
- Check on actual devices (mobile, desktop)
- Verify color accessibility (colorblind.org)
- Review with target users
- Test with real data density
- Check label collision/overlap
- Verify performance on slower devices
Common Mistakes to Avoid
- Too many colors: Stick to 5-7 main colors maximum
- Insufficient contrast: Text must be readable
- Overcrowding: Not everything needs a label
- Ignoring zoom levels: Show appropriate detail for scale
- Poor label hierarchy: Organize by importance
- Inconsistent styling: Maintain visual consistency
- Neglecting performance: Complex styles slow rendering
- Forgetting mobile: Test on actual devices