Hi Mohammed,
A minimalistic wrapper for OpenLayers with an OpenStreetMap map looks like this:
class WOpenLayers: public WContainerWidget
{
public:
WOpenLayers(WContainerWidget *parent):
WContainerWidget(parent)
{
wApp->require("http://www.openlayers.org/api/OpenLayers.js");
resize(640, 480);
std::stringstream ss;
ss << "var map = new OpenLayers.Map('" + id() + "');"
"var osm = new OpenLayers.Layer.OSM();"
"map.addLayer(osm);"
"map.zoomToMaxExtent();";
doJavaScript(ss.str());
}
};
See also http://redmine.emweb.be/boards/2/topics/1838
BR,
Wim.
2011/4/20 Mohammed Rashad <[email protected]>:
> yes our application also support OpenStreetMap,google,anyWMS,postgis,bing
> and so on
> Now i am loading the library using require. I need to create the Wt version
> of OpenLayers for that I need help Wt developers
>
> On Wed, Apr 20, 2011 at 5:53 PM, <[email protected]> wrote:
>>
>> Please consider handling OpenStreetmap with the same priority as Google
>> Maps then.
>> Unfortunately this is not done too often.
>>
>> With kind regards,
>> Frank
>>
>>
>>
>>
>> From: Mohammed Rashad <[email protected]>
>> To: [email protected]
>> Date: 20.04.2011 14:20
>> Subject: [Wt-interest] Wt Wrapper
>>
>>
>>
>> I had a JavaScript library called OpenLayers. I would like to develop a
>> Wt
>> Wrapper for that library. Can anyone throw some light?
>> How JQuery library became a part of Wt. In the same way I would like
>> create WtOpenLayers.
>>
>>
>> I need Wt geeks help ....
>>
>> --
>> Thanks && Regards
>> Rashad
>>
>> ------------------------------------------------------------------------------
>>
>> Benefiting from Server Virtualization: Beyond Initial Workload
>> Consolidation -- Increasing the use of server virtualization is a top
>> priority.Virtualization can reduce costs, simplify management, and improve
>> application availability and disaster protection. Learn more about
>> boosting
>>
>> the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
>> _______________________________________________
>> witty-interest mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/witty-interest
>>
>>
>
>
>
> --
> Thanks && Regards
> Rashad
>
> ------------------------------------------------------------------------------
> Benefiting from Server Virtualization: Beyond Initial Workload
> Consolidation -- Increasing the use of server virtualization is a top
> priority.Virtualization can reduce costs, simplify management, and improve
> application availability and disaster protection. Learn more about boosting
> the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
> _______________________________________________
> witty-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>
>
------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today. Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest