Loading editor/widgets/googlemaps/googlemaps.cpp +2 −0 Changes for editor/widgets/googlemaps/googlemaps.cpp: 2 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -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"); Loading Loading
editor/widgets/googlemaps/googlemaps.cpp +2 −0 Changes for editor/widgets/googlemaps/googlemaps.cpp: 2 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -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"); Loading