Hi all,
 
I am working for the great new "OpenUrban" community project see openurban.net and our next task is to incorporate an OpenLayers based map editor for points , lines an polygons into MediaWiki. We are familiar with the work Kim did with the Google map based editor and it is great, however some work remains to completed with it, and also we need the editor to be based in OpenLayers thus our effort outlined below.
 
I am mostly a mapping professional, not much familiar with MediaWiki (yet) . So my question is:
 we are working on a new extension (or additions to the Maps & Semantic Maps extensions) to create that editor and would like to incorporate this absolutely awesome existing editor http://ole.geops.de/ . So my newbie question is how can we - in the most simple way include the editor code (and configure) in our map pages and how can we include additional configuration html and JS code ? E.g. in a simple html page I would include the editor JS and then have an html page below at the end of the email...
 
I started to add a new directory into the Maps extension on our server ..\MediaWiki\extensions\Maps\includes\ and was hoping I could start by copying  (Kim's) 'editor' directory and replace the alter the code so I can get the 'geops' editor into MediaWiki.  But he where I am running out of expertise how to get my JS editor into MediaWiki ....
any suggestions on how to accomplish this task ?
BTW a 'hacky' but workable way is ok for the time being as we need to be fast with this ...
 
Cheers
Karsten
 __________________ __________________ __________________ __________________ __________________ __________________

<html>

<head>
   
<title>OpenLayers.Editor</title>

   
<script src="http://openlayers.org/api/2.12/OpenLayers.js"></script>
   
<script type="text/javascript" src="../lib/Editor/Lang/en.js"></script>
   
<script type="text/javascript" src="../lib/loader.js"></script>
   
<script type="text/javascript">

        function init() {

            var map, editor;
            OpenLayers.Lang.setCode('en');

map = new OpenLayers.Map('map');            map.addLayer(new OpenLayers.Layer.OSM());
            map.setCenter(new OpenLayers.LonLat(10, 50), 5);

            editor = new OpenLayers.Editor(map, {
                activeControls: ['Navigation', 'SnappingSettings', 'CADTools', 'Separator', 'DeleteFeature', 'DragFeature', 'SelectFeature', 'Separator', 'DrawHole', 'ModifyFeature', 'Separator'],
                featureTypes: ['polygon', 'path', 'point']
            });
            editor.startEditMode();
        }
   
</script>
   
<style type="text/css">
    /* Make map consume all available space */
    html, body, #map {
        height:100%;
        margin:0;
    }
   
</style>
   
<link rel="stylesheet" href="../theme/geosilk/geosilk.css" type="text/css" />
</head>
<body onload="init()">
   
<div id="map"></div>
</body>
</html>





=======
Email scanned by PC Tools - No viruses or spyware found.
(Email Guard: 9.0.0.2308, Virus/Spyware Database: 6.20600)
http://www.pctools.com
=======