Ticket #2075 (closed bug: fixed)
google layer issues in late rendered maps
| Reported by: | pgiraud | Owned by: | euzuro |
|---|---|---|---|
| Priority: | critical | Milestone: | 2.8 Release |
| Component: | Layer.Google | Version: | 2.8 RC2 |
| Keywords: | Cc: | ||
| State: | Complete |
Description
I tried to adapt the late-render.html example to make it work with a google layer, but the tiles are not correctly displayed (only half of the map is shown).
var map, layer;
function init(){
var options = {
projection: new OpenLayers.Projection("EPSG:900913"),
displayProjection: new OpenLayers.Projection("EPSG:4326"),
units: "m",
maxResolution: 156543.0339,
maxExtent: new OpenLayers.Bounds(-20037508.34, -20037508.34,
20037508.34, 20037508.34)
};
map = new OpenLayers.Map(options);
layer = new OpenLayers.Layer.Google("Google", {sphericalMercator:true});
map.addLayer(layer);
map.render("container_id");
map.zoomToExtent(
new OpenLayers.Bounds(
68.774414, 11.381836, 123.662109, 34.628906
).transform(map.displayProjection, map.projection)
);
}
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

