Questions tagged [carto]

CARTO empowers any organization and individual to discover and predict key insights through location data. With CARTO’s intuitive location intelligence platform anyone can build self-service location based apps that help optimize operational performance, strategic investments, and everyday decisions.

Filter by
Sorted by
Tagged with
2 votes
1 answer
703 views

Leaflet.js and CartoDB.js giving event conflict

I have a layer from a CartoDB viz that I’m listening to the featureclick event. When a feature is clicked I highlight it by applying cartoCss. However, I want to unhighlight it when I click on an area ...
2 votes
2 answers
7k views

Add minutes contained in a column to a date

In CartoDB I want to add minutes contained in a column of data type number to a date. e.g. SELECT my_initial_date + 'xx minute'::INTERVAL as my_date FROM table What is working is: SELECT ...
1 vote
3 answers
222 views

Getting data manually from CARTO.js four dataview?

I have a series of CARTO.js four dataviews, but I want to manually get the data instead of listening to the 'dataChanged' event (when multiple datasets are created, this end in multiple errors). I ...
0 votes
1 answer
713 views

How do you set the extent of a CartoDB 'embed' map?

Using the basic CartoDB 'embed' option, how is the extent stored / saved / set for a map? For example: A CartoDB map (formerly 'visualization') has three potential pages on my blog / website (...
0 votes
1 answer
138 views

Using CartoDB Infowindow on fullscreen of iPad?

We're just about ready to go with our first ever CartoDB visualisation, namely a map of the museums in Britain. Unfortunately I'm having a rather large issue with infowindow positioning in either ...
1 vote
2 answers
771 views

Including data from multiple rows in CartoDB infowindow?

I have a visualization in CartoDB of a set of data points in table pointlayer. I am using cartodb.js and have a nice map for browser consumption. When a user clicks on a point, I'd like to run a sql ...
1 vote
1 answer
312 views

Getting info from multiple rows in single popup of CartoDB?

If you have a table like this: Name | Item | State ---------|--------|----------- Alice | Apple | Alabama Ben | Banana | Alabama Caitlin | Cherry | California Assuming you have ...
1 vote
1 answer
60 views

Interactive progress bar in CartoVL

I am creating an animated time series map using Carto VL and have included a progress bar that updates as the animation progresses. The bar updates, but is not interactive — for instance, a viewer ...
1 vote
0 answers
47 views

How to sync Airship legend component data with CARTO VL legend data

I am trying to sync Airship category legend data as a VueJS component but it looks like the data property is not digesting the values properly: <legend orientation="vertical" data="[object Object],...
1 vote
1 answer
67 views

WebGL error when switching visualization

I am getting similar WebGL error messages when switching CARTO VL visualizations: [.WebGL-0x59c22054800]RENDER WARNING: there is no texture bound to the unit 0 [.WebGL-0x59c222e5500]RENDER WARNING: ...
1 vote
1 answer
68 views

Animation does not work GeoJSON date fields in CARTO VL

In CARTO VL linear function expects a date or numeric field as its first argument. But when the data source is a GeoJSON, date fields are stored as categorical/strings and it returns an error like ...
1 vote
0 answers
210 views

Animation with time + category interactive filter not working in CARTO VL

I am new to this CARTO VL tool and I am currently facing an issue that I can't fix by reading your Git repos or online help. I have prepared two separate visualizations (one of them has a filter by ...
0 votes
0 answers
44 views

Creating subLayers using CARTO JS v4.1.8

I created a simple map with multiple layers using the below code. this.cartoSource = new carto.source.SQL(sql); this.layerStyle = new carto.style.CartoCSS(layerStyle); this.layer = new carto.layer....
7 votes
1 answer
4k views

How to add a new permanent column that contains result from ST_AREA select queries

I have a bunch of polygons in my CartoDB map, and I want to create a new column called AREA in the table MY_TABLE that contains values from my area calculation query: select ST_Area(the_geom::...
0 votes
1 answer
92 views

Does CARTO Airship provide a feature for widget attribute editing?

CARTO Builder allows users to edit feature attributes directly from the map building and editing interface. Does Airship offer the same function?
2 votes
1 answer
141 views

What is difference between carto.js and cartoDB?

I am exploring how to use carto.js map in a web application. I had seen couple of samples where carto.JS is used and some of them used cartoDB by including a supporting js file in the document. What ...
2 votes
1 answer
233 views

Using CARTO in a different language (multilanguage)?

Is it possible to configure CARTO, CARTO Builder, etc to be available in different languages e.g. Spanish, French, Portuguese?
1 vote
1 answer
99 views

Using CartodB in Qgis2web?

Is it possible to add Cartodb map in the Qgis2web plugin in Qgis? I tried but I couldn't choose CartodB maps like a basemap
1 vote
1 answer
336 views

Mimic in-line GeoJSON using fetch()

For simplicty, referencing this example: https://carto.com/developers/carto-vl/examples/#example-load-external-geojson-layer I would like to have this bit of code behave the same as through it were ...
0 votes
1 answer
37 views

What is the DBSCH command being passed to CartoDB's invalidation service?

CartoDB's PostgreSQL extension (cartodb-postgresql) has a function defined here: https://github.com/CartoDB/cartodb-postgresql/blob/2e665a56b4a7dbc3bd8e3d91ac18b52bb932663c/scripts-available/...
0 votes
2 answers
243 views

Adding labels to a Carto VL visualization?

It was possible to add labels to polygon visualizations in Carto.js 3.x via the CartoCSS; is there a way to add them in Carto VL visualizations? From what I can tell, Carto VL doesn't have the ...
1 vote
1 answer
120 views

Adjusting Style based on Column in CARTO?

An older version of CARTO allowed for adjustment of the styles based on a Column. For example, I could show elevation points over a certain elevation as green and points under a certain elevation as ...
1 vote
1 answer
2k views

Adding Torque layer using createLayer instead of createVis in CartoDB.js?

I have two tables in CartoDB, one is a fixed layer with locations of restaurants in a city. The other layer has data about the locations where police had to go because of fights for example (say 112 ...
1 vote
1 answer
52 views

Fixing Histogram selectionChanged from Carto Airship 1.04 to 2.00?

I have spent quite a bit of time playing around with this generous example provided by Jorge Sanz of Carto: https://gist.github.com/jsanz/8025628d669f1d9d0647f658f5511774 One thing I've gotten stuck ...
0 votes
2 answers
207 views

How to visualize choropleth with temporal component in browser

I have a vector dataset with monthly water risk data per river basin. The data is available for each month (January - December) and I would like to visualize this in a browser. The geometries are ...
2 votes
1 answer
243 views

CartoDB displaying layers and infowindow? [closed]

I just started testing and using CartoDB, and I am dealing with this problem on a map that has been published already: http://deix.is/ueberwachungsstatistik/ I have made minor corrections to the ...
1 vote
1 answer
1k views

Hiding sublayer with toggle button using LayerActions?

I have a toggle map (like this example) with sublayers. I want all the sublayers to be visible when you open the map, but I would like to hide some sublayers when the toggle buttons are clicked. I've ...
1 vote
1 answer
165 views

Any ZXY satellite basemaps covering New Zealand at zoom 19?

I need a good satellite base map to use with CartoDB. It has to cover all of New Zealand at zoom 19, [edit:] and be as recent as possible so we can show recently-built properties. It doesn't have to ...
0 votes
1 answer
55 views

Is it possible to block a data set programmatically through the API in Carto?

We are automating the creation of data sets with Carto. Now we would like to be able to lock to avoid unwanted changes in the data. We know that this can be done through the dashboard, but is it ...
2 votes
1 answer
4k views

Using PostGis BBox and ST_intersects Queries? [closed]

CartoDb Recommend here that the following query is faster than an St_intersects Query SELECT * FROM {table_name} WHERE the_geom && ST_SetSRID(ST_MakeBox2D(ST_Point(-73.9980, 40.726), ST_Point(...
-1 votes
1 answer
30 views

Random IO Error when importing CSV/XLS files into locally installed Carto

The current situation: Carto is installed on a on a cloud VM. Everything is working fine except that the programmatical import using the Import API gives inconsistent results. (I am using the NodeJS ...
0 votes
1 answer
58 views

How to get sum of a subset as opposed to the last value? CARTO

When choosing a date subset the displayed value of my application is the lastest value as opposed to the sum on that subset. In the example, 943.974 is the dosage for June 12th. The sum of dosage ...
2 votes
2 answers
164 views

Using CartoDB for citizen comment collection? [closed]

I'm wondering what would considerations I should make for using CartoDB as a tool for collecting geo-located citizen comments. Currently we're using a javascript / bootstrap application that uses a ...
0 votes
1 answer
70 views

CARTO VL time steps not working

I am new to CARTO VL and i want to make a simple dashboard with an animation panel as shown in one CARTO VL guide. The problem that i get is that when i try to animate it by the atribute of time of ...
0 votes
0 answers
64 views

Carto Maps: Display different points/objects at the same location

I know this question has been asked before, but I could not succeed with the help of the answers that are already out there. Can someone provide me with a detailed description (for dummies that cannot ...
1 vote
1 answer
1k views

Using Custom OSM tiles with Mapbox and/or CartoDB? [closed]

For a newspaper, we would like to use CartoDB's editor to produce quick overview maps with small amounts of geometry and information such as tooltips etc. For this job, the CartoDB editor seems to be ...
1 vote
1 answer
82 views

Auto Style in Carto Airship

There's any native way that I can add an autostyle (to style both layer and category widgets) on Carto Airship/Carto-VL? If the answer is no there's any function that I can use in the code below to ...
2 votes
1 answer
89 views

How to know when a widget from CARTO Airship is loaded

I'm getting some information from a server using fetch and using jQuery append to dinamically add the widgets to my page, but I need to know when the widget is done loading, there's any trigger that ...
0 votes
1 answer
132 views

Using carto-vl to connect to local installation

I'm trying to use carto-VL on a local instalation via docker. Everything works fine with carto.js v4 and airship, but when i try to use carto-vl it always gives errors and I can't access my datasets, ...
3 votes
1 answer
119 views

Replacing legend item names in Carto VL

I am trying to replace legend item names in a Carto VL map. Using an example from the documentation which describes how to rename the "CARTO_VL_OTHERS" category, I was able to rename one of my legend ...
2 votes
1 answer
879 views

Connecting CartoDB to existing MySQL database?

I'm trying to create a simple heat map based on longitudinal and latitudinal map coordinates that can be transferred from a database on MySQL that I've created. I read that CartoDB can be connected to ...
1 vote
1 answer
92 views

CARTO Airship category widget returning NaN values

I am using Airship and carto-vl while working through this tutorial and the values in the widget are coming back as NaN. Here is my code: <!DOCTYPE html> <html> <head> <!-- ...
0 votes
1 answer
72 views

Limiting number of selected items in CARTO category widget?

I created a map with several widgets with CARTO but I'd like to limit the number of selected items in a category widget to one. By default you can select all of the items and in my use case that is ...
1 vote
1 answer
301 views

Creating custom input text in CartoDB?

What is the best way to modify the searchbox listener searchbox in the CartoDB map? I would like to disable the default event listener for the CartoDB searchbox and first to execute my own listener ...
0 votes
3 answers
383 views

Carto.js and Carto-vl.js not working together

I have worked on a couple of examples in carto's tutorials, and I am trying to put them together now. One example was from the carto.js tutorial and the other from a carto-vl.js tutorial. There is ...
1 vote
0 answers
77 views

Using carto mobile iOS sdk download offline map having satellite map style instead of normal map style

Is there any way to use satellite map style for maps downloaded for offline usage using Carto Mobile SDK?
0 votes
1 answer
23 views

Transferring NUTITEQ account to CARTO [closed]

I am using a NUTITEQ API key and now I want to use CARTO mobile in my App. It says the app bundle is already used, but this is via my NUTITEQ account which I think is probably now inactive. Can I ...
1 vote
0 answers
77 views

Importing CSV to Carto from R?

I would like to import a csv file to my Carto account using R. I know the csv has been generated, and I'm able to save it in other locations. Running the code to upload this file to Carto appears to ...
0 votes
1 answer
89 views

Can I use external map data with cartojs library? [closed]

I am receiving data from another source apart from cartodb and I would like to use the data for carto maps.
0 votes
1 answer
569 views

Zoom to selected feature extent using Carto and Leaflet

I am trying to use the getBounds and setBounds functions to zoom to the extent of a selected polyline feature in Carto. The feature has been selected using an SQL query. I want to zoom to the extent ...

1 2 3
4
5
29