| | |
| | | function getQueryStringByKey(key) { |
| | | return (document.location.search.match(new RegExp("(?:^\\?|&)" + key + "=(.*?)(?=&|$)")) || ['', null])[1]; |
| | | } |
| | | var ISinit = getQueryStringByKey('ISinit'); |
| | | var openId = getQueryStringByKey('openid'); |
| | | if(ISinit == null){ |
| | | init(openId,null); |
| | | } |
| | | |
| | | function init(openId,locationObj) { |
| | | $.divselect("#divselect", "#inputselect"); |
| | | require(["base/framework", "base/AppEvent"], |
| | | function (framework, AppEvent) { |
| | | _framework = new framework(); |
| | |
| | | map.centerAndZoom(new esri.geometry.Point(locationObj.x,locationObj.y, new esri.SpatialReference({ wkid: 4326 })), 14); |
| | | } |
| | | }); |
| | | |
| | | var openId = getQueryStringByKey('openid'); |
| | | if (openId) showFun(openId); |
| | | } |
| | | ); |