[OpenLayers-Users] Bug in OpenLayers.Bounds ? [was: geo referenced
image layer]
miles
john.staff2222 at gmail.com
Sat Nov 17 05:06:42 EST 2007
Okay, I have traced the problem and it seems to be a bug. Apparently
OpenLayers.Bounds wants the left and bottom to be negative and the right
and top to be positive. If both longs are negative or both lats are
positive it does not work.
works:
new OpenLayers.Bounds(-111.7, -40.3, 111.6, 40.4),
does not work:
new OpenLayers.Bounds(-111.7, 40.3, 111.6, 40.4),
new OpenLayers.Bounds(-111.7, 40.3, -111.6, 40.4),
Mike Adair wrote:
> Try this?
>
> (-111.7, 40.3, -111.6, 40.4)
>
> swapping your min/max x values.
>
> Mike
>
>
>
> miles wrote:
>> 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
>>
>> _______________________________________________
>> Users mailing list
>> Users at openlayers.org
>> http://openlayers.org/mailman/listinfo/users
>>
>>
>
More information about the Users
mailing list