[Users] Google-Baselayer-Issue
Kai Volland
kaivolland at web.de
Tue Oct 4 16:55:25 CEST 2011
Hi Users,
i've some problems with my google base layer.
I'm using the v3 api.
Two of my wms just work fine with the google-layer.
The third one returns an error message, visible instead of the layer:
"could not get retrieve any sources: no image returned from source wms"
The second problem is, that with the google layer my wfs don't work correct.
Every point is located near Sao Tomé and Principé. (probably 0°E,0°N)
I know that there muste be a problem with the coord.-tranformation but
i've know idea what it is.
*simple google layer code:*
var gphy = new OpenLayers.Layer.Google(
"Google Physical",
{type: google.maps.MapTypeId.TERRAIN}
);
*map-options:*
var map = new OpenLayers.Map(options);
// Options
var options = {
controls: [],
projection: new OpenLayers.Projection("EPSG:900913"),
displayProjection: new OpenLayers.Projection("EPSG:4326"),
units: "m",
maxResolution: "auto",
allOverlays: false,
numZoomLevels: 19,
maxExtent: new
OpenLayers.Bounds(-75.86,44.05,-74.526,45.016).transform(new
OpenLayers.Projection("EPSG:4326"), new
OpenLayers.Projection("EPSG:900913"))
//stateId: "map",
//prettyStateKeys: true // for pretty permalinks
};
Maybe anyone can help me.
Kind regards,
Kai
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20111004/96da2591/attachment.htm
More information about the Users
mailing list