[OpenLayers-Users] migrate from 2.4 to 2.6 and select

Lance Dyas lancelot at inetnebr.com
Fri May 23 18:57:29 EDT 2008


Wendell Turner wrote:
> The javascript that gdal2tiles.py generates references
> www.openlayers.org/api/2.4/OpenLayers.js, however, that
> doesn't appear to have SelectFeature.  Was SelectFeature
> added after 2.4?
>
> If I change the 2.4 to 2.6 it produces this error:
>   Error: this.projection.getUnits is not a function
>   Source File: http://www.openlayers.org/api/2.6/OpenLayers.js Line: 772
>
> If I change it to reference my own copy from the
> distribution it gets this error:
>    Error: this.projection.getUnits is not a function
>    Source File: http://delta.rho.net/open/lib/OpenLayers/Layer.js Line: 489
>
> What do I need to do to upgrade from 2.4 to 2.6 (so I can
> use SelectFeature)?
>
> Thanks,
>
> Wendell
>   
several things ... I can recall off the top of my head.
Well the html that gdal2tiles creates includes a geturl override that is 
no longer needed
Straight TMS and specifying the version as "."  and the baseurl / 
layername as "" ...

that will get it started...



More information about the Users mailing list