Commit 5c2badff authored by Jan Köster's avatar Jan Köster
Browse files

pagespeed fix

parent 1d5f1c9d
Loading
Loading
Loading
Loading
+2 −0
Changes for editor/widgets/googlemaps/googlemaps.cpp: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -109,7 +109,9 @@ namespace blogi {
                std::string responsiveClass = std::string("we-") + getInstanceId().c_str();
                libhtmlpp::HtmlElement *iframe = new libhtmlpp::HtmlElement("iframe");
                std::string src = "https://maps.google.com/maps?q=" + _address + "&t=&z=" + _zoom + "&ie=UTF8&iwloc=&output=embed";
                std::string title = _address.empty() ? "Google Maps" : ("Google Maps: " + _address);
                iframe->setAttribute("src", src.c_str());
                iframe->setAttribute("title", title.c_str());
                iframe->setAttribute("class", responsiveClass.c_str());
                iframe->setAttribute("width", "100%");
                iframe->setAttribute("height", "450");