SlideShare una empresa de Scribd logo
1 de 29
Descargar para leer sin conexión
Developing Spatial
Applications with CARTO for
React v1.1
Follow @CARTO on Twitter
CARTO — Unlock the power of spatial analysis
Introductions
Borja Muñoz
Product Manager at CARTO
Antonio Hita
Solutions Engineer at CARTO
CARTO — Unlock the power of spatial analysis
Agenda
● Introduction to CARTO for React
● New features in version 1.1
● Demo time
● Q&A
CARTO
Customers
Unlock the power of spatial analysis
>2,000
Team members
150+
Contender - LI Wave 2020
CARTO — Unlock the power of spatial analysis
Most organizations are missing an
opportunity...
TREND
80%
of all data collected has a
location component
10%
used to power
business decisions
CARTO — Unlock the power of spatial analysis
We unlock the power of spatial
analysis in the cloud
New End Users
● Business Analysts
● Product Managers
● Data Scientists
● Decision Makers
● Web Developers
● Advanced Analytics
New Data Streams New Use Cases
● Human Mobility
● Weather
● Credit Card Transactions
● IoT Hardware
● Connected Devices
● Census or Open Data
● CRM or Loyalty Data
● Site Selection
● POS Market Analysis
● Territory Design
● Supply Chain Optimization
● Geomarketing
● Data Monetization
CARTO — Unlock the power of spatial analysis
With a fully cloud native platform
CARTO — Unlock the power of spatial analysis
Fully cloud native
Seamlessly interact with data on top of the leading cloud data warehouse
platforms, eliminating ETL complexity and any limits on scalability.
An end-to-end Location Intelligence solution
Connect to data, access spatial data subscriptions, create advanced map
visualizations and run spatial analysis, natively in the cloud environment.
Spatial analytics wherever your data is hosted
Advanced spatial functions, extending the geospatial capabilities available
in cloud data platforms, all executed from within CARTO, using simple SQL
commands.
Rapid spatial app development
For developers, CARTO integrates a complete toolkit of frameworks,
libraries and templates for scalable spatial app development.
A unique Location Intelligence platform
CARTO — Unlock the power of spatial analysis
● Create intuitive, map-centric web applications
quickly using our developer frameworks and
templates.
● With CARTO for deck.gl create scalable
applications to visualize spatial data using
vector technology, fully integrated with Google
Maps.
● Kickstart app development with CARTO for
React, a library of user interface components
and simplified CARTO connections.
● Direct access to technical documentation and
templates, including the latest updates
Developer Tools
CARTO — Unlock the power of spatial analysis
POLL 1
React ……………………………………………………………..
Vue.js ……………………………………………………………..
Angular ……………………………………………………………..
Which frontend frameworks do you use?
No framework / Vanilla JavaScript…………………………………..
CARTO — Unlock the power of spatial analysis
CARTO for React
● Toolbox for programmers for faster development of better map centric
applications.
● Includes a library of UI components based on the CARTO design system
● It is free for anybody to use with CARTO.
● The recommended way to build apps with CARTO.
CARTO — Unlock the power of spatial analysis
Main components
● Create React App templates
○ Base
■ base-2
■ base-3
■ base-3-typescript
○ Sample Apps
■ sample-app-2
■ sample-app-3
● Library
○ API
○ Auth
○ Basemaps
○ Core
○ Redux
○ UI
○ Widgets
○ Workers
CARTO — Unlock the power of spatial analysis
Architecture
● Best practices for building scalable and maintainable spatial web apps
● Not reinvent the wheel, use popular libraries with a huge community behind
CARTO — Unlock the power of spatial analysis
State management
● The goal is to keep all the components (map, layers and widgets) in sync
● One of the most complex issues in spatial web apps development
● Using imperative programming things become unmanageable when the number of
components grow
● Redux provides a central store where you can maintain your application state
● Components that depend on state react to changes:
○ Provides a clean design to update widgets on viewport changes, update layers when
data is filtered using widgets and updating widgets when another widget is filtered
CARTO — Unlock the power of spatial analysis
POLL 2
deck.gl ……………………………………………………………..
Google Maps Javascript API ……………………………..
Mapbox GL JS ……………………………………………………………..
What visualizations libraries do you use for web applications?
ArcGIS API for JavaScript …………………………………………..
Other ……………………………………………………………..
CARTO — Unlock the power of spatial analysis
Visualization
● CARTO for React uses the CARTO module for deck.gl for visualization (CartoLayer)
● You can customize the style using any of the properties available in the GeoJsonLayer
● The CARTO module for deck.gl provides style helpers to easily apply color scales to features
● You can get additional tips in the Customizing the CartoLayer Style guide
● Layers and widgets are linked indirectly through the source
● The CartoLayer and the widgets are prepared to work both with GeoJSON and vector
tiles data sources
CARTO — Unlock the power of spatial analysis
● Base: minimum template with a
blank map and no widgets
● Sample app: template with layers
and widgets to demonstrate how
common spatial web apps
functionalities can be implemented
using CARTO for React
Templates
~ npx create-react-app my-app
--template @carto/base-3
~ npx create-react-app my-app
--template @carto/sample-app-3
CARTO — Unlock the power of spatial analysis
Templates -
Layout
● Responsive design
● Header with the title, links to
the different pages and a user
menu
● Sidebar to display view
content
● Map area for the map and
related floating elements
CARTO — Unlock the power of spatial analysis
Templates - Authentication & Authoriz.
● Works with CARTO platform OAuth
● First create a new app in the CARTO workspace to get a client ID (public identifier)
● Then configure the clientID in the InitialStateSlice
● You can also create applications that are not integrated with the CARTO platform
authentication (public or with their own auth system). You have two options:
○ You can use permanent tokens if you don’t do dynamic queries
○ You can develop your own backend that creates tokens with a
machine-to-machine client ID / client secret pair. More information: API docs
CARTO — Unlock the power of spatial analysis
Library
● Multi-package repo built with Lerna
● Can be used standalone
● Small packages with specific functionality
● React-Redux (with Redux Toolkit) for state management
● Material-UI for user interface components
● ECharts for charts in widgets
● Turf.js for spatial intersections
CARTO — Unlock the power of spatial analysis
Library - Packages
Property Description
@carto/react-api Interaction with CARTO platform APIs (i.e. SQL API) and general functionality.
@carto/react-auth Authentication & Authorization with the CARTO platform using OAuth
@carto/react-basemaps Access to CARTO and Google Maps basemaps
@carto/react-core Core functionality used from other packages
@carto/react-redux State management using Redux Toolkit
@carto/react-ui CARTO theme for Material-UI and user interface components for widgets
@carto/react-widgets Widgets models and business logic
@carto/react-workers Web worker methods for viewport features
CARTO — Unlock the power of spatial analysis
Library - Widgets
CARTO — Unlock the power of spatial analysis
● Based on Hygen
● The fastest way to create new
components
● Views
● Sources
● Layers
Code Generator
~ yarn hygen view new
$ hygen view new
✔ Name: · Places
✔ Route path: · places
✔ Do you want a link in the menu? (y/N) · true
~ yarn hygen source new
$ hygen source new
✔ Name: · Places
✔ Choose type · SQL dataset
✔ Type a query · SELECT * FROM populated_places
~ yarn hygen layer new
$ hygen layer new
✔ Name: · Places
✔ Choose a source · placesSource
✔ Do you want to attach to some view (y/N) · true
✔ Choose a view · Places (views/Places.js)
CARTO — Unlock the power of spatial analysis
Debugging
VS Code + Chrome + 2 extensions
CARTO — Unlock the power of spatial analysis
New templates
● Base JavaScript template for CARTO 3
● Base TypeScript template for CARTO 3
● Sample app template for CARTO 3
New features in
v1.1 (I)
~ npx create-react-app my-app
--template @carto/base-3
~ npx create-react-app my-app
--template @carto/base-3-typescript
~ npx create-react-app my-app
--template @carto/sample-app-3
CARTO — Unlock the power of spatial analysis
New features in v1.1 (II)
New widgets
CARTO — Unlock the power of spatial analysis
New features in v1.1 (III)
Integration with Google Maps vector basemaps
CARTO — Unlock the power of spatial analysis
It’s time for a real world example!
Thanks for listening!
Any questions?
Request a demo at CARTO.COM
Antonio Hita
Solutions Engineer at CARTO // ahita@carto.com
Borja Muñoz
Product Manager at CARTO // bmunoz@carto.com

Más contenido relacionado

La actualidad más candente

La actualidad más candente (20)

Supercharging Site Planning in Retail & Real Estate [CARTO Reveal]
Supercharging Site Planning in Retail & Real Estate [CARTO Reveal]Supercharging Site Planning in Retail & Real Estate [CARTO Reveal]
Supercharging Site Planning in Retail & Real Estate [CARTO Reveal]
 
Location Intelligence: The Secret Sauce for OOH Advertising
Location Intelligence: The Secret Sauce for OOH AdvertisingLocation Intelligence: The Secret Sauce for OOH Advertising
Location Intelligence: The Secret Sauce for OOH Advertising
 
7 Reasons Why CPG Marketers Are Turning To Location Analytics
7 Reasons Why CPG Marketers Are Turning To Location Analytics7 Reasons Why CPG Marketers Are Turning To Location Analytics
7 Reasons Why CPG Marketers Are Turning To Location Analytics
 
Using Spatial Analysis to Drive Post-Pandemic Site Selection in Retail
Using Spatial Analysis to Drive Post-Pandemic Site Selection in RetailUsing Spatial Analysis to Drive Post-Pandemic Site Selection in Retail
Using Spatial Analysis to Drive Post-Pandemic Site Selection in Retail
 
CARTO BUILDER: from visualization to geospatial analysis
CARTO BUILDER: from visualization to geospatial analysisCARTO BUILDER: from visualization to geospatial analysis
CARTO BUILDER: from visualization to geospatial analysis
 
Market analysis through Consumer Behavior Pattern Insights
Market analysis through Consumer Behavior Pattern InsightsMarket analysis through Consumer Behavior Pattern Insights
Market analysis through Consumer Behavior Pattern Insights
 
Winning Market Expansion Strategies for CPG brands, Using Spatial Data and An...
Winning Market Expansion Strategies for CPG brands, Using Spatial Data and An...Winning Market Expansion Strategies for CPG brands, Using Spatial Data and An...
Winning Market Expansion Strategies for CPG brands, Using Spatial Data and An...
 
Understanding Retail Catchment Areas with Human Mobility Data
Understanding Retail Catchment Areas with Human Mobility DataUnderstanding Retail Catchment Areas with Human Mobility Data
Understanding Retail Catchment Areas with Human Mobility Data
 
Unlocking Geospatial Analytics Use Cases with CARTO and Databricks
Unlocking Geospatial Analytics Use Cases with CARTO and DatabricksUnlocking Geospatial Analytics Use Cases with CARTO and Databricks
Unlocking Geospatial Analytics Use Cases with CARTO and Databricks
 
Geo-Enablement of the Supply Chain Analytics
Geo-Enablement of the Supply Chain AnalyticsGeo-Enablement of the Supply Chain Analytics
Geo-Enablement of the Supply Chain Analytics
 
Understanding short term rental & tourism trends through geospatial data [CAR...
Understanding short term rental & tourism trends through geospatial data [CAR...Understanding short term rental & tourism trends through geospatial data [CAR...
Understanding short term rental & tourism trends through geospatial data [CAR...
 
How to Use Spatial Data Science in your Site Planning Process? [CARTOframes]
How to Use Spatial Data Science in your Site Planning Process? [CARTOframes] How to Use Spatial Data Science in your Site Planning Process? [CARTOframes]
How to Use Spatial Data Science in your Site Planning Process? [CARTOframes]
 
Applying Spatial Analysis to Real Estate Decision-Making
Applying Spatial Analysis to Real Estate Decision-MakingApplying Spatial Analysis to Real Estate Decision-Making
Applying Spatial Analysis to Real Estate Decision-Making
 
The Ultimate Guide to Location Data: New Datasets & Methods
The Ultimate Guide to Location Data: New Datasets & MethodsThe Ultimate Guide to Location Data: New Datasets & Methods
The Ultimate Guide to Location Data: New Datasets & Methods
 
Location Intelligence for All: Enabling Individuals to Use Spatial Analysis [...
Location Intelligence for All: Enabling Individuals to Use Spatial Analysis [...Location Intelligence for All: Enabling Individuals to Use Spatial Analysis [...
Location Intelligence for All: Enabling Individuals to Use Spatial Analysis [...
 
Superapp
SuperappSuperapp
Superapp
 
Using Places (POI) Data for QSR Site Selection
Using Places (POI) Data for QSR Site SelectionUsing Places (POI) Data for QSR Site Selection
Using Places (POI) Data for QSR Site Selection
 
Building Business Platforms Using an API Driven Marketplace
Building Business Platforms Using an  API Driven MarketplaceBuilding Business Platforms Using an  API Driven Marketplace
Building Business Platforms Using an API Driven Marketplace
 
How to Use Spatial Data to Create a Wildfire Risk Index.pdf
How to Use Spatial Data to Create a Wildfire Risk Index.pdfHow to Use Spatial Data to Create a Wildfire Risk Index.pdf
How to Use Spatial Data to Create a Wildfire Risk Index.pdf
 
Vertex AI: Pipelines for your MLOps workflows
Vertex AI: Pipelines for your MLOps workflowsVertex AI: Pipelines for your MLOps workflows
Vertex AI: Pipelines for your MLOps workflows
 

Similar a Developing Spatial Applications with CARTO for React v1.1

Pref Presentation (2)
Pref Presentation (2)Pref Presentation (2)
Pref Presentation (2)
Prachi Patil
 
Mak product overview_no_video
Mak product overview_no_videoMak product overview_no_video
Mak product overview_no_video
Peter Swan
 

Similar a Developing Spatial Applications with CARTO for React v1.1 (20)

Tech Talk - Overview of Dash framework for building dashboards
Tech Talk - Overview of Dash framework for building dashboardsTech Talk - Overview of Dash framework for building dashboards
Tech Talk - Overview of Dash framework for building dashboards
 
Pref Presentation (2)
Pref Presentation (2)Pref Presentation (2)
Pref Presentation (2)
 
SCALABLE MONITORING USING PROMETHEUS WITH APACHE SPARK
SCALABLE MONITORING USING PROMETHEUS WITH APACHE SPARKSCALABLE MONITORING USING PROMETHEUS WITH APACHE SPARK
SCALABLE MONITORING USING PROMETHEUS WITH APACHE SPARK
 
Scalable Monitoring Using Prometheus with Apache Spark Clusters with Diane F...
 Scalable Monitoring Using Prometheus with Apache Spark Clusters with Diane F... Scalable Monitoring Using Prometheus with Apache Spark Clusters with Diane F...
Scalable Monitoring Using Prometheus with Apache Spark Clusters with Diane F...
 
Developing cloud serverless components in Python: DDD Perspective
Developing cloud serverless components in Python: DDD PerspectiveDeveloping cloud serverless components in Python: DDD Perspective
Developing cloud serverless components in Python: DDD Perspective
 
Unlock the power of spatial analysis using CARTO and python [CARTOframes]
Unlock the power of spatial analysis using CARTO and python [CARTOframes]Unlock the power of spatial analysis using CARTO and python [CARTOframes]
Unlock the power of spatial analysis using CARTO and python [CARTOframes]
 
Leveraging open source for large scale analytics
Leveraging open source for large scale analyticsLeveraging open source for large scale analytics
Leveraging open source for large scale analytics
 
OSMC 2023 | What’s new with Grafana Labs’s Open Source Observability stack by...
OSMC 2023 | What’s new with Grafana Labs’s Open Source Observability stack by...OSMC 2023 | What’s new with Grafana Labs’s Open Source Observability stack by...
OSMC 2023 | What’s new with Grafana Labs’s Open Source Observability stack by...
 
ChandanResume
ChandanResumeChandanResume
ChandanResume
 
Mak product overview_no_video
Mak product overview_no_videoMak product overview_no_video
Mak product overview_no_video
 
Conquering the Lambda architecture in LinkedIn metrics platform with Apache C...
Conquering the Lambda architecture in LinkedIn metrics platform with Apache C...Conquering the Lambda architecture in LinkedIn metrics platform with Apache C...
Conquering the Lambda architecture in LinkedIn metrics platform with Apache C...
 
SaurabhKasyap
SaurabhKasyapSaurabhKasyap
SaurabhKasyap
 
CloudNativeLondon 2018: "In Search of the Perfect Cloud Native Developer Expe...
CloudNativeLondon 2018: "In Search of the Perfect Cloud Native Developer Expe...CloudNativeLondon 2018: "In Search of the Perfect Cloud Native Developer Expe...
CloudNativeLondon 2018: "In Search of the Perfect Cloud Native Developer Expe...
 
Keynote: Sensu as a multi-cloud monitoring control plane
Keynote: Sensu as a multi-cloud monitoring control planeKeynote: Sensu as a multi-cloud monitoring control plane
Keynote: Sensu as a multi-cloud monitoring control plane
 
Data Engineer's Lunch #81: Reverse ETL Tools for Modern Data Platforms
Data Engineer's Lunch #81: Reverse ETL Tools for Modern Data PlatformsData Engineer's Lunch #81: Reverse ETL Tools for Modern Data Platforms
Data Engineer's Lunch #81: Reverse ETL Tools for Modern Data Platforms
 
Grokking TechTalk #29: Building Realtime Metrics Platform at LinkedIn
Grokking TechTalk #29: Building Realtime Metrics Platform at LinkedInGrokking TechTalk #29: Building Realtime Metrics Platform at LinkedIn
Grokking TechTalk #29: Building Realtime Metrics Platform at LinkedIn
 
Exploration and 3D GIS Software - MapInfo Professional Discover3D 2015
Exploration and 3D GIS Software - MapInfo Professional Discover3D 2015Exploration and 3D GIS Software - MapInfo Professional Discover3D 2015
Exploration and 3D GIS Software - MapInfo Professional Discover3D 2015
 
CartoDB Inside Out
CartoDB Inside OutCartoDB Inside Out
CartoDB Inside Out
 
GDG DevFest Romania - Architecting for the Google Cloud Platform
GDG DevFest Romania - Architecting for the Google Cloud PlatformGDG DevFest Romania - Architecting for the Google Cloud Platform
GDG DevFest Romania - Architecting for the Google Cloud Platform
 
Using Elasticsearch for Analytics
Using Elasticsearch for AnalyticsUsing Elasticsearch for Analytics
Using Elasticsearch for Analytics
 

Más de CARTO

Más de CARTO (18)

4 Ways Telecoms are Using GIS & Location Intelligence.pdf
4 Ways Telecoms are Using GIS & Location Intelligence.pdf4 Ways Telecoms are Using GIS & Location Intelligence.pdf
4 Ways Telecoms are Using GIS & Location Intelligence.pdf
 
Understanding Residential Energy Usage with CARTO & Doorda.pdf
Understanding Residential Energy Usage with CARTO & Doorda.pdfUnderstanding Residential Energy Usage with CARTO & Doorda.pdf
Understanding Residential Energy Usage with CARTO & Doorda.pdf
 
Advancing Spatial Analysis in BigQuery using CARTO Analytics Toolbox
Advancing Spatial Analysis in BigQuery using CARTO Analytics ToolboxAdvancing Spatial Analysis in BigQuery using CARTO Analytics Toolbox
Advancing Spatial Analysis in BigQuery using CARTO Analytics Toolbox
 
Can Kanye West Save Gap? Real-Time Consumer Social Media Segmentation On CARTO
Can Kanye West Save Gap? Real-Time Consumer Social Media Segmentation On CARTOCan Kanye West Save Gap? Real-Time Consumer Social Media Segmentation On CARTO
Can Kanye West Save Gap? Real-Time Consumer Social Media Segmentation On CARTO
 
Sentiment, Popularity & Potentiality: 3 Unique KPIs to add to your Site Selec...
Sentiment, Popularity & Potentiality: 3 Unique KPIs to add to your Site Selec...Sentiment, Popularity & Potentiality: 3 Unique KPIs to add to your Site Selec...
Sentiment, Popularity & Potentiality: 3 Unique KPIs to add to your Site Selec...
 
CARTO Cloud Native – An Introduction to the Spatial Extension for BigQuery
CARTO Cloud Native – An Introduction to the Spatial Extension for BigQueryCARTO Cloud Native – An Introduction to the Spatial Extension for BigQuery
CARTO Cloud Native – An Introduction to the Spatial Extension for BigQuery
 
What Spatial Analytics Tells Us About the Future of the UK High Street
What Spatial Analytics Tells Us About the Future of the UK High StreetWhat Spatial Analytics Tells Us About the Future of the UK High Street
What Spatial Analytics Tells Us About the Future of the UK High Street
 
6 Ways CPG Brands are Using Location Data to Prepare for the "Post-Pandemic"
6 Ways CPG Brands are Using Location Data to Prepare for the "Post-Pandemic"6 Ways CPG Brands are Using Location Data to Prepare for the "Post-Pandemic"
6 Ways CPG Brands are Using Location Data to Prepare for the "Post-Pandemic"
 
5 Ways to Strategize for Emerging Short-Term Rental Trends
5 Ways to Strategize for Emerging Short-Term Rental Trends5 Ways to Strategize for Emerging Short-Term Rental Trends
5 Ways to Strategize for Emerging Short-Term Rental Trends
 
How to Use Geospatial Data to Identify CPG Demnd Hotspots
How to Use Geospatial Data to Identify CPG Demnd HotspotsHow to Use Geospatial Data to Identify CPG Demnd Hotspots
How to Use Geospatial Data to Identify CPG Demnd Hotspots
 
Using Location Data to Adapt to the New normal
Using Location Data to Adapt to the New normalUsing Location Data to Adapt to the New normal
Using Location Data to Adapt to the New normal
 
Le rôle de l’intelligence géospatiale dans la reprise économique
Le rôle de l’intelligence géospatiale dans la reprise économiqueLe rôle de l’intelligence géospatiale dans la reprise économique
Le rôle de l’intelligence géospatiale dans la reprise économique
 
Analyzing the Rise of the Staycation during COVID-19
Analyzing the Rise of the Staycation during COVID-19Analyzing the Rise of the Staycation during COVID-19
Analyzing the Rise of the Staycation during COVID-19
 
Why High-Resolution Spatial Data on Population Matters
 Why High-Resolution Spatial Data on Population Matters Why High-Resolution Spatial Data on Population Matters
Why High-Resolution Spatial Data on Population Matters
 
Google Analytics location data visualised with CARTO & BigQuery
Google Analytics location data visualised with CARTO & BigQueryGoogle Analytics location data visualised with CARTO & BigQuery
Google Analytics location data visualised with CARTO & BigQuery
 
Using Geospatial to Innovate in Last-Mile Logistics
Using Geospatial to Innovate in Last-Mile LogisticsUsing Geospatial to Innovate in Last-Mile Logistics
Using Geospatial to Innovate in Last-Mile Logistics
 
The Role of Indoor Mapping in the “New Normal”
The Role of Indoor Mapping in the “New Normal”The Role of Indoor Mapping in the “New Normal”
The Role of Indoor Mapping in the “New Normal”
 
Helping insurers Uncover Location Data and the Predictive Analytics Factor
Helping insurers Uncover Location Data and the Predictive Analytics FactorHelping insurers Uncover Location Data and the Predictive Analytics Factor
Helping insurers Uncover Location Data and the Predictive Analytics Factor
 

Último

Exploratory Data Analysis - Dilip S.pptx
Exploratory Data Analysis - Dilip S.pptxExploratory Data Analysis - Dilip S.pptx
Exploratory Data Analysis - Dilip S.pptx
DilipVasan
 
一比一原版麦考瑞大学毕业证成绩单如何办理
一比一原版麦考瑞大学毕业证成绩单如何办理一比一原版麦考瑞大学毕业证成绩单如何办理
一比一原版麦考瑞大学毕业证成绩单如何办理
cyebo
 
一比一原版(Monash毕业证书)莫纳什大学毕业证成绩单如何办理
一比一原版(Monash毕业证书)莫纳什大学毕业证成绩单如何办理一比一原版(Monash毕业证书)莫纳什大学毕业证成绩单如何办理
一比一原版(Monash毕业证书)莫纳什大学毕业证成绩单如何办理
pyhepag
 
一比一原版西悉尼大学毕业证成绩单如何办理
一比一原版西悉尼大学毕业证成绩单如何办理一比一原版西悉尼大学毕业证成绩单如何办理
一比一原版西悉尼大学毕业证成绩单如何办理
pyhepag
 
Abortion pills in Dammam Saudi Arabia// +966572737505 // buy cytotec
Abortion pills in Dammam Saudi Arabia// +966572737505 // buy cytotecAbortion pills in Dammam Saudi Arabia// +966572737505 // buy cytotec
Abortion pills in Dammam Saudi Arabia// +966572737505 // buy cytotec
Abortion pills in Riyadh +966572737505 get cytotec
 
一比一原版加利福尼亚大学尔湾分校毕业证成绩单如何办理
一比一原版加利福尼亚大学尔湾分校毕业证成绩单如何办理一比一原版加利福尼亚大学尔湾分校毕业证成绩单如何办理
一比一原版加利福尼亚大学尔湾分校毕业证成绩单如何办理
pyhepag
 

Último (20)

Exploratory Data Analysis - Dilip S.pptx
Exploratory Data Analysis - Dilip S.pptxExploratory Data Analysis - Dilip S.pptx
Exploratory Data Analysis - Dilip S.pptx
 
Atlantic Grupa Case Study (Mintec Data AI)
Atlantic Grupa Case Study (Mintec Data AI)Atlantic Grupa Case Study (Mintec Data AI)
Atlantic Grupa Case Study (Mintec Data AI)
 
一比一原版麦考瑞大学毕业证成绩单如何办理
一比一原版麦考瑞大学毕业证成绩单如何办理一比一原版麦考瑞大学毕业证成绩单如何办理
一比一原版麦考瑞大学毕业证成绩单如何办理
 
一比一原版(Monash毕业证书)莫纳什大学毕业证成绩单如何办理
一比一原版(Monash毕业证书)莫纳什大学毕业证成绩单如何办理一比一原版(Monash毕业证书)莫纳什大学毕业证成绩单如何办理
一比一原版(Monash毕业证书)莫纳什大学毕业证成绩单如何办理
 
Supply chain analytics to combat the effects of Ukraine-Russia-conflict
Supply chain analytics to combat the effects of Ukraine-Russia-conflictSupply chain analytics to combat the effects of Ukraine-Russia-conflict
Supply chain analytics to combat the effects of Ukraine-Russia-conflict
 
一比一原版西悉尼大学毕业证成绩单如何办理
一比一原版西悉尼大学毕业证成绩单如何办理一比一原版西悉尼大学毕业证成绩单如何办理
一比一原版西悉尼大学毕业证成绩单如何办理
 
2024 Q1 Tableau User Group Leader Quarterly Call
2024 Q1 Tableau User Group Leader Quarterly Call2024 Q1 Tableau User Group Leader Quarterly Call
2024 Q1 Tableau User Group Leader Quarterly Call
 
How can I successfully sell my pi coins in Philippines?
How can I successfully sell my pi coins in Philippines?How can I successfully sell my pi coins in Philippines?
How can I successfully sell my pi coins in Philippines?
 
Abortion pills in Dammam Saudi Arabia// +966572737505 // buy cytotec
Abortion pills in Dammam Saudi Arabia// +966572737505 // buy cytotecAbortion pills in Dammam Saudi Arabia// +966572737505 // buy cytotec
Abortion pills in Dammam Saudi Arabia// +966572737505 // buy cytotec
 
AI Imagen for data-storytelling Infographics.pdf
AI Imagen for data-storytelling Infographics.pdfAI Imagen for data-storytelling Infographics.pdf
AI Imagen for data-storytelling Infographics.pdf
 
一比一原版加利福尼亚大学尔湾分校毕业证成绩单如何办理
一比一原版加利福尼亚大学尔湾分校毕业证成绩单如何办理一比一原版加利福尼亚大学尔湾分校毕业证成绩单如何办理
一比一原版加利福尼亚大学尔湾分校毕业证成绩单如何办理
 
MALL CUSTOMER SEGMENTATION USING K-MEANS CLUSTERING.pptx
MALL CUSTOMER SEGMENTATION USING K-MEANS CLUSTERING.pptxMALL CUSTOMER SEGMENTATION USING K-MEANS CLUSTERING.pptx
MALL CUSTOMER SEGMENTATION USING K-MEANS CLUSTERING.pptx
 
Easy and simple project file on mp online
Easy and simple project file on mp onlineEasy and simple project file on mp online
Easy and simple project file on mp online
 
Machine Learning for Accident Severity Prediction
Machine Learning for Accident Severity PredictionMachine Learning for Accident Severity Prediction
Machine Learning for Accident Severity Prediction
 
Artificial_General_Intelligence__storm_gen_article.pdf
Artificial_General_Intelligence__storm_gen_article.pdfArtificial_General_Intelligence__storm_gen_article.pdf
Artificial_General_Intelligence__storm_gen_article.pdf
 
basics of data science with application areas.pdf
basics of data science with application areas.pdfbasics of data science with application areas.pdf
basics of data science with application areas.pdf
 
Pre-ProductionImproveddsfjgndflghtgg.pptx
Pre-ProductionImproveddsfjgndflghtgg.pptxPre-ProductionImproveddsfjgndflghtgg.pptx
Pre-ProductionImproveddsfjgndflghtgg.pptx
 
How I opened a fake bank account and didn't go to prison
How I opened a fake bank account and didn't go to prisonHow I opened a fake bank account and didn't go to prison
How I opened a fake bank account and didn't go to prison
 
Slip-and-fall Injuries: Top Workers' Comp Claims
Slip-and-fall Injuries: Top Workers' Comp ClaimsSlip-and-fall Injuries: Top Workers' Comp Claims
Slip-and-fall Injuries: Top Workers' Comp Claims
 
2024 Q2 Orange County (CA) Tableau User Group Meeting
2024 Q2 Orange County (CA) Tableau User Group Meeting2024 Q2 Orange County (CA) Tableau User Group Meeting
2024 Q2 Orange County (CA) Tableau User Group Meeting
 

Developing Spatial Applications with CARTO for React v1.1

  • 1. Developing Spatial Applications with CARTO for React v1.1 Follow @CARTO on Twitter
  • 2. CARTO — Unlock the power of spatial analysis Introductions Borja Muñoz Product Manager at CARTO Antonio Hita Solutions Engineer at CARTO
  • 3. CARTO — Unlock the power of spatial analysis Agenda ● Introduction to CARTO for React ● New features in version 1.1 ● Demo time ● Q&A
  • 4. CARTO Customers Unlock the power of spatial analysis >2,000 Team members 150+ Contender - LI Wave 2020
  • 5. CARTO — Unlock the power of spatial analysis Most organizations are missing an opportunity... TREND 80% of all data collected has a location component 10% used to power business decisions
  • 6. CARTO — Unlock the power of spatial analysis We unlock the power of spatial analysis in the cloud New End Users ● Business Analysts ● Product Managers ● Data Scientists ● Decision Makers ● Web Developers ● Advanced Analytics New Data Streams New Use Cases ● Human Mobility ● Weather ● Credit Card Transactions ● IoT Hardware ● Connected Devices ● Census or Open Data ● CRM or Loyalty Data ● Site Selection ● POS Market Analysis ● Territory Design ● Supply Chain Optimization ● Geomarketing ● Data Monetization
  • 7. CARTO — Unlock the power of spatial analysis With a fully cloud native platform
  • 8. CARTO — Unlock the power of spatial analysis Fully cloud native Seamlessly interact with data on top of the leading cloud data warehouse platforms, eliminating ETL complexity and any limits on scalability. An end-to-end Location Intelligence solution Connect to data, access spatial data subscriptions, create advanced map visualizations and run spatial analysis, natively in the cloud environment. Spatial analytics wherever your data is hosted Advanced spatial functions, extending the geospatial capabilities available in cloud data platforms, all executed from within CARTO, using simple SQL commands. Rapid spatial app development For developers, CARTO integrates a complete toolkit of frameworks, libraries and templates for scalable spatial app development. A unique Location Intelligence platform
  • 9. CARTO — Unlock the power of spatial analysis ● Create intuitive, map-centric web applications quickly using our developer frameworks and templates. ● With CARTO for deck.gl create scalable applications to visualize spatial data using vector technology, fully integrated with Google Maps. ● Kickstart app development with CARTO for React, a library of user interface components and simplified CARTO connections. ● Direct access to technical documentation and templates, including the latest updates Developer Tools
  • 10. CARTO — Unlock the power of spatial analysis POLL 1 React …………………………………………………………….. Vue.js …………………………………………………………….. Angular …………………………………………………………….. Which frontend frameworks do you use? No framework / Vanilla JavaScript…………………………………..
  • 11. CARTO — Unlock the power of spatial analysis CARTO for React ● Toolbox for programmers for faster development of better map centric applications. ● Includes a library of UI components based on the CARTO design system ● It is free for anybody to use with CARTO. ● The recommended way to build apps with CARTO.
  • 12. CARTO — Unlock the power of spatial analysis Main components ● Create React App templates ○ Base ■ base-2 ■ base-3 ■ base-3-typescript ○ Sample Apps ■ sample-app-2 ■ sample-app-3 ● Library ○ API ○ Auth ○ Basemaps ○ Core ○ Redux ○ UI ○ Widgets ○ Workers
  • 13. CARTO — Unlock the power of spatial analysis Architecture ● Best practices for building scalable and maintainable spatial web apps ● Not reinvent the wheel, use popular libraries with a huge community behind
  • 14. CARTO — Unlock the power of spatial analysis State management ● The goal is to keep all the components (map, layers and widgets) in sync ● One of the most complex issues in spatial web apps development ● Using imperative programming things become unmanageable when the number of components grow ● Redux provides a central store where you can maintain your application state ● Components that depend on state react to changes: ○ Provides a clean design to update widgets on viewport changes, update layers when data is filtered using widgets and updating widgets when another widget is filtered
  • 15. CARTO — Unlock the power of spatial analysis POLL 2 deck.gl …………………………………………………………….. Google Maps Javascript API …………………………….. Mapbox GL JS …………………………………………………………….. What visualizations libraries do you use for web applications? ArcGIS API for JavaScript ………………………………………….. Other ……………………………………………………………..
  • 16. CARTO — Unlock the power of spatial analysis Visualization ● CARTO for React uses the CARTO module for deck.gl for visualization (CartoLayer) ● You can customize the style using any of the properties available in the GeoJsonLayer ● The CARTO module for deck.gl provides style helpers to easily apply color scales to features ● You can get additional tips in the Customizing the CartoLayer Style guide ● Layers and widgets are linked indirectly through the source ● The CartoLayer and the widgets are prepared to work both with GeoJSON and vector tiles data sources
  • 17. CARTO — Unlock the power of spatial analysis ● Base: minimum template with a blank map and no widgets ● Sample app: template with layers and widgets to demonstrate how common spatial web apps functionalities can be implemented using CARTO for React Templates ~ npx create-react-app my-app --template @carto/base-3 ~ npx create-react-app my-app --template @carto/sample-app-3
  • 18. CARTO — Unlock the power of spatial analysis Templates - Layout ● Responsive design ● Header with the title, links to the different pages and a user menu ● Sidebar to display view content ● Map area for the map and related floating elements
  • 19. CARTO — Unlock the power of spatial analysis Templates - Authentication & Authoriz. ● Works with CARTO platform OAuth ● First create a new app in the CARTO workspace to get a client ID (public identifier) ● Then configure the clientID in the InitialStateSlice ● You can also create applications that are not integrated with the CARTO platform authentication (public or with their own auth system). You have two options: ○ You can use permanent tokens if you don’t do dynamic queries ○ You can develop your own backend that creates tokens with a machine-to-machine client ID / client secret pair. More information: API docs
  • 20. CARTO — Unlock the power of spatial analysis Library ● Multi-package repo built with Lerna ● Can be used standalone ● Small packages with specific functionality ● React-Redux (with Redux Toolkit) for state management ● Material-UI for user interface components ● ECharts for charts in widgets ● Turf.js for spatial intersections
  • 21. CARTO — Unlock the power of spatial analysis Library - Packages Property Description @carto/react-api Interaction with CARTO platform APIs (i.e. SQL API) and general functionality. @carto/react-auth Authentication & Authorization with the CARTO platform using OAuth @carto/react-basemaps Access to CARTO and Google Maps basemaps @carto/react-core Core functionality used from other packages @carto/react-redux State management using Redux Toolkit @carto/react-ui CARTO theme for Material-UI and user interface components for widgets @carto/react-widgets Widgets models and business logic @carto/react-workers Web worker methods for viewport features
  • 22. CARTO — Unlock the power of spatial analysis Library - Widgets
  • 23. CARTO — Unlock the power of spatial analysis ● Based on Hygen ● The fastest way to create new components ● Views ● Sources ● Layers Code Generator ~ yarn hygen view new $ hygen view new ✔ Name: · Places ✔ Route path: · places ✔ Do you want a link in the menu? (y/N) · true ~ yarn hygen source new $ hygen source new ✔ Name: · Places ✔ Choose type · SQL dataset ✔ Type a query · SELECT * FROM populated_places ~ yarn hygen layer new $ hygen layer new ✔ Name: · Places ✔ Choose a source · placesSource ✔ Do you want to attach to some view (y/N) · true ✔ Choose a view · Places (views/Places.js)
  • 24. CARTO — Unlock the power of spatial analysis Debugging VS Code + Chrome + 2 extensions
  • 25. CARTO — Unlock the power of spatial analysis New templates ● Base JavaScript template for CARTO 3 ● Base TypeScript template for CARTO 3 ● Sample app template for CARTO 3 New features in v1.1 (I) ~ npx create-react-app my-app --template @carto/base-3 ~ npx create-react-app my-app --template @carto/base-3-typescript ~ npx create-react-app my-app --template @carto/sample-app-3
  • 26. CARTO — Unlock the power of spatial analysis New features in v1.1 (II) New widgets
  • 27. CARTO — Unlock the power of spatial analysis New features in v1.1 (III) Integration with Google Maps vector basemaps
  • 28. CARTO — Unlock the power of spatial analysis It’s time for a real world example!
  • 29. Thanks for listening! Any questions? Request a demo at CARTO.COM Antonio Hita Solutions Engineer at CARTO // ahita@carto.com Borja Muñoz Product Manager at CARTO // bmunoz@carto.com