lib/adiwg/mdtranslator/writers/html/sections/html_geographicElement.rb in adiwg-mdtranslator-1.2.0 vs lib/adiwg/mdtranslator/writers/html/sections/html_geographicElement.rb in adiwg-mdtranslator-1.2.1
- old
+ new
@@ -130,10 +130,10 @@
# geographic element - in GeoJson
@html.em('GeoJSON format: ')
@html.section(:class=>'block') do
geoJson = AdiwgGeoFormat.internal_to_geoJson(hGeoEle)
- popData = hGeoEle[:elementName] || hGeoEle[:elementDescription] || hGeoEle[:elementId]
+ popData = hGeoEle[:elementName] || hGeoEle[:elementDescription] || hGeoEle[:elementId] || geoPre
@html.div({'id'=>'geojson-' + geoPre, 'class'=>'geojson', 'data-popup' => popData}) do
@html.text!(geoJson)
end
end