<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Ah ha! I got it! I needed x, y coordinates, not lat/lon :-) Thanks!<br>
<br>
Jonathan Wolfe wrote:
<blockquote cite="mid:4AA39F41.1070308@noaa.gov" type="cite">
<pre wrap="">Thanks Arnd,
That at least un-grayed the layer :-) Still not showing up though, I'll
tinker with it some more...
Thanks again,
Jonathan
Arnd Wippermann wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi,
Try with adding the resolutions to your options of your layer.
{numZoomLevels: 3, isBaseLayer: false,
resolutions:map.layers[0].resolutions,
maxResolution:map.layers[0].resolutions[0]};
Arnd
-----Ursprüngliche Nachricht-----
Von: <a class="moz-txt-link-abbreviated" href="mailto:users-bounces@openlayers.org">users-bounces@openlayers.org</a> [<a class="moz-txt-link-freetext" href="mailto:users-bounces@openlayers.org">mailto:users-bounces@openlayers.org</a>] Im
Auftrag von Jonathan Wolfe
Gesendet: Sonntag, 6. September 2009 12:25
An: <a class="moz-txt-link-abbreviated" href="mailto:users@openlayers.org">users@openlayers.org</a>
Betreff: [OpenLayers-Users] png on spherical mercator
Hi,
Am I using the OpenLayers.Layer.Image correctly? All I want to do is overlay
a png onto a google projection...The layer shows up grayed out and nothing
is displayed.
var graphic = new OpenLayers.Layer.Image(
'Nautical Chart',
'./nautical_chart4.png',
new OpenLayers.Bounds(-135.0, 17.0, -115.0,
62), <-- I tried using x,y values, but neither worked.
new OpenLayers.Size(276,212),
{numZoomLevels: 3,
isBaseLayer: false};
);
map.addLayer(graphic);
Thanks for your help!
Jonathan
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@openlayers.org">Users@openlayers.org</a>
<a class="moz-txt-link-freetext" href="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</a>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@openlayers.org">Users@openlayers.org</a>
<a class="moz-txt-link-freetext" href="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</a>
</pre>
</blockquote>
<pre wrap=""><!---->_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@openlayers.org">Users@openlayers.org</a>
<a class="moz-txt-link-freetext" href="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</a>
</pre>
</blockquote>
</body>
</html>