Sha256: 2b81ed0aee5e74d428b15c9725b264371147a183de9cc8d8c07b472c9c0239f8

Contents?: true

Size: 280 Bytes

Versions: 3

Compression:

Stored size: 280 Bytes

Contents

L.Projection.Identity = {
  project: function(latlng) {
    return new L.Point(latlng.lng, latlng.lat);
  },
	
  unproject: function(point, unbounded) {
    /* Turn on no wrap by passing true as 3rd parameter */
    return new L.LatLng(point.y, point.x, true);
  }
};

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
leaflet-ruby-0.3.beta4 lib/zerista/Projection.Identity.js
leaflet-ruby-0.3.beta3 lib/zerista/Projection.Identity.js
leaflet-ruby-0.3.beta1 lib/zerista/Projection.Identity.js