Hey Karsten,

Let me first point out that I am in the process of wrapping up Maps (and Semantic Maps) for their 2.0 release. These will include the new features Kim added, amongst which the Special:MapEditor page using Google Maps. This means that any additions you make will be for a release after 2.0 (which might not matter much to you as you can happily run the latest version of your own code or the extension itself).

Adding another editor using OpenLayers would be awesome. There are however two points that when taken into account will make it even more fantastic:

* Having different editing tools for different mapping services is awkward, it's nicer to have one interface that can just switch mapping service (much like the existing (non-editing) interfaces).
* The editor Kim created can eat and output wikitext. This allows users to get the wikitext they need to embed a map without actually understanding it or having to write it all out. They do need to actually navigate to another page, so the UX here has lot's of room for improvement. A kind of inline editor would be amazing.

To address your question on loading JavaScript, I suggest you have a look at how this is done with the current map editor. As David Mason mentioned, loading of JavaScript is done though the resource loader [0]. To get review and support, it's best that you develop this in the WMF hosted git repository of Maps [1]. You can find more info on the git workflow here [2]. If you just want to play around and possibly break some things, I'd be happy to create a branch for you on gerrit.

[0] https://www.mediawiki.org/wiki/Resource_loader
[1] https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/extensions/Maps.git
[2] https://www.mediawiki.org/wiki/Git

Cheers

--
Jeroen De Dauw
http://www.bn2vs.com
Don't panic. Don't be evil.
--