我有幾種形狀需要添加到OpenLayers 3地圖中。將SQL形狀添加到OpenLayers 3地圖
從SQL形狀數據我有看起來像這樣...
{ 「座標」:[[[[ - 91.05450505,40.13582599899992],[ - 91.0535575279999,40.135820151999923],[ - 91.052466883,40.1358134119999] [-91.0523327989999,40.135812912999924],[ - 91.052166245,40.135813424999817],[ - 91.0510157859999,40.135816934999816],[ - 91.0509395239999,40.135817163999938],[ - 91.049898524,40.135809289999926],[ - 91.048985755,40.137104035999819],[ - 91.0483429609999,40.137688143999824],[ -91.047584907,40.13776131299992],[ - 91.047550132,40.139484142999919],[ - 91.047548976,40.139541301999927],[ - 91.057030214,40.139655613999814],[ - 91.057029888,40.139645160999819],[ - 91.057034944,40.139477644999936],[ - 91.057054502,40.13833740399982],[ - 91.057055873,40.138257448999831],[ - 91.057098826,40.135917570999929],[ - 91.0569 19183,40.135869905999826],[ - 91.0556241099999,40.135850547999922],[ - 91.054810698,40.135832702999927],[ - 91.05450505,40.13582599899992]]]], 「類型」: 「是MultiPolygon」}
什麼在3的OpenLayers最好的方式來獲得這個多邊形的形狀顯示在地圖上,然後改變程度以顯示我繪製此形狀的位置?