Leaflet embed

{
  "type": "FeatureCollection",
  "features": [
    {
      "type": "Feature",
      "properties": {
        "name": "Marker 1",
        "description": "This is the first marker"
      },
      "geometry": {
        "type": "Point",
        "coordinates": [-122.4194, 37.7749]
      }
    },
    {
      "type": "Feature",
      "properties": {
        "name": "Marker 2",
        "description": "This is the second marker"
      },
      "geometry": {
        "type": "Point",
        "coordinates": [-122.4783, 37.8199]
      }
    }
  ]
}
[
  {
    "lat": 47.6062,
    "lng": -122.3321,
    "popup": "<b>Seattle</b><br>The Emerald City"
  },
  {
    "lat": 45.5152,
    "lng": -122.6784,
    "popup": "<b>Portland</b><br>The City of Roses"
  }
]
[
  {
    "lat": 47.6062,
    "lng": -122.3321,
    "popup": "<b>Seattle</b><br>The Emerald City"
  },
  {
    "lat": 45.5152,
    "lng": -122.6784,
    "popup": "<b>Portland</b><br>The City of Roses"
  }
]
{
  "mapOptions": {
    "center": [37.7749, -122.4194],
    "zoom": 12
  },
  "tileLayer": {
    "url": "https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}",
    "options": {
      "attribution": "Tiles &copy; Esri"
    }
  },
  "markers": [
    {
      "lat": 37.7749,
      "lng": -122.4194,
      "popup": "<h3>San Francisco</h3><p>A beautiful city by the bay</p>"
    }
  ]
}
{
  "tileLayer": {
    "url": "https://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}{r}.png",
    "options": {
      "attribution": "© OpenStreetMap contributors, © CARTO",
      "subdomains": "abcd",
      "maxZoom": 19
    }
  },
  "markers": [
    {
      "lat": 37.7749,
      "lng": -122.4194,
      "popup": "<h3>San Francisco</h3><p>The cultural, commercial, and financial center of Northern California</p>"
    },
    {
      "lat": 37.8044,
      "lng": -122.2712,
      "popup": "<h3>Oakland</h3><p>The largest city in the East Bay region of the Bay Area</p>"
    },
    {
      "lat": 37.3382,
      "lng": -121.8863,
      "popup": "<h3>San Jose</h3><p>The economic, cultural and political center of Silicon Valley</p>"
    },
    {
      "lat": 37.8716,
      "lng": -122.2727,
      "popup": "<h3>Berkeley</h3><p>Home to the University of California, Berkeley</p>"
    },
    {
      "lat": 37.4419,
      "lng": -122.1430,
      "popup": "<h3>Palo Alto</h3><p>Home to Stanford University</p>"
    },
    {
      "lat": 37.3861,
      "lng": -122.0839,
      "popup": "<h3>Mountain View</h3><p>Home to many tech companies including Google</p>"
    },
    {
      "lat": 37.3541,
      "lng": -121.9552,
      "popup": "<h3>Santa Clara</h3><p>Home to Intel and Santa Clara University</p>"
    },
    {
      "lat": 37.5485,
      "lng": -121.9886,
      "popup": "<h3>Fremont</h3><p>Fourth-largest city in the Bay Area by land area</p>"
    },
    {
      "lat": 37.6688,
      "lng": -122.0808,
      "popup": "<h3>Hayward</h3><p>The sixth-largest city in the Bay Area</p>"
    },
    {
      "lat": 37.9358,
      "lng": -122.3477,
      "popup": "<h3>Richmond</h3><p>Home to the Richmond Shipyards</p>"
    },
    {
      "lat": 37.9102,
      "lng": -122.0652,
      "popup": "<h3>Walnut Creek</h3><p>Located in the East Bay region at the foot of Mount Diablo</p>"
    },
    {
      "lat": 37.5630,
      "lng": -122.3255,
      "popup": "<h3>San Mateo</h3><p>Located on the San Francisco Peninsula</p>"
    },
    {
      "lat": 37.4852,
      "lng": -122.2364,
      "popup": "<h3>Redwood City</h3><p>The county seat of San Mateo County</p>"
    }
  ]
}
{
  "mapOptions": {
    "center": [37.55, -122.2],
    "zoom": 9,
    "minZoom": 8,
    "maxZoom": 14
  },
  "tileLayer": {
    "url": "https://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}{r}.png",
    "options": {
      "attribution": "© OpenStreetMap contributors, © CARTO",
      "subdomains": "abcd",
      "maxZoom": 19
    }
  },
  "markers": [
    {
      "lat": 37.7749,
      "lng": -122.4194,
      "popup": "<h3>San Francisco</h3><p>The cultural, commercial, and financial center of Northern California</p>"
    },
    {
      "lat": 37.8044,
      "lng": -122.2712,
      "popup": "<h3>Oakland</h3><p>The largest city in the East Bay region of the Bay Area</p>"
    },
    {
      "lat": 37.3382,
      "lng": -121.8863,
      "popup": "<h3>San Jose</h3><p>The economic, cultural and political center of Silicon Valley</p>"
    },
    {
      "lat": 37.8716,
      "lng": -122.2727,
      "popup": "<h3>Berkeley</h3><p>Home to the University of California, Berkeley</p>"
    },
    {
      "lat": 37.4419,
      "lng": -122.1430,
      "popup": "<h3>Palo Alto</h3><p>Home to Stanford University</p>"
    },
    {
      "lat": 37.3861,
      "lng": -122.0839,
      "popup": "<h3>Mountain View</h3><p>Home to many tech companies including Google</p>"
    },
    {
      "lat": 37.5485,
      "lng": -121.9886,
      "popup": "<h3>Fremont</h3><p>Fourth-largest city in the Bay Area by land area</p>"
    },
    {
      "lat": 37.6688,
      "lng": -122.0808,
      "popup": "<h3>Hayward</h3><p>The sixth-largest city in the Bay Area</p>"
    },
    {
      "lat": 37.5630,
      "lng": -122.3255,
      "popup": "<h3>San Mateo</h3><p>Located on the San Francisco Peninsula</p>"
    }
  ]
}
{
  "useCluster": true,
  "clusterOptions": {
    "disableClusteringAtZoom": 16,
    "spiderfyOnMaxZoom": true,
    "showCoverageOnHover": false,
    "maxClusterRadius": 40
  },
  "mapOptions": {
    "center": [37.55, -122.2],
    "zoom": 9
  },
  "tileLayer": {
    "url": "https://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}{r}.png",
    "options": {
      "attribution": "© OpenStreetMap contributors, © CARTO"
    }
  },
  "markers": [
    {"lat": 37.7749, "lng": -122.4194, "popup": "<h3>San Francisco</h3>"},
    {"lat": 37.8044, "lng": -122.2712, "popup": "<h3>Oakland</h3>"},
    {"lat": 37.3382, "lng": -121.8863, "popup": "<h3>San Jose</h3>"},
    {"lat": 37.8716, "lng": -122.2727, "popup": "<h3>Berkeley</h3>"},
    {"lat": 37.4419, "lng": -122.1430, "popup": "<h3>Palo Alto</h3>"},
    {"lat": 37.3861, "lng": -122.0839, "popup": "<h3>Mountain View</h3>"},
    {"lat": 37.5485, "lng": -121.9886, "popup": "<h3>Fremont</h3>"},
    {"lat": 37.6688, "lng": -122.0808, "popup": "<h3>Hayward</h3>"},
    {"lat": 37.5630, "lng": -122.3255, "popup": "<h3>San Mateo</h3>"},
    {"lat": 37.4852, "lng": -122.2364, "popup": "<h3>Redwood City</h3>"},
    {"lat": 37.9358, "lng": -122.3477, "popup": "<h3>Richmond</h3>"},
    {"lat": 37.9102, "lng": -122.0652, "popup": "<h3>Walnut Creek</h3>"}
  ]
}

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.