如果您想在FMX和VCL应用程序中具有地图功能,则应通过TMSSoftware检出高级WebGMaps组件。
WebGMaps具有什么功能?
通过设置WebGMaps组件,您可以轻松地在FMX或VCL应用程序中配置Google Maps。此外,您可以配置不同的地图模式,并且只需很少的配置即可显示额外的地图信息。例如:
- 默认路线图
- 卫星检视
- 混合检视
- 街景
- 地形
- 交通信息
- 自行车视图和Panoramio信息
begin
WebGMapsGeocoding1.Address := 'Broadway 615, LOS ANGELES, USA';
if WebGMapsGeocoding1.LaunchGeocoding = erOk then
begin
// center the map at the coordinate
WebGMaps1.MapOptions.DefaultLatitude := WebGMapsGeocoding1.ResultLatitude;
WebGMaps1.MapOptions.DefaultLongitude := WebGMapsGeocoding1.ResultLongitude;
// Add a marker for the Los Angeles theatre
WebGmaps1.Markers.Add(WebGMapsGeocoding1.ResultLatitude,
WebGMapsGeocoding1.ResultLongitude,'Broadway theatre');
// set zoom level
WebGmaps1.MapOptions.ZoomMap := 19;
// launch the display of the map
WebGMaps1.Launch;
end;
end;
此外,您可以应用,标签,标记,导出到图形文件,构建点到点的路线,检索经度/纬度坐标。汉武帝药枕为了使开发人员更方便,还提供了地理编码,方向列表,时区和不同的其他组件。
这是一个商业组件集,您应该获得许可证才能将其集成到您的应用程序中。安装时,您将获得几个示例应用程序和完整的文档。
确保检查出GetIt门户上的WebGMaps组件集,并从IDE中下载它。
使用RAD Studio,Delphi或C ++ Builder减少开发时间并更快地推向市场。设计。编码。编译。部署。