问题标签 [gwt-openlayers]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
openlayers - 使用 OpenLayers.Renderer.symbol 绘制形状的技巧
我必须在 OpenLayers 地图上绘制复杂的形状来表示。
在网上冲浪时,我发现许多链接定义了一个点集合,用于绘制各种形状,如箭头、闪电等......
但没有人解释如何绘制这些形状
例子,
象征着教堂的象征...
象征着闪电符号...
但是这些点是什么意思呢?如果我必须绘制一个标注的形状,那么我应该如何绘制它?
gwt - How draw 3D objects on gwt-openlayers map using ArcGis and KML? Or with any other approach?
Is it possible to create gwt-openlayers
map with 3D objects on it?
I know that
KML layers can be used for drawing 3D objects and supported by gwt-openlayers
. And I also know that gwt-openlayers
can draw WMS and WFS layers from remote ArcGis web-service.
Questions:
- In the KML example I mentioned above some local static .kml file used. I need to show moving 3D objects on the map. Is it possible to deploy KML web service on arcgis which takes coordinates as locates 3D models to taken coordinates?
- Is there any working example of using KML in gwt-openlayers from web-service but not from local file? If I replace
protocolOptions.setUrl("lines.kml")
in the example toprotocolOptions.setUrl("http:web-service-url")
will it work? - Is there any online KML services which I can use to check my app?
gwt - GWT-OpenLayers:同时导航和框选
考虑GWT-OpenLayers 展示中的这个示例。该示例分别实现了导航和框选择功能。如何同时实现导航和框选择功能?即,我仅在按下“Shift 键”或“Ctrl 键”时进行选择,并在其余时间导航。
gwt - GWT-OpenLayers:在图层上突出显示不同样式的点
我在一个图层上有几个点,所有点都可能有不同的样式与它们相关联。所以我在做
在我进行选择(即单击该点)之前,一切正常。当我进行选择时,这些点没有突出显示。如果我从 中删除pointStyle ,则该点会突出显示VectorFeature
,即
我尝试StyleMap
在图层上使用,但最终得到了相同的结果。
这个问题的解决方案可能是什么?
openlayers - 如何在openlayers中绘制带半径的圆
我想在以公里为单位的特定半径的开放层中画一个圆。与特定地理点的中心?我遵循与http://demo.gwt-openlayers.org/gwt_ol_showcase/GwtOpenLayersShowcase.html?example=Draw%20Regular%20Polygon%20Example相同的方法,但我想使用预定义的值自动绘制。
gwt-openlayers - 无法获取所需的 gwtopenlayers jar
如何获取 org.gwtopenmaps.demo.openlayers.client.basic 和 org.gwtopenmaps.demo.openlayers.client.components.store 包的 jars。我想将 AbstractExample 和 ShowcaseExampleStore 类导入我的 java 文件。</ p>
gwt - 自定义时间选择器
如何在我的 GWT RPC 应用程序中创建自己的时间选择器。我使用了来自 traccar 的标准时间选择器。但它使用了一个时间间隔为 30 分钟的下拉时间字段。我想要它为 1 分钟的时间间隔。我必须在我的 Ui Binder 类中进行哪些更改?
openlayers - openlayers 多边形显示差异而不是联合
在 OpenLayers 中,我使用以下形式的代码创建了一个由两个 LinearRing 对象组成的多边形(这是在 Java+GWT 中,但同样的原则适用于 JS):
当我在地图上查看这一层时,如果由 points1 和 points2 定义的多边形重叠,我会看到一个洞:
多边形孔 http://www.jackhollow.co.uk/misc/polygon.png
我看到了两个多边形的“异或”,而我想看到它们的“或”,即中间的那个洞用绿色填充。
我该怎么做呢?我确定这只是 Openlayers 中的一个显示问题,但我在任何地方都找不到控制它的标志。
原来的两个多边形如下:
多边形孔 http://www.jackhollow.co.uk/misc/polygon2.png
如果在单个图层上一起显示,它们会重叠,但 Openlayers 不会填充相交部分。
gwt - Google 图层与 gwt-openlayers 出现错误
我使用 Gwt 2.6.1(带有活动和地点框架)和 gwt-openlayers 1.0
当我使用 google 层(Google 或 GoogleV3 实例)作为基础层时,问题就出现了。地图出现,但我无法缩放或拖动,并且显示中缺少 openlayers 控件(缩放按钮、图层切换器、比例线)。按下 F5(刷新)后,问题消失了,一切正常。使用 Bing baselayer 不会出现这些问题。
情况很复杂,但可以重现:您需要 3 页。
- 首先:这是欢迎页面
- 第二:它可以是空的。它有一个地方标记:“secondPage”
- 第三:包含地图的页面(#mapPage)
当您在浏览器中打开应用程序时,您可以看到欢迎页面。然后在 url (#secondPage) 之后键入第二页的令牌。显示第二页后,在基本 url (#mapPage) 之后键入第三页的令牌。如果您遵循这种情况,就会出现上述问题。
第三页的ui.xml:
第三页的视图:
测试谷歌类: