
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