You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
berkes
changed the title
Setting the ID: is this a
Setting the ID: is this a feasible feature?
Apr 4, 2018
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
: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?
The text was updated successfully, but these errors were encountered: