Skip to content

Setting the ID: is this a feasible feature? #15

@berkes

Description

@berkes

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions