Инструменты пользователя

Инструменты сайта


ru:airlay:examples

Различия

Показаны различия между двумя версиями страницы.

Ссылка на это сравнение

Предыдущая версия справа и слева Предыдущая версия
Следующая версия Следующая версия справа и слева
ru:airlay:examples [2019/07/10 20:19]
Калинин Александр Игоревич [Опора]
ru:airlay:examples [2019/07/10 20:20]
Калинин Александр Игоревич [Пример объектов для MultiLineString]
Строка 386: Строка 386:
 {{:ru:airlay:opera_снимок_2019-06-04_203439_map-sk.mrsks.ru.png|}} {{:ru:airlay:opera_снимок_2019-06-04_203439_map-sk.mrsks.ru.png|}}
 <code javascript> <code javascript>
-[ 
 { {
-  "type" : "Feature", +  "type": "FeatureCollection", 
-  "properties" : { +  "features": [ 
-    "type" : "lines", +    [
-    "name" : "Some big line", +
-    "tplnr" : "some-big-line-name", +
-  }, +
-  "system":+
-    "relations": [+
       {       {
-        "some-line-name-1"+        "type": "Feature", 
 +        "properties":
 +          "type": "lines", 
 +          "name": "Some big line", 
 +          "tplnr": "some-big-line-name" 
 +        }, 
 +        "system":
 +          "relations":
 +            { 
 +              "some-line-name-1" 
 +            }, 
 +            { 
 +              "some-line-name-2" 
 +            } 
 +          ] 
 +        }, 
 +        "geometry":
 +          "type": "MultiLineString" 
 +        }
       },       },
       {       {
-        "some-line-name-2" +        "type": "Feature", 
-      } +        "properties":
-    ] +          "type": "lines", 
-  }, +          "name": "Some line 1", 
-  "geometry":+          "tplnr": "some-line-name-1" 
-    "type": "MultiLineString" +        }, 
-  } +        "system":
-}, +          "relations": [ 
-+            { 
-  "type" : "Feature", +              "some-name-1" 
-  "properties" : { +            }, 
-    "type" : "lines", +            { 
-    "name" : "Some line 1", +              "some-name-2" 
-    "tplnr" : "some-line-name-1", +            } 
-  }, +          ] 
-  "system":+        }, 
-    "relations": [+        "geometry":
 +          "type": "LineString" 
 +        } 
 +      },
       {       {
-        "some-name-1"+        "type": "Feature", 
 +        "properties":
 +          "type": "lines", 
 +          "name": "Some line 2", 
 +          "tplnr": "some-line-name-2" 
 +        }, 
 +        "system":
 +          "relations":
 +            { 
 +              "some-name-1" 
 +            }, 
 +            { 
 +              "some-name-3" 
 +            } 
 +          ] 
 +        }, 
 +        "geometry":
 +          "type": "LineString" 
 +        }
       },       },
       {       {
-        "some-name-2" +        "type": "Feature", 
-      } +        "properties":
-    ] +          "type": "pylons", 
-  }, +          "name": "Some pylon 1", 
-  "geometry":+          "tplnr": "some-name-1
-    "type": "LineString" +        }, 
-  } +        "geometry": { 
-}, +          "type": "Point", 
-+          "coordinates": [ 
-  "type" : "Feature", +            85.3538402166585, 
-  "properties" : { +            51.9571677261215 
-    "type" : "lines", +          ] 
-    "name" : "Some line 2", +        } 
-    "tplnr" : "some-line-name-2", +      },
-  }, +
-  "system": { +
-    "relations": [+
       {       {
-        "some-name-1"+        "type": "Feature", 
 +        "properties":
 +          "type": "pylons", 
 +          "name": "Some pylon 2", 
 +          "tplnr": "some-name-2" 
 +        }, 
 +        "geometry":
 +          "type": "Point", 
 +          "coordinates": [ 
 +            85.4538402166585, 
 +            51.9571677261215 
 +          ] 
 +        }
       },       },
       {       {
-        "some-name-3"+        "type": "Feature", 
 +        "properties":
 +          "type": "pylons", 
 +          "name": "Some pylon 3", 
 +          "tplnr": "some-name-3" 
 +        }, 
 +        "geometry":
 +          "type": "Point", 
 +          "coordinates":
 +            85.3538402166585, 
 +            51.7571677261215 
 +          ] 
 +        }
       }       }
     ]     ]
-  }, +  ]
-  "geometry":+
-    "type": "LineString" +
-  } +
-}, +
-+
-  "type" : "Feature", +
-  "properties" : { +
-    "type" : "pylons", +
-    "name" : "Some pylon 1", +
-    "tplnr" : "some-name-1", +
-  }, +
-  "geometry" : { +
-    "type" : "Point", +
-    "coordinates" : [ +
-      85.3538402166585, +
-      51.9571677261215 +
-    ] +
-  } +
-}, +
-+
-  "type" : "Feature", +
-  "properties" : { +
-    "type" : "pylons", +
-    "name" : "Some pylon 2", +
-    "tplnr" : "some-name-2", +
-  }, +
-  "geometry" : { +
-    "type" : "Point", +
-    "coordinates" : [ +
-      85.4538402166585, +
-      51.9571677261215 +
-    ] +
-  } +
-}, +
-+
-  "type" : "Feature", +
-  "properties" : { +
-    "type" : "pylons", +
-    "name" : "Some pylon 3", +
-    "tplnr" : "some-name-3", +
-  }, +
-  "geometry" : { +
-    "type" : "Point", +
-    "coordinates" : [ +
-      85.3538402166585, +
-      51.7571677261215 +
-    ] +
-  }+
 } }
-] 
 </code> </code>
ru/airlay/examples.txt · Последнее изменение: 2023/03/01 17:32 — Калинин Александр Игоревич