[OpenLayers-Users] geo referenced image layer

miles john.staff2222 at gmail.com
Thu Nov 15 21:41:26 EST 2007


Tim Schaub wrote:
> Hey-
>
> miles wrote:
>   
>> How can a simple jpeg image map be added as a layer(assuming the lat 
>> long corner pts are known) so that clicking on the layer can return lat 
>> long coordinates  ? 
>>     
>
> See http://openlayers.org/dev/examples/image-layer.html
>
> You can point to an arbitrary image and "georeference" it when creating 
> the layer.
>   
That's where I had trouble.  The example shows:

new OpenLayers.Bounds(-180, -88.759, 180, 88.759),

but when I substituted my own coordinates, (ie -111.6, 40.3, -111.7, 
40.4) the image disappeared.  Does the georeferencing  need to be done 
some other way  ?  Then I figured to use a mouse click event




More information about the Users mailing list