1 L.extend(L.LatLngBounds.prototype, {
3 return (this._northEast.lat - this._southWest.lat) *
4 (this._northEast.lng - this._southWest.lng);
8 return new L.LatLngBounds(this._southWest.wrap(), this._northEast.wrap());
12 L.extend(L.Map.prototype, {
13 getLayersCode: function() {
15 for (var i in this._layers) { // TODO: map.eachLayer
16 var layer = this._layers[i];
17 if (layer.options && layer.options.code) {
18 layerConfig += layer.options.code;
23 getMapBaseLayerId: function() {
24 for (var i in this._layers) { // TODO: map.eachLayer
25 var layer = this._layers[i];
26 if (layer.options && layer.options.keyid) return layer.options.keyid;
31 L.Icon.Default.imagePath = <%= "#{asset_prefix}/images".to_json %>;