javascript - Sogou Map API is not working in HTTPS protocol -
i integrating sogou map api in angular 2 application. in code calling "ongo2mapapiload" function initialize map in application on browser. loading api - https://api.go2map.com/maps/js/api_v2.5.1.js.
i see map works displays when access application on http, - localhost:4200/displaymap.html. when deploy code in qa server , access same page on https https://www.dev.com/displaymap.html , map not working.
i don't see error in browser console . see sogou api getting loaded in browser "ongo2mapapiload" not getting called initialize map object .so webpage not showing map.
i followed - http://map.sogou.com/api/documentation/javascript/api2.5/basics.html understand , use sogou map api .
after beautifying sogou map api see function "ongo2mapapiload" using http called .
(function() { var $ = gts(document, "script"), _, = /^http:\/\/.*\/maps\/js\/api_v[\d\.]+\.js$/, b; (_ = 0; _ < $.length; _++) if (a.test($[_].src)) { b = $[_]["ongo2mapapiload"]; if (b) b() } })() can suggest me how fix issue.
anyone having experience working sogou map api.
Comments
Post a Comment