{"action":"closed","issue":{"url":"https://api.github.com/repos/CartoDB/cartodb.js/issues/438","labels_url":"https://api.github.com/repos/CartoDB/cartodb.js/issues/438/labels{/name}","comments_url":"https://api.github.com/repos/CartoDB/cartodb.js/issues/438/comments","events_url":"https://api.github.com/repos/CartoDB/cartodb.js/issues/438/events","html_url":"https://github.com/CartoDB/cartodb.js/issues/438","id":68513384,"number":438,"title":"could Cartodb.js be more modular?","user":{"login":"standardpixel","id":15744,"avatar_url":"https://avatars.githubusercontent.com/u/15744?v=3","gravatar_id":"","url":"https://api.github.com/users/standardpixel","html_url":"https://github.com/standardpixel","followers_url":"https://api.github.com/users/standardpixel/followers","following_url":"https://api.github.com/users/standardpixel/following{/other_user}","gists_url":"https://api.github.com/users/standardpixel/gists{/gist_id}","starred_url":"https://api.github.com/users/standardpixel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/standardpixel/subscriptions","organizations_url":"https://api.github.com/users/standardpixel/orgs","repos_url":"https://api.github.com/users/standardpixel/repos","events_url":"https://api.github.com/users/standardpixel/events{/privacy}","received_events_url":"https://api.github.com/users/standardpixel/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-14T22:17:03Z","updated_at":"2015-04-15T23:54:38Z","closed_at":"2015-04-15T23:54:38Z","body":"Hello,\r\n\r\nI am trying to use cartodb in a couple of applications. In both cases it is a small part of a bigger architecture and design. Here are the scenarios:\r\n\r\n1. \r\n   * scenario: I need to display a cartodb layer over an existing map. \r\n   * problem: The cartodb createVis method overides the styles and behavior of the map. My styled zoom controls backgrounds change. All that I really need here is a layer template. Instead it makes a lot of assumptions about my map configuration\r\n\r\n2.\r\n   * scenario: I am using cartodb as the backend api for a React.JS app which uses NPM as a front-end package manager. \r\n   * problem: cartodb.js exists in NPM but requires a build step. It does not work as a module.\r\n\r\nThe entire library took 500ms to load also. It seems to have a lot of dependencies which I did not need just to use the query method. \r\n\r\nBasically, can simple client and tilelayer building modules be abstracted without dependence on JQuery or Backbone. Ones which can be installed using NPM?\r\n\r\nThanks!\r\n"}}