javascript - 通过 GeoJSON 属性在 openstreetmap 上搜索
问题描述
我正在使用带有 openstreetmap 的传单根据我的 GeoJson 文件在地图上显示很多建筑物。
每个建筑物的属性中都有一个 building_num 和 street_num。
这是一栋建筑的样本
{"type":"FeatureCollection","features":[
{"type":"Feature","geometry":{ "type": "Polygon", "coordinates": [ [ [34.4764637423387, 31.5097381691672], [34.4763822185075, 31.5098307499284], [34.4762980308059, 31.5097739757906], [34.4763159180864, 31.5097564450505], [34.4762993367935, 31.5097456416474], [34.4763869581358, 31.5096476632677], [34.4764046321781, 31.5096623954047], [34.4764158129642, 31.5096803119759], [34.476409853397, 31.5096857882327] ] }
,"properties":{"building_num":"13","street_num":"1510","Name":"Name of the building"}}
]}
有什么方法可以使用其属性中的 building_num 和 street_num 搜索建筑物?
解决方案
推荐阅读
- verilog - 如何在 Verilog 中输出一个常数值?
- python - 使用更新的请求参数重定向
- python - 在 pysftp 中构建连接字符串时出现不一致的错误
- amazon-web-services - 将弹性 IP 地址与辅助私有 IPv4 地址关联
- unity3d - Unity 游戏对象的宽度和高度设置为零,但仍正常显示
- javascript - 如何在css中开始滚动时重新创建mac滚动条淡入淡出
- c# - 当广告横幅被键盘向上推时,滚动视图不起作用
- nginx - 尝试为 Rancher 2.X 配置 Nginx - 从 Rancher 1.x 迁移
- javascript - 对不同控制器的 Ajax 调用
- spring-cloud - 在多个 feign 客户端上共享断路器