Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Make your voice heard. Take the 2019 Developer Survey now

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.

0
votes
0answers
17 views

Cartodbfying and using ghost tables in CartoDB Enterprise?

I'm using Carto Enterprise, and I need help on making custom DB tables show up in Carto builder page when you log in. So far I've turned ON the ghost_tables feature like this. /opt/carto/builder-...
0
votes
1answer
21 views

CARTO polygon styles

How do I assign polygon colors in CARTO based on whether it is a positive or negative number? For example, I want the range of negatives to be one color, and the range of positives another, with a ...
0
votes
0answers
26 views

Using both Google Maps and Carto in Android App?

Can I use Google Maps as a background to an Android App and carto for the source of my data? I know is strange that I ask. But I think to use both solutions is better. Google Maps is a very good and ...
0
votes
0answers
18 views

Xamarin Online Routing with Carto Mobile SDK does not work

I’m currently trying to calculate a route with the RoutingService in Xamarin (Mobile SDK). I initialized the CartoOnlineRoutingService like this: _routingService = new CartoOnlineRoutingService("...
0
votes
1answer
36 views

It's possible to lock 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 ...
1
vote
1answer
53 views

How to run basic setup CARTO VL?

I'm new to HTML and to CARTO VL, hoping to jump right in to make a map with animated lines and points, which combined are unavailable in CARTO Builder. I've tried to run the basic CARTO VL set-up ...
0
votes
1answer
31 views

Editing Legend Text in Carto (“Other”)

I'm working on a map that has nine unique categories and Carto adds an "Other" category to the legend. There is no other data outside of my nine unique categories and I can't get rid of Other label on ...
0
votes
0answers
12 views

Changing url of cartodb call in Torque.js?

I am trying to change base url of L.TorqueLayer method call. I want to add my db which is hosted on AWS instead of the default one with the {user}.cartodb.com/api... Also I cannot find options which ...
2
votes
3answers
39 views

How do you create buffers around points based on individual point values in CARTO?

I am very new to CARTO and have very limited coding skills. I have a data set of points representing the centroid of zip codes. Each point has an associated average commute time. It is relatively ...
1
vote
2answers
42 views

CARTO not styling 36 total representatives

I'm extremely new to CARTO and I'm still learning the ropes. I currently have this territory map where the colors represent a representative in a county. However, it isn't shading the 36 total ...
0
votes
1answer
72 views

Leaflet map with jQuery autocomplete: fitBounds (click input) on selection?

I'm trying to fire a click event on my search button and/or the input field as soon as a user selects something from the jQuery autocomplete <li>: https://jsfiddle.net/grh2dLyw/1/ I'm not sure ...
0
votes
1answer
42 views

cartojs 4 and print button [closed]

Is it possible to use the print function of leaflet with cartojs v.4? i'm not able to use all this plugins https://leafletjs.com/plugins.html#printexport The print button works but can i use also ...
2
votes
1answer
47 views

Group multiple lines of data by country

I'm a novice with Carto and GIS generally. I have a data table with a few thousand lines of data. Each row of data has a country and a numerical value. I'm trying to total the value by country ...
0
votes
1answer
16 views

How to use CARTO map visualization in Odyssey.js sandbox

I have a story map in Odyssey's sandbox GUI. I want to use a visualization I have in CARTO as a base map for this map. How can I find my viz key? All the documentation seems to refer to an option that ...
2
votes
1answer
52 views

St_Segmentize on CARTO

I need help with the phrasing of this query. I am applying this in CARTO to a file with lines. The following query does not generate a curve as expected. I am new to SQL/PostGIS. select mycartoid....
1
vote
1answer
66 views

ST_Area yields total area encompased by a polygon. How do I get just the area covered by a polygon?

Here's my dataset: https://aaron-bauman.carto.com/dataset/curbs_1 I want to calculate the area covered by the purple only. ST_Area seems to be yielding all the area within the purple as well because ...
0
votes
1answer
39 views

Setting coordinate system in CARTO Builder map?

I uploaded a polygon layer in EPSG 25830, called 'parcels'. I know that the geometries are reprojected and the dataset has two geometry columns: 'the_geom' in EPSG 4326 'the_geom_webmercator' in ...
0
votes
1answer
22 views

CARTO Mobile SDK.UWP (C#) Get always get current map's south-west MapPos and north-east MapPos

How can I always get the current map's south-west MapPos and north-east MapPos when I zoom in/zoom out the map or drag the map? I want to create a dynamic bounding box for Carto Map.
0
votes
1answer
40 views

SQL and CARTO - Dot Density Visualization

I need help with running a SQL on CARTO. I want to generate a dot density similar to the link here. The second portion of the SQL code deletes the cartodb column and nothing changes on the map. ...
0
votes
0answers
39 views

How can I use the MapEventlistener and VectorElementEventlistener via Carto Map Mobile SDK. UWP?

I m using the Carto Map Mobile SDK (UWP) to implement the customized carto map on a UWP app. However, I do not know how can I use the MapEventListener and VectorElementEventListener on my app (using ...
0
votes
2answers
35 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 ...
0
votes
1answer
36 views

How can I add a customised Carto Map Marker via Carto Map Moblie SDK.UWP?

I'm implementing a Universal Windows Platform (UWP) app, and I m using the Carto Map Mobile SDK (UWP). However, I don't know how to add a .png image as a Map Marker programmatically. Here is my code: ...
0
votes
1answer
210 views

Blocked loading mixed active content error when loading named map as layer in CARTO?

I am unable to get my layers to draw on my Carto map using https. My map is created I can see the basemap, but the layers do not draw. The layers load locally, but they won't when I host the site on ...
1
vote
2answers
36 views

How to delete dataset in Carto?

I uploaded the incorrect file. How do I delete this dataset from my map or account?
0
votes
1answer
19 views

Carto zoom to areas in “link second layer”

I have a Carto map with two layers which I have linked using Carto's "Link Second Layer" analysis. I added a widget which lets me select the name of polygons and through this link, the map returns ...
0
votes
0answers
73 views

Creating Polygons from Points in Carto

Using Carto, I am trying to create shapefiles of regions using points(Link to Dataset in Carto ) with a shared column value to group by. I've included 3 photographs. 1st photograph of the points ...
0
votes
1answer
45 views

Error while rendering Map from CARTO without any code change [closed]

I have suddenly started getting error while rendering US map. This has come without any code changes. We are using CARTO.js. Uncaught TypeError: Cannot read property 'lat' of undefined at d....
0
votes
1answer
34 views

Carto.JS - Pop up closes when mouse hovers out of feature

As per the CARTO docs I am using the following code to trigger a info pop up when the user's mouse hovers over a feature: const popup = L.popup({ closeButton: false }); ecosystem.on(carto.layer....
0
votes
0answers
69 views

How to convert .yml to .mml file?

I want to use this style in my tile server. But I am using Carto for creating mapnik.xml. It says I need to supply a mml file to convert it to mapnik xml. Is there any way that I can convert a yml ...
0
votes
1answer
49 views

Carto Builder map not filtering dynamically

I have a Carto Builder map with several layers and widgets in it. I assumed that when filtering the widgets or the time series that the points on the map would also update to show only the filtered ...
0
votes
1answer
48 views

Editing the description in the dashboard view of a Carto map once the map has been published?

It appears that once you write a description in the dashboard view of a Carto map (where it says "Add description...") the text is un-editable. Is there a way to edit the text? The map on the left ...
1
vote
1answer
117 views

How to fill polygons with patterns in Carto using polygon-pattern-file?

I'm trying to create a layer in Carto with three categories of transparent hatching of different colors. I understand how to use the polygon-pattern-file Carto CSS style but am wondering where I can ...
0
votes
2answers
95 views

Carto UTF Grid in OpenLayers 5

Openlayers doesn't seem to support the URL that Carto prefers for getting UTF Grids. import TileLayer from 'ol/layer/Tile'; import UTFGrid from 'ol/source/UTFGrid'; const newUTFLayer = new TileLayer(...
0
votes
1answer
41 views

Seeking tutorial on Time Slider in Carto?

I want to add a time slider to a map. It looks as if I have to do that via CartoCSS but I really don't know where to start. Unfortunately, I don't understand what all the other posts regarding this ...
0
votes
0answers
82 views

Performance issues in Carto-VL?

UPDATE: Issue will be solved in next version of Carto. See github I'm using Carto VL to build a simple webapp for some data inspection within our GIS team. The web-app can be found here (Link might ...
0
votes
1answer
99 views

React / CARTO Enabling interactions

I have a React JS component that adds a Layer to the Basemap: componentDidMount() { const { client } = this.props; // Craete source, styles and layer with the given props const ...
0
votes
2answers
115 views

CARTO.js / ReactJS: Showing and hiding layers on toggle

I have a the following layer: class DataLayer extends Component { static contextTypes = { map: PropTypes.object, // Leaflet map }; componentDidMount() { const { client } = this.props; ...
0
votes
2answers
93 views

Formatting numbers coming from dataset to include commas for thousands in Carto map legend?

I'm using carto.js v4 to build my map. The legend I've put together displays some of the data as numbers next to value scaled markers As example I have: document.getElementById('gasDistmax')....
1
vote
1answer
275 views

ReactJS TypeError “not a constructor” on running a component with Carto

I am trying to integrate a CARTO map according to this example: Importing Carto: // Import react-leaflet for the map / basemap components import { Map, TileLayer as Basemap } from 'react-leaflet'; /...
0
votes
0answers
49 views

Points and animation not showing up on CartoVL JavaScript page

I'm trying to show my points and animation for CartoVL. I'm using a local Ubuntu installation as explained in https://cartodb.readthedocs.io/en/latest/install.html I am including the basic Carto / ...
0
votes
1answer
91 views

Dissolve/merge polygons using ST_Union in CARTO

I am attempting to dissolve the boundaries between several polygons using a common attribute within a column in CARTO and the ST_Union function. In my scenario, I have created a table for all US Zip ...
0
votes
2answers
105 views

Adding a legend to CARTO.js v4 map application

I have made a map that shows fire risk for the different Districts within South Africa, and each fire risk is styled by value to match a certain color. I am trying to add a legend to show what each ...
0
votes
1answer
40 views

Appending dataset in Carto?

Is there a way to add rows to an existing dataset while importing in a table? I've have tried inserting directly from an existing dataset but get an issue withe cartodb_id already existing.
1
vote
1answer
62 views

How to use ST_SymDifference for polygons from the same table having the same name value in CARTO?

I am very new to PostGIS2.4 and Postgresql 10 and having hard times to make holes inside a polygon using another polygon from a single table liveuamap by using ST_SymDifference. The polygon in the ...
0
votes
1answer
50 views

CARTO.js (V4) - How to style different values of a polygon

Using Carto.js V4, I have added a layer that shows fire risk levels (low, medium, high and extreme) for South Africa. This is the code I have used to call the layer from my Carto library: const ...
0
votes
1answer
49 views

Where to find datasets for creating CARTO VL maps?

Is there any way to download example datasets like NYC taxi and origin-destination data? Like those that show flight paths from and to some cities. I think it'd help me greatly if I could somehow get ...
0
votes
1answer
28 views

Syncing to a Box file via CARTO

So I'm pretty sure I'm missing something very simple, but -- I'm trying to create a new dataset inside CARTO, by using the "Connect Dataset" button and choosing "Box" (I want to connect to a CSV file ...
0
votes
1answer
58 views

Using CARTO VL on local Ubuntu installation

I'm trying to use CARTO VL on local Ubuntu 16.04 installation. To connect to local CARTO installation, I used the following config in my index.html: carto.setDefaultConfig({ serverURL: 'http://me....
0
votes
1answer
41 views

CARTO popup links redirect back to embed map?

When I click a link in the pop-up window the link opens a new tab to the same CARTO map instead of redirecting to the url specified. Here is my code: <div class="CDB-infowindow CDB-infowindow--...
0
votes
1answer
126 views

Add labels to layer in CARTO.js (v4)

Does anyone know how to add labels (using a feature column such as "state") to a CARTO.js layer? This is how I have added the layer to my map: const boundariesDataset = new carto.source.Dataset(` ...