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

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
1answer
25 views

cartojs 4 and print button [on hold]

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 ...
1
vote
1answer
29 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
7 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 ...
0
votes
0answers
9 views

How can I query data from a CARTO map?

I have a question regarding querying data from CARTO. It always worked for me for datasets via an API call. But in this case, I need to query the data directly from a CARTO map (the institution also ...
2
votes
1answer
45 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....
0
votes
0answers
13 views

CARTO Mobile SDK.UWP (C#) — How can I Get Map Center?

I m using the Carto Map Mobile SDK (UWP) to implement the customized carto map on a UWP app. Here is my code: //Eventlistener: Map is being moved or zoomed. public override async void ...
1
vote
1answer
46 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
27 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
19 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
29 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
16 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
1answer
17 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
14 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: ...
-1
votes
1answer
92 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
30 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
12 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
45 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
39 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
22 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
27 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
30 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
32 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
55 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
46 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
32 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
59 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
63 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
71 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
63 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
113 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
38 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
55 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
67 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
26 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
51 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
35 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
40 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
25 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
47 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
37 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
74 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(` ...
1
vote
1answer
95 views

Adding SQL layer with dropdown selector in Carto?

I am trying to make a map that has a layer showing District boundaries of South Africa, with a selector allowing the user to view which climate change indicators are a priority to each District. Using ...
0
votes
0answers
28 views

Carto.com: Date format in popup window

I want to display a date field without the timestamp on my Carto map. I wrote some javascript to cull the value of popup window elements with the class of "opendate" and tried putting it at the bottom ...
1
vote
1answer
144 views

carto giving error: TypeError: Cannot read property 'hasOwnProperty' of undefined

I have a new ubuntu 17.10 server that Im building an Open Streetmap Server on. I installed carto and am now getting this error: osm@atlantageek-System-Product-Name:~/openstreetmap-carto-2.41.0$ ...
0
votes
1answer
41 views

How to avoid multiple “Other” Columns with similar Styling in Carto

I have a shapefile for all US ZCTAs. Each ZCTA has been clustered by proximity and given a value in a new column called Zip_Rollup. I am trying to add a style by value using the Zip_Rollup values. ...
0
votes
1answer
42 views

How can I get the timeslider using Cartojs and Torquejs

I want to build the timesilder on my webpage.The timeslider on Carto Builder is nice for me.Now I can get the first img' timeslider, But I want the second one and don't know how to achieve it.What ...
-1
votes
1answer
33 views

How can I get the radiation effect Carto map

I want to achieve the radition effect with Carto like this url https://carto.com/blog/telefonica/ Can I develop it with Torque.js?
0
votes
1answer
70 views

Invalid or nonexistent map configuration token

I get the return message NON-VALID PICTURE URL in the POPUP in the CARTO map. when editing in CARTO I get the "Invalid or nonexistent map configuration token". Please forgive my ignorance as I am a ...
0
votes
1answer
35 views

Creating a data layer on CARTO from an ical feed?

Has anyone ever made a map on CARTO from an ical feed? Given that it uses a standard format which includes a location information, I envision that I can scrape the data into a CSV then geocode the ...
1
vote
1answer
144 views

Create a BalloonPopup with two buttons

I'm trying to create a BalloonPopup that has 2 different buttons or interactive elements, but I don't seem to manage a way to do this. The guide I'm following is here https://carto.com/developers/...