My data are in EPSG:3071 (Wisconsin Transverse Mercator), units are in
meters. WMS SRS is advertised as "EPSG:3857 EPSG:4269 EPSG:4326
EPSG:900913 EPSG:3071".

My OL construction is really very simple --

            var gphy = new OpenLayers.Layer.Google(
                "Google Terrain",
                { type: G_PHYSICAL_MAP }
            );

            var lyr = new OpenLayers.Layer.WMS(
                "Layer Name",
                "http://wmserver";,
                {
                    layers: "layer_name",
                    map_imagetype: "agga",
                    transparent: true,
                    isBaseLayer: false
                },
                {
                    reproject: true,
                    visibility: visibility,
                    singleTile: true
                }
            );

            map.addLayers([gphy, lyr]);

            .. add LayerSwitcher, MousePosition, Scale, Measure ..

            map.setCenter(
                new OpenLayers.LonLat(lon, lat),
                zoom
            );

I am experiencing two problems --

One, my coords are being displayed in decimal degrees. I really want
to display them in meters or kms.

Two, in my measure control, the mouse cursor is offset by about 100
pixels or so below where the line or the poly actually draws. This
offset decreases toward the top of the map, and increases toward the
bottom of the map.

I have seen reports such as [1] and [2] (although, I am not using
IE... I am experiencing this with Firefox).

Finally, I have a question -- when I draw a polygon using the measure
control, I get the area (in km^2), but I would also like the actual
mouse clicks in meters. Is there a way to capture the mouse clicks,
possibly as a JavaScript array?

[1] http://www.mail-archive.com/[email protected]/msg08829.html
[2] http://trac.openlayers.org/ticket/1610


-- 
Puneet Kishor
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to