[opensuse-wiki] Maps implementation

Henne, On irc you requested me to implement the maps extension on http://en.opensuse.org/openSUSE:Map. What I did: I edit and checked the list on http://en.opensuse.org/openSUSE:Map/Coordinates to make it usable for the extension. (removing spaces, <br> and other bad things.) Enforced a <noinclude> for the top part off the article. Edit Template:map_user to meet the extension's syntax as stated on http://mapping.referata.com/wiki/Help:Marker_data (#display_points:Address1~Title1~Label1~Icon1; address2~Title2~Label2~Icon2) etc. Address can be an existing address (eg Berlin, Germany) or decimal coördinates, seperated by comma. The latter is used in the list. So the template now looks like this: {{{1}}}, {{{2}}}~{{{3}}}~{{{4}}}, {{{5}}}; (including space behind ";") for: Code: {{Map user|<Latitude>|<Longitude>|<Label>|<Description>|<URL>}} So next step was, since I enforced <noinclude> in the non-list part of http://en.opensuse.org/openSUSE:Map/Coordinates, to remove the old map from http://en.opensuse.org/openSUSE:Map and add the line: {{#display_points:{{openSUSE:Map/Coordinates}}}}. This takes the complete list, generated by above template, in a correct systax. However, when I push preview (thank god I didn't safe) I get a fatal server error (500) from novell. Is it just to much to handle? Or am I missing something. I don't know how this kicks in on server recources, there are 314 user's locations to be processed on the fly, each having 3 syntax for the actual #display_points command. This means about 950 options for 1 command. Or I'm doing something wrong here, or it's just not capable of doing the job. Greeting, Tim (Muhlemmer) -- To unsubscribe, e-mail: opensuse-wiki+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-wiki+help@opensuse.org

On 07/13/2010 08:19 PM, Tim Mohlmann wrote:
Henne,
On irc you requested me to implement the maps extension on http://en.opensuse.org/openSUSE:Map.
What I did: I edit and checked the list on http://en.opensuse.org/openSUSE:Map/Coordinates to make it usable for the extension. (removing spaces, <br> and other bad things.) Enforced a <noinclude> for the top part off the article.
Edit Template:map_user to meet the extension's syntax as stated on http://mapping.referata.com/wiki/Help:Marker_data (#display_points:Address1~Title1~Label1~Icon1; address2~Title2~Label2~Icon2) etc. Address can be an existing address (eg Berlin, Germany) or decimal coördinates, seperated by comma. The latter is used in the list. So the template now looks like this: {{{1}}}, {{{2}}}~{{{3}}}~{{{4}}}, {{{5}}}; (including space behind ";") for: Code: {{Map user|<Latitude>|<Longitude>|<Label>|<Description>|<URL>}}
So next step was, since I enforced <noinclude> in the non-list part of http://en.opensuse.org/openSUSE:Map/Coordinates, to remove the old map from http://en.opensuse.org/openSUSE:Map and add the line: {{#display_points:{{openSUSE:Map/Coordinates}}}}. This takes the complete list, generated by above template, in a correct systax. However, when I push preview (thank god I didn't safe) I get a fatal server error (500) from novell. Is it just to much to handle? Or am I missing something. I don't know how this kicks in on server recources, there are 314 user's locations to be processed on the fly, each having 3 syntax for the actual #display_points command. This means about 950 options for 1 command.
Or I'm doing something wrong here, or it's just not capable of doing the job.
Great work! By default we use openstreetmap which seems not to be able to do #display_points. You can use {{#display_points:{{openSUSE:Map/Coordinates}}|service=openlayers}} or google maps once we installed our google api key. Greetings -- Thomas Schmidt (tschmidt [at] suse.de) SUSE Linux Products GmbH :: Research & Development :: Tools "Don't Panic" Douglas Adams (1952 - 11.05.2001) -- Thomas Schmidt (tom [at] opensuse.org) openSUSE Boosters Team "Don't Panic", Douglas Adams (1952 - 11.05.2001) -- To unsubscribe, e-mail: opensuse-wiki+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-wiki+help@opensuse.org

Hell it works!!!! Thanks for the tip. Never expected it would :p. Again something learned. I was actually quite hard headed in my self invented solution, but it works!. Still some dirt to be cleaned up, but that will come. It gives some errors on coordinates. Now to busy. gr, Tim 2010/7/13 Thomas Schmidt <tom@opensuse.org>:
On 07/13/2010 08:19 PM, Tim Mohlmann wrote:
Henne,
On irc you requested me to implement the maps extension on http://en.opensuse.org/openSUSE:Map.
What I did: I edit and checked the list on http://en.opensuse.org/openSUSE:Map/Coordinates to make it usable for the extension. (removing spaces, <br> and other bad things.) Enforced a <noinclude> for the top part off the article.
Edit Template:map_user to meet the extension's syntax as stated on http://mapping.referata.com/wiki/Help:Marker_data (#display_points:Address1~Title1~Label1~Icon1; address2~Title2~Label2~Icon2) etc. Address can be an existing address (eg Berlin, Germany) or decimal coördinates, seperated by comma. The latter is used in the list. So the template now looks like this: {{{1}}}, {{{2}}}~{{{3}}}~{{{4}}}, {{{5}}}; (including space behind ";") for: Code: {{Map user|<Latitude>|<Longitude>|<Label>|<Description>|<URL>}}
So next step was, since I enforced <noinclude> in the non-list part of http://en.opensuse.org/openSUSE:Map/Coordinates, to remove the old map from http://en.opensuse.org/openSUSE:Map and add the line: {{#display_points:{{openSUSE:Map/Coordinates}}}}. This takes the complete list, generated by above template, in a correct systax. However, when I push preview (thank god I didn't safe) I get a fatal server error (500) from novell. Is it just to much to handle? Or am I missing something. I don't know how this kicks in on server recources, there are 314 user's locations to be processed on the fly, each having 3 syntax for the actual #display_points command. This means about 950 options for 1 command.
Or I'm doing something wrong here, or it's just not capable of doing the job.
Great work! By default we use openstreetmap which seems not to be able to do #display_points. You can use {{#display_points:{{openSUSE:Map/Coordinates}}|service=openlayers}} or google maps once we installed our google api key.
Greetings
-- Thomas Schmidt (tschmidt [at] suse.de) SUSE Linux Products GmbH :: Research & Development :: Tools "Don't Panic" Douglas Adams (1952 - 11.05.2001)
-- Thomas Schmidt (tom [at] opensuse.org) openSUSE Boosters Team "Don't Panic", Douglas Adams (1952 - 11.05.2001) -- To unsubscribe, e-mail: opensuse-wiki+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-wiki+help@opensuse.org
-- To unsubscribe, e-mail: opensuse-wiki+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-wiki+help@opensuse.org

Excellent job, Tim! Thanks for taking car of the openSUSE map. Regards, R. On Tue, Jul 13, 2010 at 10:41 PM, Tim Mohlmann <muhlemmer@gmail.com> wrote:
Hell it works!!!! Thanks for the tip. Never expected it would :p. Again something learned. I was actually quite hard headed in my self invented solution, but it works!.
Still some dirt to be cleaned up, but that will come. It gives some errors on coordinates. Now to busy.
gr, Tim
2010/7/13 Thomas Schmidt <tom@opensuse.org>:
On 07/13/2010 08:19 PM, Tim Mohlmann wrote:
Henne,
On irc you requested me to implement the maps extension on http://en.opensuse.org/openSUSE:Map.
What I did: I edit and checked the list on http://en.opensuse.org/openSUSE:Map/Coordinates to make it usable for the extension. (removing spaces, <br> and other bad things.) Enforced a <noinclude> for the top part off the article.
Edit Template:map_user to meet the extension's syntax as stated on http://mapping.referata.com/wiki/Help:Marker_data (#display_points:Address1~Title1~Label1~Icon1; address2~Title2~Label2~Icon2) etc. Address can be an existing address (eg Berlin, Germany) or decimal coördinates, seperated by comma. The latter is used in the list. So the template now looks like this: {{{1}}}, {{{2}}}~{{{3}}}~{{{4}}}, {{{5}}}; (including space behind ";") for: Code: {{Map user|<Latitude>|<Longitude>|<Label>|<Description>|<URL>}}
So next step was, since I enforced <noinclude> in the non-list part of http://en.opensuse.org/openSUSE:Map/Coordinates, to remove the old map from http://en.opensuse.org/openSUSE:Map and add the line: {{#display_points:{{openSUSE:Map/Coordinates}}}}. This takes the complete list, generated by above template, in a correct systax. However, when I push preview (thank god I didn't safe) I get a fatal server error (500) from novell. Is it just to much to handle? Or am I missing something. I don't know how this kicks in on server recources, there are 314 user's locations to be processed on the fly, each having 3 syntax for the actual #display_points command. This means about 950 options for 1 command.
Or I'm doing something wrong here, or it's just not capable of doing the job.
Great work! By default we use openstreetmap which seems not to be able to do #display_points. You can use {{#display_points:{{openSUSE:Map/Coordinates}}|service=openlayers}} or google maps once we installed our google api key.
Greetings
-- Thomas Schmidt (tschmidt [at] suse.de) SUSE Linux Products GmbH :: Research & Development :: Tools "Don't Panic" Douglas Adams (1952 - 11.05.2001)
-- Thomas Schmidt (tom [at] opensuse.org) openSUSE Boosters Team "Don't Panic", Douglas Adams (1952 - 11.05.2001) -- To unsubscribe, e-mail: opensuse-wiki+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-wiki+help@opensuse.org
-- To unsubscribe, e-mail: opensuse-wiki+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-wiki+help@opensuse.org
-- To unsubscribe, e-mail: opensuse-wiki+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-wiki+help@opensuse.org

Hello, on Dienstag, 13. Juli 2010, Tim Mohlmann wrote:
On irc you requested me to implement the maps extension on http://en.opensuse.org/openSUSE:Map.
Edit Template:map_user to meet the extension's syntax [...] So the template now looks like this: {{{1}}}, {{{2}}}~{{{3}}}~{{{4}}}, {{{5}}};
You missed the cases where the URL is missing (not only empty). I changed the template to use {{{4|}}} and {{{5}}} (note the "4|" and "5|"). This avoids that something like {{{5}}} will be displayed in the map.
So next step was [...] to remove the old map from http://en.opensuse.org/openSUSE:Map and add the line: {{#display_points:{{openSUSE:Map/Coordinates}}}}.
Looks nice, but I see two issues: a) the clickable name list to answer the question "where does person X live?" This is an important feature IMHO. The old map on my server still does this, so the easiest solution is probably to add a link to it. (Yes, I know that it is not the nicest solution ;-) b) there's a error message shown below the map: The following error has been detected in your syntax: One or more values for parameter coordinates are invalid. The value x has been omitted. Very helpful error message :-( Now try to find out which map entry is broken... Regards, your BOfH ;-) ... ... ... ... Had enough debugging fun? Found the error? No, it is not only one error ;-) ... ... ... ... Here's the easier solution: my map-debug service :-) http://service.cboltz.de/opensuse/debug-map.php It will check for: ## Latitude ## contains invalid chars (non-numbers)? ## out of range? (+/- 90) ## Longtitude ## contains invalid chars (non-numbers)? ## out of range? (+/- 180) ## Label ## contains < or >? ## empty? (fatal) ## Description ## contains < or >? ## empty? (fatal) ## URL ## contains < or >? ## empty? (warning only) ## too many fields? -> probably a syntax error (PHP source attached to this mail) I'm not sure if an empty description is a fatal error - opinions? Empty/missing URL is not a real problem IMHO, and a line won't be listed as faulty if just the URL is empty. BTW: The old "debug.php" is still there, but is less strict on error checking. debug-map.php is a complete rewrite from scratch. It should catch everything that debug.php catched, and much more. Now really writing as BOfH: I did _not_ fix the coordinates page so that you can test if my map debugger really works *eg* If you find any issues in my script - patches and feedback welcome. Regards, Christian Boltz PS: not a random sig ;-) -- I read the BOFH texts long time ago and remember them, but this attitude is unfortunately not really called for business Linux versions ;) "In the new SUSE Linux release we are now standardizing on the 'netcat' browser. It is fully costumable to your viewing experience." ;) [Marcus Meissner in suse-security]
participants (4)
-
Christian Boltz
-
Rémy Marquis
-
Thomas Schmidt
-
Tim Mohlmann