Module: GbMapfishAppserver::Array
- Defined in:
- lib/gb_mapfish_appserver/core_extensions.rb
Instance Method Summary collapse
Instance Method Details
#to_geojson(options = {}) ⇒ Object
23 24 25 26 27 28 |
# File 'lib/gb_mapfish_appserver/core_extensions.rb', line 23 def to_geojson( = {}) geojson = '{"type": "FeatureCollection", "features": [' geojson << collect {|e| e.to_geojson() }.join(',') geojson << ']}' geojson end |