Spatial Analysis in 2025: Key Trends Report
| Download Now
CARTO
Platform
Overview
Visualization
Analytics
App Development
Data Enrichment
AI Agents
Enterprise & Security
Pricing
CARTO for
Google Cloud
AWS
Azure
Snowflake
Databricks
Oracle
Solutions
By Industry
By Use Case
By Role
Telecoms
Icon/indus/Insurance-menu
Icon/indus/Insurance-menu-mobile
Insurance
Logistics
Real Estate
Financial Services
Retail
Marketing & Advertising
Mobility
All industries
Network Deployment
Catastrophe Modeling
Fraud Detection
Market Analysis
Environmental Management
Site Selection
Geomarketing
Data Monetization
IoT Analytics
Supply Chain Optimization
Healthcare Analytics
Territory Planning
All use cases
Data Analyst
Data Scientist
GIS Professional
Developer
Customers
Resources
Learn
Documentation
CARTO Academy
Blog
Reports
Glossary
Connect
Events
Partners
Webinars
Log inRequest a demo
Try for free
2050-01-01
1990-01-01
"ES", "GB"

This content applies to a previous version of CARTO

In October 2021 we released a new version of our platform. You can find the latest documentation at docs.carto.com

Back to Help Center

How to center a CARTO Builder map embed

Overview

Centering a Builder map involves modifying the URL with encoded bounding box coordinates. When you move the view in an embed, the URL updates to reflect a bounding box with Northeast (NE) and Southwest (SW) coordinates. The structure follows this pattern:

https:///embed?state={"map":{"ne":[x, y],"sw":[x, y]}}

Steps to Center a Map

1. Determine Your Bounding Box Coordinates

Start with a base Builder embed URL:

https://public.carto.com/builder/d1d752cb-a9c4-432d-b624-75891551f27e/embed?

Use a tool like bboxfinder.com to find the latitude/longitude coordinates for your desired viewing area.

2. Create the State Parameter

Insert your coordinates into the JSON structure. For example, using coordinates 0,0 and 100,100:

{"map":{"ne":[0, 0],"sw":[100, 100]}}

3. URL Encode the State Parameter

Use an online encoder to convert the JSON (the portion after “state=”). Reference tools like meyerweb.com’s encoder for this step.

Encoded result:

%7B%22map%22%3A%7B%22ne%22%3A%5B0%2C%200%5D%2C%22sw%22%3A%5B100%2C%20100%5D%7D%7D

4. Replace Quote Encoding

Replace %22 characters with standard quotation marks ":

%7B"map"%3A%7B"ne"%3A%5B0%2C%200%5D%2C"sw"%3A%5B100%2C%20100%5D%7D%7D

5. Assemble the Final URL

Combine everything:

https://public.carto.com/builder/d1d752cb-a9c4-432d-b624-75891551f27e/embed?state=%7B"map"%3A%7B"ne"%3A%5B0%2C%200%5D%2C"sw"%3A%5B100%2C%20100%5D%7D%7D

Important Note

This method is not a documented feature and it can change anytime – regular verification of compatibility is recommended.

CARTO
carto-logo
  • Platform

  • Overview

  • Visualization

  • Analytics

  • App Development

  • Data Enrichment

  • Security & Governance

  • Gen AI

  • Pricing

  • Solutions

  • Data Analyst

  • Developer

  • Data Scientist

  • GIS Professional

  • By Industry

  • By Use Case

  • Resources

  • Customer Stories

  • Blog

  • Glossary

  • Documentation

  • Academy

  • Reports

  • Events

  • Webinars

  • Partners

  • Company

  • About us

  • Newsroom

  • Careers

  • Brand

  • Grants

Unlock the power of spatial analysis.

youtube logofacebook logotwitter logolinkedin logo

© CARTO 2024

Terms

Privacy Notice

Whistleblower Form