Locarta
Locarta is a specialized mapping product that helps accommodation hosts create personalized local recommendation maps for their guests. Instead of sending visitors a long list of restaurants, attractions, cafés and interesting locations, hosts can provide a beautifully organized interactive map. The technically interesting aspect is its lightweight mapping architecture, combining OpenStreetMap, PMTiles and MapLibre without requiring a conventional tile server.
Tech stack
- ChatGPT
- Lovable
- Supabase
Links
Prompt steps
Step 1
# MASTER DEVELOPMENT PROMPT ## Build a Premium Interactive Map Creation and Local Discovery Platform ### 01. ROLE AND EXECUTION DIRECTIVE You are an elite full-stack software engineer, geospatial systems architect, cartographic designer, creative technologist, interaction designer, and product development lead. Build a complete web application that enables users to create beautiful, personalized, interactive maps featuring carefully curated local recommendations. The application should be inspired by Locarta's lightweight mapping architecture and hospitality-focused product concept while maintaining an original brand, interface, and implementation. Do not build a generic map with a collection of markers. Build a premium digital experience that combines professional cartography, interactive travel guides, personalized recommendations, visual storytelling, and a sophisticated map creation studio. The application must have real mapping functionality, geographic search, map customization, place management, persistent projects, public sharing, and export capabilities. Do not stop at a landing page or prototype.Step 2
# PART A — PRODUCT VISION ## 02. Core product concept Create a platform where anyone can transform their local knowledge into a beautiful digital map. Users should be able to select a geographic area, add recommended places, organize them into categories, customize map appearance, and publish a shareable interactive guide. A hotel owner should be able to create a neighborhood guide for guests. A photographer should be able to create a map of photographic locations. A travel blogger should be able to publish a curated destination guide. A university should be able to create a campus discovery map. A festival organizer should be able to provide an interactive event map. A local resident should be able to create a personal collection of favorite places. The central product promise: Turn places you love into maps worth exploring. ## 03. Problems to solve Traditional mapping platforms are designed primarily for navigation and geographic search. They are not always ideal for creating visually distinctive, curated local experiences. Users frequently share recommendations through: - Long text documents - PDF travel guides - Unorganized bookmarks - Messaging applications -…Step 3
# PART B — PREMIUM VISUAL IDENTITY ## 06. Design direction Develop a visual identity inspired by contemporary cartography, boutique travel publications, architectural diagrams, premium lifestyle magazines, and modern creative software. The product should feel handcrafted. Avoid generic AI SaaS interfaces, excessive purple gradients, glassmorphism on every component, oversized rounded cards, and meaningless decorative animations. Use elegant typography, restrained colors, carefully composed whitespace, and detailed maps. ## 07. Color system Primary light theme: - Canvas background: #F6F4EE - Primary surface: #FFFFFF - Secondary surface: #EDEAE2 - Primary text: #202820 - Secondary text: #73796F - Forest accent: #345747 - Terracotta accent: #C57756 - Muted gold: #BFA16D - Border: #DDDFD5 Dark map studio: - Background: #151916 - Secondary surface: #202621 - Elevated surface: #2B322C - Primary text: #F0F1EA - Secondary text: #A2ACA0 - Accent: #C0D498 Map style colors must remain independently configurable. ## 08. Typography Use a sophisticated serif typeface for prominent editorial headings. Use a clean sans-serif for controls, application navigation, and descriptions. S…Step 4
# PART C — PUBLIC WEBSITE ## 11. Landing page Create a substantial, premium landing page. The hero should contain a real interactive demonstration map rather than a static dashboard mockup. Users should immediately understand that the product creates personalized local guides. Hero elements: - Strong editorial headline - Short product explanation - Create a Map button - Explore Demo button - Interactive map preview - Curated recommendation cards The map should support actual panning, zooming, and marker selection. ## 12. Interactive demonstration Provide an example map containing manually verified public places. Include clearly labeled example categories: - Coffee - Restaurants - Culture - Parks - Shopping - Experiences Clicking a place should open its recommendation card. Switching categories should filter the map. Do not present example data as user-generated recommendations. ## 13. Landing page sections Build: 1. Hero with interactive map. 2. Explanation of the product. 3. Visual demonstration of map customization. 4. Hospitality use cases. 5. Map theme gallery. 6. Public sharing demonstration. 7. Explanation of lightweight mapping technology. 8. Pricing, if mo…Step 5
# PART D — AUTHENTICATION AND ONBOARDING ## 14. Authentication Support: - Email magic links - Google OAuth - Secure session management - Logout - Account recovery - Profile editing - Account deletion Use Supabase Auth or Auth.js. Public map viewers should not need authentication. ## 15. First-time onboarding Display a concise onboarding flow. Ask what the user wants to create: - Guest recommendation guide - Travel guide - Personal map - Business directory - Event map - Custom map Next, allow the user to search for a location. Then select a starting map style. Create the project and open the map studio. Avoid unnecessary onboarding questions. ## 16. Project creation Project fields: - Project name - Description - Map purpose - Geographic center - Initial zoom - Geographic bounds - Default map style - Language - Visibility Allow editing these settings later.Step 6
# PART E — PROJECT DASHBOARD ## 17. Dashboard architecture Create a workspace displaying all user-created maps. Navigation: - Overview - My Maps - Place Library - Map Themes - Shared Maps - Account Settings Main dashboard: - Create new map - Recent projects - Published maps - Draft maps - Search - Filters - Sorting ## 18. Project cards Each card should display: - Real generated map thumbnail - Map title - Geographic region - Number of recommendations - Visibility - Publication status - Last edited date Actions: - Edit - Preview - Duplicate - Publish - Share - Archive - Delete Generate thumbnails from actual project data. Do not use unrelated stock images.Step 7
# PART F — MAP CREATION STUDIO ## 19. Editor layout Build a professional full-screen map editor. Top toolbar: - Project title - Save status - Undo - Redo - Preview - Share - Export - Publish Left panel: - Places - Categories - Layers - Map Themes - Project Settings Center: - Interactive MapLibre canvas - Map controls - Geographic search - Marker editing - Selection tools - Drawing tools Right panel: - Selected place inspector - Description editor - Marker appearance - Image management - Geographic coordinates - Recommendation metadata Allow panels to collapse and resize. ## 20. Core map interactions Implement: - Pan - Zoom - Rotate - Reset orientation - Fullscreen - Fit to recommendations - Geographic search - Click-to-add place - Drag marker - Select marker - Cluster markers - Switch map style - Display scale - Display attribution Use MapLibre GL JS for rendering. Handle context loss and tile-loading errors gracefully. ## 21. Map project settings Users should control: - Map title - Subtitle - Description - Default view - Default zoom - Camera bearing - Pitch - Geographic bounds - Theme - Marker visibility - Label visibility - Public navigation controls Persist…Step 8
# PART G — GEOSPATIAL INFRASTRUCTURE ## 22. Mapping architecture Build a lightweight mapping infrastructure using: - OpenStreetMap data - Geofabrik extracts - Osmium - Planetiler - PMTiles - MapLibre GL JS The objective is to serve efficient vector map archives without maintaining a conventional custom tile server. Use a licensed hosted basemap during initial development if necessary, while keeping the PMTiles pipeline fully supported. ## 23. PMTiles generation pipeline Implement a separate geospatial processing service. Workflow: 1. Select geographic region. 2. Retrieve an appropriate licensed OSM data extract. 3. Clip the extract to requested geographic bounds. 4. Validate geographic coordinates. 5. Process vector features using Planetiler. 6. Generate a PMTiles archive. 7. Validate archive metadata. 8. Upload the archive to object storage. 9. Register the resulting tile source. 10. Make it available to the map renderer. Use Docker for consistent geospatial tooling. Support Java-based Planetiler execution where appropriate. ## 24. Geographic layers Support vector layers for: - Land - Water - Waterways - Coastline - Roads - Buildings - Parks - Land use - Administrat…Step 9
# PART H — PLACE DISCOVERY AND MANAGEMENT ## 29. Geographic search Implement a geocoding provider abstraction. Possible providers: - Photon - Pelias - Commercial geocoding APIs - Self-hosted Nominatim Follow provider usage policies. Do not use an unrestricted public Nominatim endpoint for high-volume autocomplete. Implement debouncing, rate limits, caching, and approved attribution. ## 30. Adding recommendations Users should be able to add places through: - Geographic search - Clicking directly on the map - Entering coordinates - Entering an address - Importing CSV - Importing GeoJSON When search returns multiple locations, show enough context for the user to select the correct result. ## 31. Place data model Each place contains: - ID - Map ID - Name - Latitude - Longitude - Address - Category - Short description - Long description - Website - Contact information - Cover image - Additional images - Custom icon - Marker color - Display order - Visibility - Source information - Created and updated timestamps Opening hours and other potentially changing information should include source and update metadata when available. ## 32. Place inspector Provide an editable ri…Step 10
# PART I — CATEGORY SYSTEM ## 35. Recommendation categories Default categories: - Food - Coffee - Nightlife - Nature - Culture - Shopping - Transportation - Experiences - Essential services - Hidden gems Allow users to create, rename, reorder, and delete categories. ## 36. Category customization Each category includes: - Name - Icon - Marker color - Description - Display order - Visibility Provide an icon library using consistent vector icons. Allow SVG uploads only after sanitization. ## 37. Map filtering Users should be able to select one or multiple categories. Filtering should update: - Visible map markers - Marker clusters - Recommendation list - Result count Handle empty results with a helpful message.Step 11
# PART J — CUSTOM CARTOGRAPHY STUDIO ## 38. Map themes Create at least six distinctly designed map styles. ### Botanical Muted green landscapes, cream roads, subtle water colors, natural editorial character. ### Midnight Dark backgrounds, understated labels, luminous selected markers. ### Architectural Monochrome land, precise building outlines, high road contrast. ### Coastal Soft blue water, warm sandy terrain, restrained typography. ### Vintage Atlas Parchment-inspired colors, historical cartographic character, contemporary readability. ### Minimal Paper Off-white background, muted gray roads, simplified details, strong visual hierarchy. All styles must render real map data. ## 39. Advanced styling Allow users to customize: - Land color - Water color - Park color - Building color - Road color - Road width - Label color - Label size - Background - Boundary visibility - Feature opacity Apply changes through validated MapLibre style properties. Provide reset-to-default functionality. ## 40. Style preview Theme cards should show the same geographic area rendered in different styles. Use actual renderer output rather than generic static illustrations. Switch…Step 12
# PART K — GEOGRAPHIC DRAWING TOOLS ## 42. Custom layers Allow creators to add: - Points - Lines - Polygons - Areas - Walking paths - Neighborhood boundaries - Highlight regions Store geometry using GeoJSON. ## 43. Drawing interactions Implement: - Add vertex - Move vertex - Delete vertex - Finish geometry - Cancel drawing - Edit geometry - Change fill - Change outline - Set opacity - Add label Validate geometry before saving. Reject malformed polygons or explain unsupported shapes. ## 44. Routes Allow users to draw their own recommendation route. Optionally integrate a legitimate routing provider for calculated walking or driving routes. Distinguish manually drawn paths from calculated routes. Do not fabricate walking times or distances. Provide clear attribution and routing-service error handling.Step 13
# PART L — PUBLIC MAP EXPERIENCE ## 45. Published map viewer Build an immersive public map page. The page should feel like a boutique digital travel guide. Desktop layout: - Guide title - Optional host branding - Category filters - Recommendation list - Full interactive map - Selected-place detail card Mobile layout: - Full-screen map - Floating map controls - Collapsible recommendation bottom sheet - Horizontal category selection - Accessible place detail view ## 46. Place details When a visitor clicks a marker, show: - Place name - Category - Cover photo - Creator's recommendation - Address - Website - Contact details when available - Open in navigation application Support switching between nearby recommendations. Do not require visitors to sign up. ## 47. Guest guide branding Allow creators to customize: - Guide title - Host name - Logo - Welcome message - Cover image - Accent color - Footer text - Contact link Hosts should be able to create guides that visually complement their property or business identity. ## 48. Search and discovery Visitors should be able to search place names and descriptions within the published guide. Provide category filtering and a…Step 14
# PART M — SHARING AND PUBLISHING ## 49. Publishing workflow When a user clicks Publish: 1. Validate the project. 2. Validate required map sources. 3. Validate recommendations. 4. Confirm media availability. 5. Generate an immutable publication snapshot. 6. Assign a public slug. 7. Publish the guide. 8. Return the public URL. The published version should remain stable until the creator republishes. ## 50. Visibility settings Support: - Private - Unlisted - Public - Password-protected, if enabled Enforce visibility rules server-side. An unlisted URL should not be presented as strong security. ## 51. Sharing tools Provide: - Copy public URL - QR code generation - Download QR code - Native share interface where supported - Embeddable map - Printable guest information card Every sharing action must reference a real published project. ## 52. Embed system Allow creators to embed their public maps into external websites. Generate a valid iframe snippet. Apply: - Appropriate content security policy - Frame permissions - Responsive dimensions - Origin restrictions where configured Do not expose private maps through public embed endpoints.Step 15
# PART N — EXPORT SYSTEM ## 53. Map export formats Support: - PNG - JPEG - SVG where technically appropriate - PDF - GeoJSON - CSV - Project JSON backup For visual exports, preserve map styles, markers, title, attribution, and selected layout. Do not promise vector SVG output from WebGL raster rendering unless a real vector export pipeline exists. ## 54. Print map designer Create a print layout interface. Options: - A4 - A3 - Landscape - Portrait - Square - Custom dimensions - Title - Subtitle - Legend - QR code - Attribution - Margins Provide a real preview. Ensure exports are readable at the requested physical size. ## 55. Project backups Allow creators to export a portable project file containing: - Project settings - Recommendations - Categories - Geometry - Map style configuration - Asset references Validate imports and support schema migrations. Never include secret API credentials in exports.Step 16
# PART O — BACKEND AND DATABASE ## 56. Recommended technology stack Frontend: - Next.js App Router - React - TypeScript - Tailwind CSS - Radix UI - Zustand - Motion Mapping: - MapLibre GL JS - PMTiles JavaScript library - Turf.js - GeoJSON - OpenStreetMap-derived vector tiles Geospatial processing: - Osmium - Planetiler - Docker - Node.js worker service Backend: - Next.js server routes - PostgreSQL - PostGIS - Drizzle ORM or Prisma with appropriate spatial queries Authentication: - Supabase Auth or Auth.js Storage: - Cloudflare R2 Background processing: - Redis - BullMQ or equivalent managed queues Testing: - Vitest - Playwright Deployment: - Vercel for frontend and compatible API functions - Managed PostgreSQL - Render, Railway, or dedicated container infrastructure for geospatial jobs Do not run resource-intensive Planetiler jobs inside short-lived frontend serverless functions. ## 57. Database entities User: id, email, name, avatar, createdAt MapProject: id, ownerId, title, description, center, zoom, bearing, pitch, styleId, visibility, createdAt, updatedAt Place: id, projectId, name, coordinates, address, description, categoryId, metadata, createdAt Ca…Step 17
# PART P — RELIABILITY AND SECURITY ## 59. Autosave Implement debounced autosave. Display: - Saving - Saved - Offline - Save failed - Conflict detected Keep a recoverable local draft during temporary network failures. Use project revision numbers to prevent silent overwrites. ## 60. Undo and redo Use reversible editor commands. Support undo for: - Place creation - Place deletion - Marker movement - Category changes - Map style changes - Geometry edits Persist periodic snapshots. ## 61. Security Implement: - Server-side authorization - Project ownership enforcement - Protected upload endpoints - Signed asset URLs - Safe rich-text rendering - SVG sanitization - Rate limiting - Secure cookies - CSRF protection where applicable - Content security policy - Secret management - Background job isolation Treat external geocoding responses and uploaded files as untrusted data. Restrict remote URL fetching to approved destinations to prevent SSRF. ## 62. Privacy Public maps may reveal sensitive personal locations. Provide clear visibility controls. Warn users before publishing private or residential locations they have added. Visitor location access must require permissi…Step 18
# PART Q — PERFORMANCE ## 63. Map performance Optimize: - Vector tile requests - Marker clustering - GeoJSON updates - Style changes - Layer rendering - Image loading - Map initialization - Mobile memory usage Use MapLibre layers for large marker collections rather than thousands of individual DOM markers. Avoid rebuilding the entire map instance after every state update. ## 64. Application performance Implement: - Route-level code splitting - Lazy-loaded export modules - Efficient database queries - CDN-cached public snapshots - Optimized thumbnails - Web Workers for heavy client-side processing - Background job queues for expensive exports Do not preload unnecessary map archives. ## 65. Accessibility Support: - Keyboard navigation - Visible focus states - Accessible names for controls - Screen-reader-friendly place lists - High contrast - Reduced motion - Touch-friendly controls Provide a complete list-based alternative to map navigation.Step 19
# PART R — TESTING AND IMPLEMENTATION ## 66. Unit tests Test: - Coordinate validation - GeoJSON parsing - Category filters - Style transformations - Map project serialization - Undo and redo - Publication slug generation - Archive job validation ## 67. Integration tests Test: - Authentication - Project persistence - Geocoding integration - Place creation - Asset uploads - PMTiles archive registration - Publication - Public map retrieval - Export generation ## 68. End-to-end acceptance test A new user must be able to: 1. Open the website. 2. Explore an interactive demonstration. 3. Create an account. 4. Create a map. 5. Search for a geographic location. 6. Add at least three real places. 7. Organize places into categories. 8. Customize marker appearance. 9. Switch map themes. 10. Draw a geographic area. 11. Save the project. 12. Reload and restore the saved map. 13. Publish a public guide. 14. Open the published guide without authentication. 15. Filter recommendations. 16. Open a place detail card. 17. Generate a QR code. 18. Export a map image. 19. Export project data. 20. Import the exported project. Verify these workflows using real functionality. ## 69. Implementatio…Step 20
# PART S — FINAL QUALITY STANDARDS The product must not contain: - Fake map controls - Invented geographic search results - Placeholder recommendations presented as real - Nonfunctional map styles - Static screenshots pretending to be interactive maps - Broken publication links - Fake export downloads - Generic dashboard layouts - Unlicensed map data - Unnecessary cloud infrastructure - Uncontrolled geographic processing costs Every major feature must provide real input, processing, persistence, and output. ## Final deliverables Provide: - Complete frontend source code - Backend source code - Database migrations - Geospatial processing worker - PMTiles pipeline - Docker configuration - Environment variable examples - Initial map styles - Automated test suite - Deployment instructions - Data attribution documentation - Security documentation - Known limitations - Working production build ## FINAL EXECUTION DIRECTIVE Build the complete application. Do not stop after making a visually impressive landing page. The actual map editor, geographic recommendation system, map styles, persistence, public viewer, export functionality, and publishing system must work. Where third-pa…
1 like · 4 views