Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin interface #1392

Open
tmcw opened this issue Apr 27, 2013 · 6 comments
Open

Plugin interface #1392

tmcw opened this issue Apr 27, 2013 · 6 comments
Labels
iD v3 Ideas and issues for the next major iD version new-feature A new feature for iD

Comments

@tmcw
Copy link
Contributor

tmcw commented Apr 27, 2013

Split off from #1391.

Essentially: what types of functional plugins should iD support and how? Should it be a js interface? How should they be installed?

@Zverik
Copy link
Contributor

Zverik commented Aug 29, 2013

So, in light of recent news about feature extraction plugin, is there a plugin API now? Can anyone make some example plugins?

@colegleason
Copy link

Hi! Is there any progress on plugins? If I want to extend an editor, is JOSM a better choice at the moment?

@colegleason
Copy link

@bhousel I looked at the PR #3503 to understand the interface you were thinking for this. When you mention events for plugins to hook into, did you imagine these as new events or existing ones used inside iD? If existing, are these events documented anywhere?

For example, I'm trying to add a plugin to the inspector when someone selects (or hovers) on a node in the map, but I'm having trouble finding the correct object to listen on and event to listen for.

@bhousel
Copy link
Member

bhousel commented Jul 10, 2017

When you mention events for plugins to hook into, did you imagine these as new events or existing ones used inside iD? If existing, are these events documented anywhere?

Existing events, unless we think of other ones that a plugin might need. For example, the intro walkthrough uses events on the history and map objects to watch for everything a user does, prompt them, advance them through the tutorial steps.

As far as documentation goes, we don't have anything yet, sorry! Tracking this task on #3743. Unfortunately I need to balance a lot of different things in this project - and bugfixes and features that help new mappers have taken priority over features for power users or iD developers.

For example, I'm trying to add a plugin to the inspector when someone selects (or hovers) on a node in the map, but I'm having trouble finding the correct object to listen on and event to listen for.

Nice, you might want to look at the info panels that I just added in v2.3.0 - this might be a good way to extend iD right now until we figure out plugins.

If your code matches the interface of the other info panels, you could probably inject it directly into the uiInfoPanels object, before bootstrapping the iD ui() in index.html. uiPanelLocation is probably the simplest one to look at as an example or starter code.

@colegleason
Copy link

Thanks for the pointers! The panels look useful, so I'll try that, but I'll have to see if they are useful as an editing interface (instead of just info display).

@bhousel bhousel added the iD v3 Ideas and issues for the next major iD version label Mar 3, 2018
@thibaultmol
Copy link
Contributor

I think some small additions to iD that maybe not everyone would want would be neat as plugins:
Adding a box with 'commonly used combinations for this tag, from taginfo' or something would be good for example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
iD v3 Ideas and issues for the next major iD version new-feature A new feature for iD
Projects
None yet
Development

No branches or pull requests

6 participants