objective-c - 如何从东到西,从南到北显示整个谷歌地图的经纬度?
问题描述
我正在使用谷歌地图颤振插件将此代码(obj-c)翻译成颤振。
if(self.useMap.isOn)
{
CGSize sz = self.mapView.frame.size;
CLLocationCoordinate2D ptl = [self.mapView convertPoint:CGPointMake(0, 0) toCoordinateFromView:self.mapView];
CLLocationCoordinate2D pbr = [self.mapView convertPoint:CGPointMake(sz.width, sz.height) toCoordinateFromView:self.mapView];
[param setFloat:ptl.latitude forKey:@"lat1"];
[param setFloat:ptl.longitude forKey:@"lng1"];
[param setFloat:pbr.latitude forKey:@"lat2"];
[param setFloat:pbr.longitude forKey:@"lng2"];
}
我正在尝试从屏幕上显示的谷歌地图中获取两组 lat 和 lng。
解决方案
推荐阅读
- java - 如何为 MacOS 选择正确的 javafx-base*.jar 变体?
- python - 我将如何在整个页面中查找特定文本?
- javascript - 如何处理javascript中的逻辑运算符
- sql - Bigquery - 使用基于计数的过滤器优化查询
- python - 这个警告是什么意思?“未在 __all__ 中声明”
- flutter - 对flutter_bloc的全局依赖
- database - 如何在 Firestore 索引配置文件中添加单字段豁免
- html - 如何将 html 表单链接到批处理文件?
- javascript - 如何在 Quill(富文本编辑器)中检测和修剪前导/尾随空格?
- javascript - 在 Vue.js 应用程序中使用 JavaScript 更改跨度中的文本颜色