如何在SSIS中使用JavaScript代码? [英] How do i use JavaScript Code in SSIS?
本文介绍了如何在SSIS中使用JavaScript代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一段JavaScript代码,希望在ssis程序包中使用.我相信这将是一个脚本任务.但是,我不确定该怎么做.下面的JavaScript会生成一个整数,该整数表示地图上某个较长位置的最大缩放级别.我想在ssis包中生成此信息,该信息将用于确定我用于生成的静态地图的最大缩放.
谢谢!
I have a Piece of JavaScript code, that i am wanting to use in a ssis package. I believe it will need to be a script task. I am not sure how to do so however. The JavaScript below, generates an integer that represents the max zoom level for a lat long location on a map. I am wanting to generate this info in a ssis package, that will be used to determine the max zoom i use for a static map i generate.
Thank you!
var map;
var maxZoomService = new google.maps.MaxZoomService();
var tokyo = new google.maps.LatLng(35.6894875, 139.6917064);
function initialize() {
var mapOptions = {
zoom: 11,
center: tokyo,
mapTypeId: google.maps.MapTypeId.HYBRID
}
map = new google.maps.Map(document.getElementById("map_canvas"), mapOptions);
google.maps.event.addListener(map, 'click', showMaxZoom);
}
function showMaxZoom(e) {
maxZoomService.getMaxZoomAtLatLng(e.latLng, function(response) {
if (response.status != google.maps.MaxZoomStatus.OK) {
alert("Error in MaxZoomService");
return;
} else {
alert("The maximum zoom at this location is: " + response.zoom);
}
map.setCenter(e.latLng);
});
}
推荐答案
Google搜索将为您带来美好的世界.
我找到了 [ ^ ].
A google search would have done you a world of good.
I found this[^] when I googled "ssis javascript".
这篇关于如何在SSIS中使用JavaScript代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文