On Tue, Jan 8, 2013 at 11:17 PM, Tom MacWright <span dir="ltr"><<a href="mailto:tom@macwright.org" target="_blank">tom@macwright.org</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hey all (and especially Grant & Jochen),<div><br></div><div>So, the iD editor has this nice 'reference pane' which shows tag/value summaries from TagInfo, if available. TagInfo also provides thumbnails for these combos in the form File:Foo. Unfortunately that doesn't map to a real URL (by design). There's an API to get at the contents, like</div>


<div><br></div><div>    <a href="http://wiki.openstreetmap.org/w/api.php?action=query&prop=imageinfo&titles=Image:Residential.jpg&iiprop=url%7Ccontent&format=xml" target="_blank">http://wiki.openstreetmap.org/w/api.php?action=query&prop=imageinfo&titles=Image:Residential.jpg&iiprop=url|content&format=xml</a></div>


<div><br></div><div>But this doesn't support CORS. It doesn't look like MediaWiki supports CORS at this point ( <a href="https://gerrit.wikimedia.org/r/#/c/9718/" target="_blank">https://gerrit.wikimedia.org/r/#/c/9718/</a> ), so either we're looking at implementing this on a server-level in Apache, having TagInfo expose actual image URLs, or implementing it in MediaWiki.</div>


<div><br></div><div>Any other thoughts here? I obviously am unable to mess with server configuration of <a href="http://wiki.openstreetmap.org" target="_blank">wiki.openstreetmap.org</a>, but if, for instance, patching MediaWiki would do the trick, I can probably do that.</div>

</blockquote><div><br></div><div><a href="http://www.mediawiki.org/wiki/Manual:$wgCrossSiteAJAXdomains">http://www.mediawiki.org/wiki/Manual:$wgCrossSiteAJAXdomains</a> ?</div><div><br></div><div>Cheers,</div><div>Katie </div>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="HOEnZb"><font color="#888888">
<div><br></div><div>Tom</div>
</font></span><br>_______________________________________________<br>
dev mailing list<br>
<a href="mailto:dev@openstreetmap.org">dev@openstreetmap.org</a><br>
<a href="http://lists.openstreetmap.org/listinfo/dev" target="_blank">http://lists.openstreetmap.org/listinfo/dev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Katie Filbert<br><a href="mailto:filbertk@gmail.com" target="_blank">filbertk@gmail.com</a><br>@filbertkm / @wikimediadc / @wikidata