如何在 mapbox 中为 Geoserver 图层设置动画?
How to animate a Geoserver layer in mapbox?
我在我的 Android 应用程序上使用 Mapbox SDK,我想显示来自我的地理服务器的图层。
我选择了 WMS 格式并且效果很好。
下一步是通过提供每 X 秒滴答一次的时间 属性 并更新图层图块,为该图层设置动画以显示延时。
WMS 支持time 属性 请求特定时间的TileSet,但我不知道如何在MapBox 中设置该时间并更新地图TileSet。
例子是经典的天气应用。
如果 WMS 不是正确的选择,如果地理服务器支持,我可以选择其他格式。
使用 Android 的 Mapbox Maps SDK,您可以通过几种不同的方式为地理参考图像制作动画。一种是使用 ImageSource
(which allows a georeferenced raster image to be shown on the map), and then follow this example 来显示时间流逝。
要继续使用 WMS 框架,您可以使用 this example to show a WMS source (which it sounds like you have already done successfully). The Mapbox Maps SDK for Android does not have an underlying mechanism for representing updates in time, but you could query your GeoServer and use the results in conjunction with a Runnable
,类似于我链接的第一个示例中的 RefreshImageRunnable
。
我在我的 Android 应用程序上使用 Mapbox SDK,我想显示来自我的地理服务器的图层。
我选择了 WMS 格式并且效果很好。
下一步是通过提供每 X 秒滴答一次的时间 属性 并更新图层图块,为该图层设置动画以显示延时。 WMS 支持time 属性 请求特定时间的TileSet,但我不知道如何在MapBox 中设置该时间并更新地图TileSet。 例子是经典的天气应用。
如果 WMS 不是正确的选择,如果地理服务器支持,我可以选择其他格式。
使用 Android 的 Mapbox Maps SDK,您可以通过几种不同的方式为地理参考图像制作动画。一种是使用 ImageSource
(which allows a georeferenced raster image to be shown on the map), and then follow this example 来显示时间流逝。
要继续使用 WMS 框架,您可以使用 this example to show a WMS source (which it sounds like you have already done successfully). The Mapbox Maps SDK for Android does not have an underlying mechanism for representing updates in time, but you could query your GeoServer and use the results in conjunction with a Runnable
,类似于我链接的第一个示例中的 RefreshImageRunnable
。