ruby_kml icon indicating copy to clipboard operation
ruby_kml copied to clipboard

Setting the ID: is this a feasible feature?

Open berkes opened this issue 7 years ago • 0 comments

The documentation on KML allows and ID-attribute: e.g.<Placemark id="ID">. The comments in e.g. the placemark.rb object file, hint at this too. It is, however, not possible to set the ID, since it gets ignored.

A quick hack is a change to Placemark#render:

    def render(xm=Builder::XmlMarkup.new(:indent => 2))
      xm.Placemark(id: self.id) {
        super
        ...
      }
    end

I've some ideas on how to refactor a little to allow the ID to be set more generic, but that is quite some work, and this project seems a bit stale. Is this a feature that would be wanted?

berkes avatar Apr 04 '18 08:04 berkes