0

Is there an option to enable the fullscreen toggle through the API?

Seems the docs haven't been updated to reflect this update: http://developers.cartodb.com/documentation/cartodb-js.html#sec-3-1

1 Answer 1

0

We forgot to add the doc, the right way to add it is:

createVis('el', 'viz.json', {
  fullscreen: true // this adds the button
})

This was just added to the documentation https://github.com/CartoDB/cartodb.js/commit/3bb50cf742695ddfddab89caa953c5bd48bf1fd0

4
  • right - note that tiles_loader must be set to true (this is the default setting)
    – danpaz
    Commented Feb 28, 2014 at 17:28
  • 1
    the icon doesn't quite fall into the div, suggest updating cartodb.css line 837 as .cartodb-fullscreen a { width: 20px; height: 20px; background: #ffffff url('libs.cartocdn.com/cartodb.js/v3/themes/img/fullscreen.png') no-repeat 2px -2px; }
    – danpaz
    Commented Feb 28, 2014 at 17:35
  • @danpaz: I can't reproduce the issue. Which browser are you using? Could you show us a screenshot?
    – Javier
    Commented Mar 3, 2014 at 9:17
  • @javisantana looked a little closer and it is a conflict with bootstrap
    – danpaz
    Commented Mar 3, 2014 at 20:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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