Oops, my problem. I had a classic syntax problem.

Cheers,

Brad Spencer


-----Original Message-----
From: Linda Rawson [mailto:[EMAIL PROTECTED]
Sent: Thursday, 13 December 2007 10:01 AM
To: [EMAIL PROTECTED]
Cc: openlayers users
Subject: Re: [OpenLayers-Users] sphericalMercator

I use it all the time.


I just haven't gotten the overview map to work with it.

Here is my code:

    var options = {
                projection: "EPSG:900913",
                units: "m",
                maxResolution: 156543.0339,
    numZoomLevels: 18,
                maxExtent: new OpenLayers.Bounds(-20037508, -20037508,
                                                 20037508, 20037508.34)
            };

    // avoid pink tiles
    OpenLayers.IMAGE_RELOAD_ATTEMPTS = 3;
    OpenLayers.Util.onImageLoadErrorColor = "transparent";
    map = new OpenLayers.Map('map',options);
    sat_wms = new OpenLayers.Layer.Google(
                "Layer",
                {'sphericalMercator': true}
    );
    map.addLayer(sat_wms);
    map.addControl(new OpenLayers.Control.MousePosition());
    map.addControl(new OpenLayers.Control.LayerSwitcher());
    map.addControl(new OpenLayers.Control.Scale());
    map.zoomToScale(55468034.09051751);

Linda

On Dec 12, 2007 3:49 PM, bradleyspencer < [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> > wrote:
List,

I am trying to test the GoogleMaps and sphericalMercator but I must have
something wrong. Has anyone successfully used this stuff?

See http://demo.cubewerx.com.au/mercator.html

Cheers,

Brad Spencer



_______________________________________________
Users mailing list
[email protected] <mailto:[email protected]>
http://openlayers.org/mailman/listinfo/users

_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to