Hi,
Has any one tried to use OpenStreetMap with OpenLayers in qooxdoo.
I have been using Yahoo Maps without any problem, but OpenLayers would
not work. I followed the code at
map = new qx.ui.embed.Html();
map.addListenerOnce("appear", this.drawMap, this);
drawMap: function(e) {
var lat=51.508;
var lon=-0.118;
var zoom=13;
omap = new OpenLayers.Map ("map", {
controls:[
new OpenLayers.Control.Navigation(),
new OpenLayers.Control.PanZoomBar(),
new OpenLayers.Control.Attribution()],
maxExtent: new
OpenLayers.Bounds(-20037508.34,-20037508.34,20037508.34,20037508.34),
maxResolution: 156543.0399,
numZoomLevels: 19,
units: 'm',
projection: new OpenLayers.Projection("EPSG:900913"),
displayProjection: new OpenLayers.Projection("EPSG:4326")
} );
layerTilesAtHome = new OpenLayers.Layer.OSM.Osmarender("Osmarender");
omap.addLayer(layerTilesAtHome);
if( ! ymap.getCenter() ){
var lonLat = new OpenLayers.LonLat(lon, lat).transform(new
OpenLayers.Projection("EPSG:4326"), omap.getProjectionObject());
omap.setCenter (lonLat, zoom);
}
},
I got a blank space instead of the map, no error messages in the debug console.
Any clue?
Regards,
Karthik
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel