LWCAdvancedmapsfield-serviceintegration
Integrate third-party maps in LWC for field service
Real World Scenario
Field tech dispatch map must show routes and service appointments on record page.
Expected Answer
• Evaluate Salesforce Maps vs Google Maps static resource embed
• API keys in Named Credential proxy via Apex not client
• Marker clustering for dense appointment areas
• Mobile geolocation permission UX
• Offline map tile caching limitations
• Governor-safe geocoding batch not per render
Follow-Up Questions & Answers
Click to expand — each follow-up includes a direct, interview-ready answer
Direct answer: Evaluate Salesforce Maps vs Google Maps static resource embed Also consider: API keys in Named Credential proxy via Apex not client In practice: Marker clustering for dense appointment areas Optimize for scale and operational observability.
Architect Perspective
Maps need server-side key protection and lazy load—never block record page paint.