lib/adiwg/mdtranslator/writers/html/sections/html_geographicElement.rb in adiwg-mdtranslator-1.1.1 vs lib/adiwg/mdtranslator/writers/html/sections/html_geographicElement.rb in adiwg-mdtranslator-1.2.0

- old
+ new

@@ -130,10 +130,11 @@ # geographic element - in GeoJson @html.em('GeoJSON format: ') @html.section(:class=>'block') do geoJson = AdiwgGeoFormat.internal_to_geoJson(hGeoEle) - @html.div({'id'=>'geojson-' + geoPre, 'class'=>'geojson'}) do + popData = hGeoEle[:elementName] || hGeoEle[:elementDescription] || hGeoEle[:elementId] + @html.div({'id'=>'geojson-' + geoPre, 'class'=>'geojson', 'data-popup' => popData}) do @html.text!(geoJson) end end # geographic element - in Well-Know-Text