Let image resolution be calculated when the image loads

This commit is contained in:
Tim Schaub
2014-10-05 08:45:19 -06:00
parent ddc3dbaa87
commit ede37f26f7
2 changed files with 21 additions and 13 deletions

View File

@@ -34,8 +34,16 @@
<h4 id="title">Static image example</h4>
<p id="shortdesc">Example of a static image layer.</p>
<div id="docs">
<p>Source: <a href="http://xkcd.com/256/">xkcd.com/256/</a></p>
<p>See the <a href="static-image.js" target="_blank">static-image.js source</a> to see how this is done.</p>
<p>
This example uses a <a href="http://xkcd.com/256/">static image</a>
as a layer source. The map view is configured with a custom
projection that translates image coordinates directly into map
coordinates.
</p>
<p>
See the <a href="static-image.js" target="_blank">static-image.js source</a>
for details on how this is done.
</p>
</div>
<div id="tags">static image, xkcd</div>
</div>