Permalink
Browse files

renamed osb-server/ to api/0.1/, osb/ to client/ and changed scripts …

…accordingly
  • Loading branch information...
1 parent c501c0b commit 7efff7022a8468257c6d69928963ec688866709e @emka committed Mar 27, 2009
View
17 README
@@ -2,12 +2,13 @@ OPENSTREETBUGS
The concept of Openstreetbugs and the orignal software has been developed by
Xavier. The code can be seen in action on http://openstreetbugs.appspot.com/.
-When I set up a http://www.mappa-mercia.org/ I wanted to integrate
-Openstreetbugs into this website and so I started to adept Xavier's javascript
+
+When Christoph set up a http://www.mappa-mercia.org/ he wanted to integrate
+Openstreetbugs into this website and so he started to adept Xavier's javascript
code. In order to test my modifications without polluting the "official"
-database with test bugs I also wrote my own very simple server-side scripts.
+database with test bugs he also wrote my own very simple server-side scripts.
-Since there has been some interest in the source code of Openstreetbugs I
+Since there has been some interest in the source code of Openstreetbugs he
decided to bundle the modified client-side code and my still very simple
server-side scripts with some documentation and publish them.
@@ -52,7 +53,7 @@ webserver:
of the database or add the table to a different database. However, the name
of the table and the columns must not be changed.
-2. Copy the cgi-scripts in osb-server/ to a location on your webserver where
+2. Copy the cgi-scripts in api/0.1/ to a location on your webserver where
execution of cgis is enabled (probably something like /cgi-bin/).
3. Open all four files in your favourite text editor and change the variables
@@ -121,10 +122,10 @@ Client-side
Once you sorted out the server-side of Openstreetbugs you can install the
client-side.
-The client side code is in the osb/ folder of this package. Copy this folder to
+The client side code is in the client/ folder of this package. Copy this folder to
the top-level directory of your website. If you want to place it somewhere
else or if you want to name it differently you have to update the osb_img_path
-variable in openstreetmap.js accordingly.
+variable in openstreetbugs.js accordingly.
In the example/ folder you find a very simple example of how to add
Openstreetbugs support to a website. All you need to do is linking
@@ -148,4 +149,4 @@ Contact
If you have any questions or comments please contact:
- christoph@b3e.net
+ christoph@b3e.net, mitja@kleider.name
View
0 osb-server/addPOIexec → api/0.1/addPOIexec
File renamed without changes.
View
0 osb-server/closePOIexec → api/0.1/closePOIexec
File renamed without changes.
View
0 osb-server/db_config.py → api/0.1/db_config.py
File renamed without changes.
View
0 osb-server/editPOIexec → api/0.1/editPOIexec
File renamed without changes.
View
0 osb-server/getBugs → api/0.1/getBugs
File renamed without changes.
View
0 osb-server/getGPX → api/0.1/getGPX
File renamed without changes.
View
0 osb/closed_bug_marker.png → client/closed_bug_marker.png
File renamed without changes
View
0 osb/open_bug_marker.png → client/open_bug_marker.png
File renamed without changes
View
0 osb/openstreetbugs.css → client/openstreetbugs.css
File renamed without changes.
View
2 osb/openstreetbugs.js → client/openstreetbugs.js
@@ -181,7 +181,7 @@ function popup_close_bug(bug_or_id)
/* base url for images used by openstreetbugs:
*/
-var osb_img_path = "/osb/";
+var osb_img_path = "/client/";
/* Map object to which openstreetbugs has been added:
*/
View
8 example/osb-example.html
@@ -5,7 +5,7 @@
<title>Openstreetbugs Example</title>
<!-- Tell the browser that this page has a "favicon" -->
- <link rel="icon" type="image/png" href="../osb/open_bug_marker.png">
+ <link rel="icon" type="image/png" href="../client/open_bug_marker.png">
<!-- These lines add everything that's neccessary to show a slippy map
with osm mapnik tiles. The details on how this works can be found on
@@ -19,8 +19,8 @@
<!-- The following two lines add the javascript for openstreetbugs and a
stylesheet which polishes the popups displayed by openstreetbugs.
-->
- <link rel="stylesheet" href="../osb/openstreetbugs.css" type="text/css">
- <script src="../osb/openstreetbugs.js" type="text/javascript"></script>
+ <link rel="stylesheet" href="../client/openstreetbugs.css" type="text/css">
+ <script src="../client/openstreetbugs.js" type="text/javascript"></script>
<script type="text/javascript">
/* This function is called once the page is loaded to
@@ -34,7 +34,7 @@
// Add openstreetbugs to the map. The function takes two arguments: The first one must
// reference an Openlayers.Map object, the second one specifies the path on the server
// which contains the server side scripts.
- init_openstreetbugs(map, "/osb-server/");
+ init_openstreetbugs(map, "/api/0.1/");
}
</script>
</head>

0 comments on commit 7efff70

Please sign in to comment.