Hello Karthik,
Daniel, one of our core developers, has recently worked with maps and he
takes care of your problem. I added meanwhile an enhancement issue for
adding a demo showing the integration of different types of maps:
http://bugzilla.qooxdoo.org/show_bug.cgi?id=2677
Regards,
Martin
Karthik-4 wrote:
>
> 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
>
>
--
View this message in context:
http://n2.nabble.com/Openstreet-map-tp3429643p3429970.html
Sent from the qooxdoo mailing list archive at Nabble.com.
------------------------------------------------------------------------------
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