Skip to content

Ember Data Adapter for using CartoDB as data persistence layer.

License

Notifications You must be signed in to change notification settings

cspanring/ember-cartodb-adapter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ember CartoDB Adapter

This is a CartoDB adapter for Ember Data 1.0 beta 6, that extends the built-in default data adapter. Please note that Ember Data and this CartoDB adapter are both works in progress, use with caution.

Download

Usage

App.ApplicationAdapter = DS.CartoDBAdapter.extend({
    accountName: '<CartDB Account Name>',
    tablePrefix: '<Tableprefix>',
    // DANGERZONE: GIVES WRITE ACCESS TO YOUR CARTODB ACCOUNT. DON'T USE IT ON PUBLIC SITES!
    apiKey: '<CartoDB API Key>'
});

View a simple example.

Issues

  • CartoDB table names must correspond to the plural version of your Ember Data Model names. E.g. The adapter will look for the table playgrounds to find data about a model called Playground.
  • Currently only GeoJSON Points (WGS84) are supported. The adapter is more a proof-of-concept.
  • All data found in a CartoDB table is stored in the properties property of your Ember Data Model.
  • BelongsTo and Many relations are not (yet) supported.

About

Ember Data Adapter for using CartoDB as data persistence layer.

Resources

License

Stars

Watchers

Forks

Packages

No packages published