Перейти к Leaflet проще, и он принимает GeoJSON с FeatureCollection. Вы также можете получить атрибуты во всплывающем окне, когда щелкаете объекты.
Однако Openlayers также имеют доступ к FeatureCollection. Пример мобильного (jQuery Mobile) для Openlayers продемонстрировал доступ к свойствам.
http://openlayers.org/dev/examples/mobile-jq.html#mappage
Нажмите черные иконки, и вы увидите всплывающую форму с этими атрибутами.
Это часть GeoJSON в мобильном примере.
{
"type": "FeatureCollection",
"features": [
{ "type": "Feature",
"geometry": {"type": "Point","coordinates": [1332700, 7906300]},
"properties": {"Name": "Igor Tihonov","Country":"Sweden", "City":"Gothenburg"}
},
{ "type": "Feature",
"geometry": {"type": "Point","coordinates": [790300, 6573900]},
"properties": {"Name": "Marc Jansen","Country":"Germany", "City":"Bonn"}
},
{ "type": "Feature",
"geometry": {"type": "Point","coordinates": [568600, 6817300]},
"properties": {"Name": "Bart van den Eijnden","Country":"Netherlands", "City":"Utrecht"}
},
{ "type": "Feature",
"geometry": {"type": "Point","coordinates": [-7909900, 5215100]}
}
]
}