小编Max*_*axi的帖子

Google地图 - 来自extern json的多个标记

我必须在谷歌地图上添加多个标记,但数据在extern json文件中.

目前我正在这样运行它

var json = [
  {
    "title": "Stockholm",
    "lat": 59.3,
    "lng": 18.1,
    "description": "Stockholm is the capital and the largest city of Sweden and constitutes the most populated urban area in Scandinavia with a population of 2.1 million in the metropolitan area (2010)"
  },
  {
    "title": "Oslo",
    "lat": 59.9,
    "lng": 10.8,
    "description": "Oslo is a municipality, and the capital and most populous city of Norway with a metropolitan population of 1,442,318 (as of 2010)."
  },
  {
    "title": "Copenhagen", …
Run Code Online (Sandbox Code Playgroud)

javascript ajax jquery json

9
推荐指数
1
解决办法
4万
查看次数

标签 统计

ajax ×1

javascript ×1

jquery ×1

json ×1