Sha256: bec2995a1628c43bcd620c907aa7f46ce119a1eab6dc234cefbb6341d1a66d36
Contents?: true
Size: 602 Bytes
Versions: 3
Compression:
Stored size: 602 Bytes
Contents
Gmaps4Rails.Openlayers = {} Gmaps4Rails.Openlayers.Shared = createPoint:(lat, lng) -> new OpenLayers.Geometry.Point(lng, lat) createLatLng: (lat, lng)-> new OpenLayers.LonLat(lng, lat).transform(new OpenLayers.Projection("EPSG:4326"), new OpenLayers.Projection("EPSG:900913")) # transform from WGS 1984 to Spherical Mercator Projection createAnchor: (offset)-> return null if offset == null new OpenLayers.Pixel(offset[0], offset[1]) createSize: (width, height)-> new OpenLayers.Size(width, height) createLatLngBounds: -> new OpenLayers.Bounds()
Version data entries
3 entries across 3 versions & 1 rubygems