Hey Calvin,

2010/8/16 Calvin <[email protected]>:
>
>>
>> Do you have a complete compilable example of both issues?
>>
> Hi overmindDL1
>
> Sorry for the delay--I was out the whole of last week. Anyway, the easiest
> test case would be to use the blog.wt example that is available from the Wt
> 3.1.3 package. In this case, I have added the following code to instantiate
> the WGoogleMap widget...somewhere near the bottom (for me, this was at line
> 102) within the logout() function in blogview.c:
>
>  WGoogleMap * goog = new WGoogleMap(items_);
>  goog->enableGoogleBar();
>  goog->resize(400,400);
>  goog->setCenter(WGoogleMap::Coordinate(10.0, 10.0), 3);
>
> Enabling this code breaks the blog example in the way as I have described in
> the original post.

I tried this, with the following diff against git master (wt 3.1.4).
It seems to work fine in IE, Firefox and Chrome (5.0.375). Perhaps you
are doing something slightly different ?

Regards,
koen

diff --git a/examples/blog/view/BlogView.C b/examples/blog/view/BlogView.C
index ad49b49..1eec2c3 100644
--- a/examples/blog/view/BlogView.C
+++ b/examples/blog/view/BlogView.C
@@ -22,6 +22,8 @@
 #include <Wt/WTemplate>
 #include <Wt/WText>

+#include <Wt/WGoogleMap>
+
 #include <Wt/Dbo/backend/Sqlite3>

 #include <boost/algorithm/string/classification.hpp>
@@ -303,6 +305,11 @@ private:
       items_->clear();
       profile_ = 0;

+      WGoogleMap *goog = new WGoogleMap(items_);
+      goog->enableGoogleBar();
+      goog->resize(400,400);
+      goog->setCenter(WGoogleMap::Coordinate(10.0, 10.0), 3);
+
       if (path.empty())
        showPosts(session_.find<Post>
                  ("where state = ? "

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to