English 中文(简体)
• 如何将谷歌之首3纳入SartGWT?
原标题:how to integrate GoogleMap APIV3 into SmartGWT?

I am integrating gwt-maps-3.8.0-pre1.zip into aa application which using gwt-platform MVP and smartgwt. i have a mainpresenter and nested a presenterwidget into it. VLayout is used as parent s canvas and using HTMLPane as nested googlemap s canvas. GoogleMap can t be displayed correctly.but when i using firebug to monitor http data,I found the googlemap s information has been returned to browser,but i don t know why it can t be displayed correctly? anyone can help me? thanks!

问题回答

You should ensure that your module s entry html includes the <script> tag for maps:

<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false"></script> 

既然你确实看到了“角图”数据,我会猜测,你正在找回“灯塔”,问题可能在于信封的结构。 在所审查的少数图象一和图一中,该地图最大化,并自封的<代码><div>在条目中:

<body style="margin:0px;">
  <div id="map_canvas" style="width:100%; height:100%">Map is loading...</div>
</body>

有了深厚的集装箱,浏览器会把一些东西拖到零。 利用消防局或其他任何电工局视察员,从<条码>和>;文件与“>;、div>>的地图标。 检查是否有任何高浓度特性为0px,并尽可能利用CSS或GWT方法实现这些集装箱物体的最大化。

请报告你的调查结果;我确信,在布局铺设地图将是今后的一个共同目标,我们将从你所学到的东西中受益。





相关问题
Dependency Injection for Presenter

I have a Presenter that takes a Service and a View Contract as parameters in its constructor: public FooPresenter : IFooPresenter { private IFooView view; private readonly IFooService service;...

Convert to list a object with anonymous type

I need convert to list a object with anonymous type because when i databind the gridview i get "The data source does not support server-side data paging" or How i can solve this? object o = ...

MVP Connecting The Triads

I have a main form with a left and right pane. The left pane displays a list of customers and I have a button the user clicks to show orders. When the user clicks this button I want to show the order ...

Where do I store MVC/MVP and Service layer unit tests?

In MVC/MVP style applications that have Controller/Presenter classes within the Client Application assembly and then a Services layer assembly containing Service classes, where do people recommend ...

MVP, design question

I working on a MVP designed application and have some design questions. When writing code in the presenter-layer how should the communication go between different presenters/views? Lets say I have a ...

Session State with MVP and Application Controller patterns

I ve created an MVP (passive view) framework for development and decided to go for an Application Controller pattern to manage the navigation between views. This is targeted at WinForms, ASP.NET and ...

ASP.NET MVP Injecting Service Dependency

I have an ASP.NET page that implements my view and creates the presenter in the page constuctor. Phil Haack s post providing was used as the starting point, and I ll just the examples from the post ...

热门标签