Extension talk:SlippyMap

Discuss Extension:SlippyMap page here:

User documentation
There is no information on the syntax for this extension. That of course does not help in the adoption of it. Please provide some user documentation. Cheers! Siebrand 17:24, 13 November 2008 (UTC)
 * OK I've put some basic info. -- Harry Wood 17:49, 13 November 2008 (UTC)

Developing at OpenStreetMap
I'm working on this extension code. There's currently a different (better) version over at the OpenStreetMap SVN repo: http://svn.openstreetmap.org/applications/utils/wiki-extensions/SlippyMap-local/  but we'll aim to get it checked in here too/instead -- Harry Wood 17:49, 13 November 2008 (UTC)
 * I updated the extension in MediaWiki's svn. However, a few issues: no more markers, no more buttons. See betawiki:User:Siebrand. Siebrand 09:24, 14 November 2008 (UTC)
 * I fixed an XHTML issue in 43481. Siebrand 09:37, 14 November 2008 (UTC)
 * Re-added the marker in 43482. Siebrand 09:48, 14 November 2008 (UTC)

Cool OK. Wasn't expecting that to happen quite so quickly, but good that we're more in sync now. You know I did also disable 'KML' support in that copy.

The reason I disabled markers and KML temporarily is because I wanted to discuss wiki syntax. If we unleash these things on the OSM wiki then we have a lot more hassle fix the syntax usages later. We are currently going through the hassle of switching from old to new syntax for the basic params.

So I was thinking for the markers it's going to be better if we are vaguely following a similar syntax as Extension:Google_Maps/Syntax. Easy enough to code.

-- Harry Wood 13:47, 17 November 2008 (UTC)
 * Why not request MediaWiki SVN access and maintain the beast directly? Siebrand 14:11, 17 November 2008 (UTC)


 * hmmm suppose I could -- Harry Wood 11:06, 23 November 2008 (UTC)

Upgrade Slippymap like Googlemap
Hi Harry, do you now the Googlemap-extension? It makes it easy to build a slippy-map with markers, klickable marker-text and routes by simple wiki-syntax:  lat, lon, marker_text lat, lon, marker_text Can you upgrade the Slippymap-extension like this? I would like to use OSM, and I need this feature for our city-wiki. Thanks a lot, --Markus Bärlocher 23:00, 10 March 2009 (UTC)

addOnLoadHook
With a previous version there was an addOnLoadHook call which was added in order to defer loading of the javascript. For me this seemed to cause IE7 to crap out completely with "operation aborted" error making the wiki page completely unviewable. This code was also inelegant because it requires a modified copy of OpenStreetMap.js. Not only that, but it was loaded in from a hardcoded svn.wikimedia.org remote URL rather loading the local file.

For those reasons I removed that whole chunk of code in my latest version (one with the blue button graphics added) which is now in SVN.

...but actually looking at this Betawiki:User:Raymond/Kölner_Dom example. That's running a version with the addOnLoadHook, which does not crash IE. hmmm. I notice in this HTML there are other 'addOnLoadHook' calls higher up (outside of the extension output). Maybe that helps it to work.

-- Harry Wood 11:06, 23 November 2008 (UTC)