1

I would like to simply rename a layer inside CartoDB. I see buttons for the SQL Query, CSS code, and some HTML... but I don't know where to put my code.
setLayerName('Test')

1

Inside the CartoDB Editor you don't need Javascript code at all.

Double click on top of the current name of the layer and it will automatically convert in a text box that you can edit. Then, press Intro to save the new name.

edit name layer cartodb

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.