【发布时间】:2019-05-22 11:37:22
【问题描述】:
我正在尝试构建一个地图应用程序,该应用程序在数据库中使用地址名称并在传单地图中显示标记。我遇到了传单 esri 插件,但不知道如何使用代码。谁能教我如何从地理编码功能中提取结果(经度和纬度)并绘制标记?谢谢!
地理编码功能:
L.esri.Geocoding.geocode(<Object> options)
结果:
{results: [
{
latlng: L.LatLng,
text: 'Formatted Address',
score: 100, // certainty ranking of the match
properties: {
// additional info like specific address components (Country Code etc.)
}
}
]
}
http://esri.github.io/esri-leaflet/api-reference/tasks/geocode.html
【问题讨论】:
标签: javascript leaflet geocoding esri