{"id":18673399,"url":"https://github.com/cartodb/labs-multilayer","last_synced_at":"2025-11-06T23:30:37.400Z","repository":{"id":26946193,"uuid":"30408885","full_name":"CartoDB/labs-multilayer","owner":"CartoDB","description":null,"archived":false,"fork":false,"pushed_at":"2015-08-11T18:36:53.000Z","size":242,"stargazers_count":12,"open_issues_count":1,"forks_count":10,"subscribers_count":15,"default_branch":"master","last_synced_at":"2024-12-27T19:46:17.812Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CartoDB.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-06T11:18:31.000Z","updated_at":"2020-02-21T08:55:54.000Z","dependencies_parsed_at":"2022-09-15T09:52:01.257Z","dependency_job_id":null,"html_url":"https://github.com/CartoDB/labs-multilayer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CartoDB%2Flabs-multilayer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CartoDB%2Flabs-multilayer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CartoDB%2Flabs-multilayer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CartoDB%2Flabs-multilayer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CartoDB","download_url":"https://codeload.github.com/CartoDB/labs-multilayer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239513383,"owners_count":19651323,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T09:15:12.682Z","updated_at":"2025-11-06T23:30:37.343Z","avatar_url":"https://github.com/CartoDB.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Toggle layers in CartoDB\n\nMultilayer is achieved through an angularjs-based selector (to keep HTML as clean and self-contained as possible) and a basemap-agnostic (i.e. it works with Leaflet, Google maps or whatever) logic.\n\nOne layer per visualization and one visualization per layer.\n\nExample URL:\n\nhttp://multilayer.cartodb.io/multilayer.html?u=dcarrion\u0026t=multilayer\u0026v=9c5ed27c-ad4f-11e4-ae79-0e853d047bba\u0026tt=Multilayer%20map\u0026d=Description%20test\n\nURL params:\n\n* u: username\n* t: table with the layers\n* v: viz.json UUID for the basemap (this visualization may contain data as well, but please remember this layer is *not* included in the selector and can't be hidden)\n* tt: Title of the map\n* d: Description - Keep it short!\n\nRequired row fields in the layer table:\n\n* cartodb_id: not used\n* the_geom: not_used\n* name: name to appear in the selector\n* show: true if layer is to be displayed initially\n* viz_json: URL for the viz.json that corresponds to the visualization (takes precedence over sql and cartocss)\n* sql: SQL query for the data in the layer (used if viz_json is not present)\n* sql_user: user name for the SQL query (used if viz_json is not present)\n* cartocss: CartoCSS for the layer (used if viz_json is not present)\n* interactivity: Fields to interact with for the layer (used if viz_json is not present)\n* created_at: not used\n* modified_at: not used\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcartodb%2Flabs-multilayer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcartodb%2Flabs-multilayer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcartodb%2Flabs-multilayer/lists"}