主题问题:“谷歌地图” https://knowledge.亚搏在线safe.com/questions/topics/single/65260.html网站 “谷歌地图”主题的最新问题 在Google静态地图中居中并缩放(设置比例)到多边形 https://knowledge.亚搏在线safe.com/questions/72349/center-and-zoom-set-scale-to-polygon-within-google.html

我现在亚搏在线的工作流程设置为对属性边界进行一些计算,然后能够在航空图像上显示该属性。我陷入困境的地方是能够找到一种方法来设置谷歌静态地图的比例(缩放级别),使多边形居中并处于适当的缩放级别。

我正在使用“Google静态地图获取器”转换器,让所有的工作都能够使多边形在Google地图中居中,只想找到一种方法来设置一个比例级别,让它调整到不同大小的多边形。

变焦 程度 规模 谷歌地图 静态映射 结婚,2018年6月13日19:23:52格林尼治标准时间 Apple 23
写入gmap文件 https://knowledge.亚搏在线safe.com/questions/69241/writing-to-gmap-file.html网站

有没有人有直接写GMAP文件的经验?

我可以写入KML,然后导入到GMAP,GMAP创建GMAP文件,但我想知道是否可以简单地写入GMAP并自动更新层。

谢谢

SEB

KML 文件夹 写作 谷歌地图 坐,2018年4月28日09:08:45格林威治标准时间 塞布金斯利
在geometryextractor和geometryreplacer中扩展“google maps polyline decoder” https://knowledge.亚搏在线safe.com/idea/65263/extend-geometryextractor-and-geometryreplacer-with.html

在Google Maps Directions API中,可以将一个坐标到另一个坐标的路径点作为折线:

https://developers.google.com/maps/documentation/directions网站/

请求示例:

https://maps.googleapis.com/maps/api/directions/json?起点=46.9745777,15.6211898;终点=46.9752438,15.6144307

Google返回一个JSON(因为我请求了一个JSON),其中包含一些信息——包括编码格式的航点(参见第63行,87和101):

“geocoded_waypoints”:[“geocoder_status”:“确定”,“place_id”:“eiplaxjjagjy2hlcibtdhiuidk5lteymiwgoda4msw5zzdgvycmvpy2g”,“types”:[“街道地址”],“geocoder_status”:“确定”,“place_id”:“ej1hdwdnaxr6iejlcmd3zwcgntqsidgodeguglyy2hpbmcgyw0gvhjhdwjlbmjlccmimowc3rlcnjlawno”,“types”:[“街道地址”]],“Routes”:[“Bounds”:“Northeast”:“Lat”:46.9774785,“液化天然气”:15.6212531,“西南”:“纬度”:46.9746073,“液化天然气”:15.6144114,“版权”:“kartendaten©2018谷歌”,“legs”:[“Distance”:“Text”:“0,8公里”,“值”:811,“duration”:“text”:“1分钟”,“值”:81,“结束地址”:“Guggitz Bergweg 54,8081特劳本堡皮林,“斯特里奇”“end_location”:“lat”:46.9752518,“液化天然气”:15.6144114,“起始地址”:“Kirchbacher str.99—122,8081,“斯特里奇”“start_location”:“lat”:46.9746073,“液化天然气”:15.6212531,“steps”:[“Distance”:“text”:“0,4公里”,“值”:361,“duration”:“text”:“1分钟”,“值”:20,“end_location”:“lat”:46.9774785,“液化天然气”:15.61923,“html_instructions”:“auf\u003c b\u003echirchbacher str.\u003c/b\u003e/\u003c b\u003eb73\u003c/b\u003e nach\u003c b\u003enordwesten\u003c/b\u003e richtung\u003c b\u003egitz bergweg\u003c/b\u003e starten”,“polyline”:“points”:“ivu gy_j~asr]rubh@@rg@pgbc@ra@tun_alay^mpmrq\\ir”,“start_location”:“lat”:46.9746073,“液化天然气”:15.6212531,“行驶模式”:“驾驶”,“Distance”:“Text”:“0,4公里”,“值”:450,“duration”:“text”:“1分钟”,“值”:61,“end_location”:“lat”:46.9752518,“液化天然气”:15.6144114,“html_instructions”:“\u003c b\u003elinks\u003c/b\u003e abbiegen auf\u003c b\u003egitz bergweg\u003c/b\u003e”,“机动”:“左转”,“polyline”:“points”:“ghv gesi~alh@x`czafhp@hbfa bjpnazbr@fapt\\z”,“start_location”:“lat”:46.9774785,“液化天然气”:15.61923,“行驶模式”:“驾驶”],“traffic_speed_entry”:[],“via摼waypoint”:[]],“概述折线”:“点”:“ivu gy j~asr]rqd@o@teah@u@f@alay^[d@[p@lh@x`czafhp@hbrancnazbr@fan@p@”,“summary”:“Kirchbacher str./b73 und Guggitz Bergweg”,“警告”:[],“waypoint_order”:[]],“status”:“确定”

看看谷歌的算法来编码这个,因此,在向另一个方向涂鸦步骤时,应该可以解码字符串:

https://developers.google.com/maps/documentation/utilities/polylinealgorithm

在此页面上有一个用于解码多段线字符串的javascript代码示例:
https://stackoverflow.com/questions/40877840/google-maps-api-draw-a-route-using-points-of-a-polyline

但不幸的是,JavaScript中不可能包含javascript库:

https://maps.googleapis.com/maps/api/js?库=几何

因为Javascript似乎不完全支持JavaScript,通过几何抽取器或几何替换器进行解码是非常好的。

已经有很多编码(geometryextractor>参数>geometry编码):

https://docs.亚搏在线safe.com/fme/2017.1/html/fme_desktop_documentation/fme_transformers/transformers/geometryextractor.htm(https://docs.safe.com/fme/2017.1/html/fme_桌面_文档/fme_trans

应添加“谷歌地图多段线解码器”。

几何量角器 几何置换器 JavaScript调用程序 谷歌地图 谷歌地图方向 谷歌地图方向API 周一,2018年3月5日格林尼治标准时间15:43:16 格蒂茨