Skip to content

Instantly share code, notes, and snippets.

@zenitraM
Last active August 29, 2015 14:11
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zenitraM/9f57cc82ccc1eae10b40 to your computer and use it in GitHub Desktop.
Save zenitraM/9f57cc82ccc1eae10b40 to your computer and use it in GitHub Desktop.
Named Maps

Named maps allow you to create public visualizations out of private tables. It is what the CartoDB editor uses under the hood, but has additional features which allow you to create customizable visualizations out of private data.

Creating your first visualization with a Named Map

You will need to replace the API KEY and the account name with yours.

  • List your own named maps
  • Create your own (first!) named map definition
  • Update your own named map

http://jsfiddle.net/dad9n6ux/2/

Important note

There's a bug right now which prevents changing a named map from getting refreshed (as they get cached for a few minutes).

We expect to have it fixed very soon, but you can work around it in your code by adding:

          cartodb.uniqueCallbackName = function() { return 'cdb_' + new Date().getTime() }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment