1

Есть json-массив с координатами. описанием и т.д. Что написать вместо tutzatyk чтобы отображались свои метки?

{
   "type": "FeatureCollection",
   "features": [

        {"type": "Feature", "id": "geoid_1", "geometry": {"type": "Point", "coordinates": [53.22253553, 44.91619948]}, 
                "properties": {"balloonContent": "", "clusterCaption" : "Еще одна метка0", "hintContent": "Текст1 подсказки"}},

        {"type": "Feature", "id": "geoid_2", "geometry": {"type": "Point", "coordinates": [53.22775721, 44.93772153]}, 
                "properties": {"iconImageHref": "/assets/img/16.gif", "balloonContent": "", "clusterCaption" : "Еще одна метка1", "hintContent": "Текст2 подсказки"}},

        {"type": "Feature", "id": "geoid_3", "geometry": {"type": "Point", "coordinates": [53.23167024, 44.86977306]}, "properties": {"balloonContent": "", "clusterCaption" : "Еще одна метка2", "hintContent": ""}, 
                "tutzatyk" : {"iconLayout": "default#image", "iconImageHref": "/assets/img/16.gif", "iconImageSize": [30, 42], "iconImageOffset": [-5, -38]}}

    ]
}
3

2 ответа 2

1

Надо написать options вместо tutzatyk

0

Пропишите options вместо tutzatyk.

Например:

{"type": "Feature", "id": "geoid_3", "geometry": {"type": "Point", "coordinates": [53.23167024, 44.86977306]}, "properties": {"balloonContent": "", "clusterCaption" : "Еще одна метка2", "hintContent": ""}, 
                "options" : {"iconLayout": "default#image", "iconImageHref": "/assets/img/16.gif", "iconImageSize": [30, 42], "iconImageOffset": [-5, -38]}}
2
  • А чем ваш ответ отличается от уже принятого ответа топикастера?
    – 0xdb
    2 авг 2019 в 9:57
  • С более подробным примером.
    – LogosX
    2 авг 2019 в 10:12

Ваш ответ

By clicking “Отправить ответ”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Всё ещё ищете ответ? Посмотрите другие вопросы с метками или задайте свой вопрос.