Skip to content

Instantly share code, notes, and snippets.

@bhousel
Last active August 29, 2015 14:15
Show Gist options
  • Save bhousel/41ebacb93c1a288c0a85 to your computer and use it in GitHub Desktop.
Save bhousel/41ebacb93c1a288c0a85 to your computer and use it in GitHub Desktop.
Load custom preset into #iD on the fly
obj = {
presets: {
'aerialway/zip_line': {
geometry: ["line"],
fields: ["incline"],
tags: { "aerialway": "zip_line" },
name: "Zipline"
}
}
};
id.presets(obj); // reload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment