import DS from 'ember-data';

export default DS.Transform.extend({
  deserialize(serialized) {
    return serialized;
  },

  serialize(deserialized) {
    return deserialized;
  }
});

import DS from 'ember-data';

const format = new ol.format.GeoJSON()

export default DS.Transform.extend({
  deserialize(serialized) {
    return format.readGeometry(serialized);
  },
  serialize(deserialized) {
    return format.writeGeometry(deserialized);
  }
});

Add GeoJSON transform for geometry
Add GeoJSON transform for geometry
