var map;
function map_init() {
            var initExtent = new scgc.geometry.Extent({ "xmin": 100.42602774963626, "ymin": 27.883301436229818, "xmax": 105.17212161112218, "ymax": 32.62939529771574, "spatialReference": { "wkid": 4326} });
            map = new scgc.Map("map", {extent: initExtent, logo: false });
            var tiledMapServiceLayer = new scgc.layers.SCGISTiledMapServiceLayer("http://www.scgis.net.cn/imap/iMapServer/NewRest/services/SCTileMap/MapServer/");
            dojo.connect(tiledMapServiceLayer, "onTokenExpired", function(json) { tiledMapServiceLayer.setToken("xpV3D2gNiefns96MoltKpUIbh9dmE3GM7xrWT00VO6f8LlquWKsKnHbLWenqfQ0A"); });
            map.addLayer(tiledMapServiceLayer);
            dojo.connect(map, "onLoad", function() { document.getElementById("map_zoom_slider").style.display="none"; })
        }
dojo.addOnLoad(map_init);


function getExtent(parameters) {
    var nowExtent = map.extent;
}
function fullExtent(parameters) {
    var nowExtent = map.extent;
    map.setExtent(nowExtent.expand(2));
}

function mapZoomIn(parameters) {
    var nowExtent = map.extent;
    map.setExtent(nowExtent.expand(0.5));
}
