Define API for Carto layers order
See original GitHub issue// BOTTOM v v TOP
client.addLayers([A, B, C]);
// 0 < 1 < 2
A.setOrder(0); // A, B, C
A.setOrder(1); // B, A, C
A.setOrder(2); // B, C, A
A.setOrder(-1); // throw error: out of range
A.setOrder(3); // throw error: out of range
A.bringToFront(); // same as A.setOrder(<layers length>);
A.brintToBack(); // same as A.setOrder(0);
Issue Analytics
- State:
- Created 6 years ago
- Comments:11 (11 by maintainers)
Top Results From Across the Web
CARTO API
CARTO Maps API v3 allows creation of map layers using data from different data warehouses. It uses an existing connection in your CARTO...
Read more >Layers - CARTO for React | CARTO Documentation
Layers This guide explains how to work with layers in a CARTO for React application. Layer types CARTO for React uses deck.gl for...
Read more >Map settings - CARTO User Manual | CARTO Documentation
You can manage the CARTO basemaps layers to hide and show water, buildings, roads, and more. Options include: Labels: shows labels for cities,...
Read more >CartoLayer - CARTO for deck.gl | CARTO Documentation
The CartoLayer is a deck.gl CompositeLayer used to visualize geospatial data from the CARTO platform. It is compatible with the different versions of...
Read more >CARTO + Google Maps
Getting started CARTO provides a powerful way to visualize data from your datawarehouse with Google Maps Javascript API. By utilizing the CartoLayer class ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
LGTM!
Closed by: https://github.com/CartoDB/cartodb.js/pull/2031