extrapole
clone your own copy | download snapshot

Snapshots | iceberg

No images in this repository’s iceberg at this time

Inside this repository

models.js
application/javascript

Download raw (806 bytes)

/*
 * 
 * models
 * 
 */


var app = app || {}


app.Message = Backbone.Model.extend({});

// window.bMa.Project = Backbone.Model.extend({
//     constructor: function() {
//         Backbone.Model.apply(this, arguments);
//         
//         var geo = this.get('geojson');
//         var ovl = new L.GeoJSON(geo, {
//             style:function(f){ 
//                 return bMa.Config().get_dict('/feature/style/show');
//             }
//         });
//         
//         this.set({display:true, feature:ovl});
//     },
//     bounds:function(){
//         if(this.layer === undefined || this.data.geojson.coordinates.length === 0)
//         {
//             var llb = new L.LatLngBounds();
//             return llb;
//         }
//         return this.layer.getBounds();
//     },
//     
// })