Hi! I'm trying to add an Image layer on top of an OSM layer, and it only semi-works. The following code produces an image in more or less the right position on my map:
map.addLayer(new OpenLayers.Layer.Image(
'imagery',
'https://s3.amazonaws.com/FrackFinder/Tadpole/well+pad+examples/empty+well+pads/2010tioga_spudbuffer16.png',
bounds.transform(
new OpenLayers.Projection("EPSG:4326"),
map.getProjection()),
new OpenLayers.Size(400, 400),
{
opacity: 1.0,
isBaseLayer: false,
numZoomLevels: 20,
alwaysInRange: true
}
));
This however means that the image has to align with the projection of
OSM! I tried:
map.addLayer(new OpenLayers.Layer.Image(
'imagery',
'https://s3.amazonaws.com/FrackFinder/Tadpole/well+pad+examples/empty+well+pads/2010tioga_spudbuffer16.png',
bounds,
new OpenLayers.Size(400, 400),
{
opacity: 1.0,
isBaseLayer: false,
numZoomLevels: 20,
alwaysInRange: true,
projection: new OpenLayers.Projection("EPSG:4326")
}
));
But this fails entirely (the image just doesn't show up)...
Any ideas?
/Egil
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
