Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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);

cc @csobier @alonsogarciapablo @IagoLast

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

IagoLastcommented, Dec 19, 2017


Jesus89commented, Feb 1, 2018
Read more comments on GitHub >

github_iconTop Results From Across the Web

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 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 | CARTO Documentation
The CartoLayer is a 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found