On Jan 14, 2008 8:08 PM, Linda Rawson <[EMAIL PROTECTED]> wrote:
> As far as displaying the mouseposition I added this to that code.
> if (this.map.projection = "EPSG:900913" ) {
>
> var v_lonLat =
> OpenLayers.Layer.SphericalMercator.inverseMercator(lonLat.lon, lonLat.lat);
>
> lonLat.lon = v_lonLat.lon;
>
> lonLat.lat = v_lonLat.lat;
>
> v_lonLat = null;
>
> }
>
>
>
> var digits = parseInt(this.numdigits);
>
> var newHtml =
>
> this.prefix + " Lon: " +
>
> lonLat.lon.toFixed(digits) +
>
> this.separator + " Lat: " +
>
> lonLat.lat.toFixed(digits) +
>
> this.suffix;Linda
>In this case (assuming trunk is used), it is much easier just to set the displayProjection variable on the map object. -- Regards, Thomas Wood (Edgemaster) _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
