Leaflet/examples/sample-geojson.js

368 lines
10 KiB
JavaScript
Raw Normal View History

var free_bus = {
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
-104.9872612953186,
39.74136172336104
],
[
-104.9872076511383,
39.74132459919613
],
[
-104.987154006958,
39.74127097536707
],
[
-104.98713791370392,
39.741176102336496
],
[
-104.98712182044983,
39.7410647294818
],
[
-104.9871164560318,
39.74098223095487
],
[
-104.98707354068755,
39.7409533564471
],
[
-104.9869179725647,
39.74096160630769
],
[
-104.98688042163849,
39.74099460574021
],
[
-104.9868643283844,
39.74104410485933
],
[
-104.98688578605652,
39.74110597870824
],
[
-104.98693406581877,
39.7411389780716
],
[
-104.98726665973663,
39.74137409807824
],
[
-104.98783528804779,
39.74183608592994
],
[
-104.9886828660965,
39.74249606320252
],
[
-104.98956263065338,
39.74318078294193
],
[
-104.99041557312012,
39.74383249781977
],
[
-104.99128460884093,
39.74450483012657
],
[
-104.9921590089798,
39.745181280550725
],
[
-104.99301731586455,
39.74583710114599
],
[
-104.99392926692963,
39.746534161476056
],
[
-104.99477684497833,
39.74719821830812
],
[
-104.99564051628113,
39.74785401970543
],
[
-104.996520280838,
39.74853043724829
],
[
-104.99739468097687,
39.74920684815003
],
[
-104.99827444553374,
39.74989562559743
],
[
-104.99917566776276,
39.75054727696244
],
[
-105.00002861022949,
39.7512112951138
],
[
-105.00090301036835,
39.751875306864676
],
[
-105.0020295381546,
39.75273727530449
],
[
-105.00257134437561,
39.753298167635116
],
[
-105.00342428684235,
39.75393741435492
],
[
-105.00234067440032,
39.75481172929469
],
[
-105.00259280204773,
39.75499318949525
],
[
-105.00265181064606,
39.75501793403101
],
[
-105.00271081924438,
39.75501793403101
],
[
-105.00313997268677,
39.75488596307089
],
[
-105.0033438205719,
39.754799356990866
],
[
-105.0033974647522,
39.7547622400661
],
[
-105.00344038009644,
39.75471687490865
],
[
-105.00349938869476,
39.754617896279655
],
[
-105.00351548194885,
39.75455603456428
],
[
-105.00353157520293,
39.75450654515198
],
[
-105.00342965126036,
39.753941538508016
]
]
},
"properties": {
"name": "16th Street Free Bus",
"style": {
color: "#004070",
weight: 4,
opacity: 0.9
},
"popup_content": "This is the 16th street free bus in Denver, a good way to cross town."
},
"id": 1
};
var bicycle_rental = {
"type": "FeatureCollection",
"features": [
{
"geometry": {
"type": "Point",
"coordinates": [
-104.9998241,
39.7471494
]
},
"type": "Feature",
"properties": {
"popup_content": "This is a B-Cycle Station. Come pick up a bike and pay by the hour. What a deal!"
},
"id": 51
},
{
"geometry": {
"type": "Point",
"coordinates": [
-104.9983545,
39.7502833
]
},
"type": "Feature",
"properties": {
"popup_content": "This is a B-Cycle Station. Come pick up a bike and pay by the hour. What a deal!"
},
"id": 52
},
{
"geometry": {
"type": "Point",
"coordinates": [
-104.9963919,
39.7444271
]
},
"type": "Feature",
"properties": {
"popup_content": "This is a B-Cycle Station. Come pick up a bike and pay by the hour. What a deal!"
},
"id": 54
},
{
"geometry": {
"type": "Point",
"coordinates": [
-104.9960754,
39.7498956
]
},
"type": "Feature",
"properties": {
"popup_content": "This is a B-Cycle Station. Come pick up a bike and pay by the hour. What a deal!"
},
"id": 55
},
{
"geometry": {
"type": "Point",
"coordinates": [
-104.9933717,
39.7477264
]
},
"type": "Feature",
"properties": {
"popup_content": "This is a B-Cycle Station. Come pick up a bike and pay by the hour. What a deal!"
},
"id": 57
},
{
"geometry": {
"type": "Point",
"coordinates": [
-104.9913392,
39.7432392
]
},
"type": "Feature",
"properties": {
"popup_content": "This is a B-Cycle Station. Come pick up a bike and pay by the hour. What a deal!"
},
"id": 58
},
{
"geometry": {
"type": "Point",
"coordinates": [
-104.9788452,
39.6933755
]
},
"type": "Feature",
"properties": {
"popup_content": "This is a B-Cycle Station. Come pick up a bike and pay by the hour. What a deal!"
},
"id": 74
}
]
};
var campus = {
"type": "Feature",
"properties": {
"popup_content": "This is the Auraria West Campus",
"style": {
weight: 2,
color: "#999",
opacity: 1,
fillColor: "#B0DE5C",
fillOpacity: 0.8
}
},
"geometry": {
"type": "MultiPolygon",
"coordinates": [
[
[
[-105.00432014465332, 39.74732195489861],
[-105.00715255737305, 39.74620006835170],
[-105.00921249389647, 39.74468219277038],
[-105.01067161560059, 39.74362625960105],
[-105.01195907592773, 39.74290029616054],
[-105.00989913940431, 39.74078835902781],
[-105.00758171081543, 39.74059036160317],
[-105.00346183776855, 39.74059036160317],
[-105.00097274780272, 39.74059036160317],
[-105.00062942504881, 39.74072235994946],
[-105.00020027160645, 39.74191033368865],
[-105.00071525573731, 39.74276830198601],
[-105.00097274780272, 39.74369225589818],
[-105.00097274780272, 39.74461619742136],
[-105.00123023986816, 39.74534214278395],
[-105.00183105468751, 39.74613407445653],
[-105.00432014465332, 39.74732195489861]
],[
[-105.00361204147337, 39.74354376414072],
[-105.00301122665405, 39.74278480127163],
[-105.00221729278564, 39.74316428375108],
[-105.00283956527711, 39.74390674342741],
[-105.00361204147337, 39.74354376414072]
]
],[
[
[-105.00942707061768, 39.73989736613708],
[-105.00942707061768, 39.73910536278566],
[-105.00685214996338, 39.73923736397631],
[-105.00384807586671, 39.73910536278566],
[-105.00174522399902, 39.73903936209552],
[-105.00041484832764, 39.73910536278566],
[-105.00041484832764, 39.73979836621592],
[-105.00535011291504, 39.73986436617916],
[-105.00942707061768, 39.73989736613708]
]
]
]
}
};
2011-09-28 09:20:16 +08:00
var coors_field = {
"type": "Feature",
"properties": {
"popup_content": "Coors Field"
},
"geometry": {
"type": "Point",
"coordinates": [-104.99404191970824, 39.756213909328125]
}
};