• 省市经纬度


            //引入各省json数据
            var zhongguo = "/json/data-china.json";
            var hainan = "/json/data-hainan.json";
            var xizang = "/json/data-xizang.json";
            var zhejiang = "/json/data-zhejiang.json";
            var yunnan = "/json/data-yunnan.json";
            var xinjiang = "/json/data-xinjiang.json";
            var tianjin = "/json/data-tianjin.json";
            var sichuan = "/json/data-sichuan.json";
            var shanxi = "/json/data-shanxi.json";
            var shangxi = "/json/data-shangxi.json";
            var shanghai = "/json/data-shanghai.json";
            var shangdong = "/json/data-shangdong.json";
            var qinghai = "/json/data-qinghai.json";
            var ningxia = "/json/data-ningxia.json";
            var neimenggu = "/json/data-neimenggu.json";
            var liaoning = "/json/data-liaoning.json";
            var jilin = "/json/data-jilin.json";
            var jiangxi = "/json/data-jiangxi.json";
            var jiangsu = "/json/data-jiangsu.json";
            var hunan = "/json/data-hunan.json";
            var hubei = "/json/data-hubei.json";
            var henan = "/json/data-henan.json";
            var heilongjiang = "/json/data-heilongjiang.json";
            // var hebei = "/json/data-hebei.json";
            var guizhou = "/json/data-guizhou.json";
            var guangxi = "/json/data-guangxi.json";
            var guangdong = "/json/data-guangdong.json";
            var gansu = "/json/data-gansu.json";
            var chongqing = "/json/data-chongqing.json";
            // var aomen = "/json/data-aomen.json";
            var anhui = "/json/data-anhui.json";
            // var beijing = "/json/data-beijing.json";
            var beijing = "/json/beijing-shixiaqu.json";
            var fujian = "/json/data-fujian.json";
            // var xianggang = "./json/xianggang.json";
            var hebei = './json/he_bei.geo.json'
    
            //建立映射关系
            var cityMap = {
                '中国': zhongguo,
                '上海': shanghai,
                '河北': hebei,
                '山西': shangxi,
                '内蒙古': neimenggu,
                '辽宁': liaoning,
                '吉林': jilin,
                '黑龙江': heilongjiang,
                '江苏': jiangsu,
                '浙江': zhejiang,
                '安徽': anhui,
                '福建': fujian,
                '江西': jiangxi,
                '山东': shangdong,
                '河南': henan,
                '湖北': hubei,
                '湖南': hunan,
                '广东': guangdong,
                '广西': guangxi,
                '海南': hainan,
                '四川': sichuan,
                '贵州': guizhou,
                '云南': yunnan,
                '西藏': xizang,
                '陕西': shanxi,
                '甘肃': gansu,
                '青海': qinghai,
                '宁夏': ningxia,
                '新疆': xinjiang,
                '北京': beijing,
                '天津': tianjin,
                '重庆': chongqing,
                // '香港': xianggang,
                // '澳门': aomen,
            };
    
            //全市经纬度
            var geoCoordMap = {
                    "北京": [116.4, 39.9],
                    "天津": [117.2, 39.12],
                    "石家庄": [114.52, 38.05],
                    "唐山": [118.2, 39.63],
                    "秦皇岛": [119.6, 39.93],
                    "邯郸": [114.48, 36.62],
                    "邢台": [114.48, 37.07],
                    "保定": [115.47, 38.87],
                    "张家口": [114.88, 40.82],
                    "承德": [117.93, 40.97],
                    "沧州": [116.83, 38.3],
                    "廊坊": [116.7, 39.52],
                    "衡水": [115.68, 37.73],
                    "雄安": [116, 38.9],
                    "太原": [112.55, 37.87],
                    "大同": [113.3, 40.08],
                    "阳泉": [113.57, 37.85],
                    "长治": [113.12, 36.2],
                    "晋城": [112.83, 35.5],
                    "朔州": [112.43, 39.33],
                    "晋中": [112.75, 37.68],
                    "运城": [110.98, 35.02],
                    "忻州": [112.73, 38.42],
                    "临汾": [111.52, 36.08],
                    "吕梁": [111.13, 37.52],
                    "呼和浩特": [111.73, 40.83],
                    "包头": [109.83, 40.65],
                    "乌海": [106.82, 39.67],
                    "赤峰": [118.92, 42.27],
                    "通辽": [122.27, 43.62],
                    "鄂尔多斯": [109.8, 39.62],
                    "呼伦贝尔盟": [119.77, 49.22],
                    "巴彦淖尔盟": [107.42, 40.75],
                    "乌兰察布盟": [113.12, 40.98],
                    "兴安盟": [122.05, 46.08],
                    "锡林郭勒盟": [116.07, 43.95],
                    "阿拉善盟": [105.67, 38.83],
                    "沈阳": [123.43, 41.8],
                    "大连": [121.62, 38.92],
                    "鞍山": [122.98, 41.1],
                    "抚顺": [123.98, 41.88],
                    "本溪": [123.77, 41.3],
                    "丹东": [124.38, 40.13],
                    "锦州": [121.13, 41.1],
                    "营口": [122.23, 40.67],
                    "阜新": [121.67, 42.02],
                    "辽阳": [123.17, 41.27],
                    "盘锦": [122.07, 41.12],
                    "铁岭": [123.83, 42.28],
                    "朝阳": [120.45, 41.57],
                    "葫芦岛": [120.83, 40.72],
                    "长春": [125.32, 43.9],
                    "吉林": [126.55, 43.83],
                    "四平": [124.35, 43.17],
                    "辽源": [125.13, 42.88],
                    "通化": [125.93, 41.73],
                    "白山": [126.42, 41.93],
                    "松原": [124.82, 45.13],
                    "白城": [122.83, 45.62],
                    "延吉": [129.5, 42.88],
                    "哈尔滨": [126.53, 45.8],
                    "齐齐哈尔": [123.95, 47.33],
                    "鸡西": [130.97, 45.3],
                    "鹤岗": [130.27, 47.33],
                    "双鸭山": [131.15, 46.63],
                    "大庆": [125.03, 46.58],
                    "伊春": [128.9, 47.73],
                    "佳木斯": [130.37, 46.82],
                    "七台河": [130.95, 45.78],
                    "牡丹江": [129.6, 44.58],
                    "黑河": [127.48, 50.25],
                    "绥化": [126.98, 46.63],
                    "大兴安岭地区": [124.12, 50.42],
                    "上海": [121.47, 31.23],
                    "南京": [118.78, 32.07],
                    "无锡": [120.3, 31.57],
                    "徐州": [117.18, 34.27],
                    "常州": [119.95, 31.78],
                    "苏州": [120.58, 31.3],
                    "南通": [120.88, 31.98],
                    "连云港": [119.22, 34.6],
                    "淮安": [119.02, 33.62],
                    "盐城": [120.15, 33.35],
                    "扬州": [119.4, 32.4],
                    "镇江": [119.45, 32.2],
                    "泰州": [119.92, 32.45],
                    "宿迁": [118.28, 33.97],
                    "杭州": [120.15, 30.28],
                    "宁波": [121.55, 29.88],
                    "温州": [120.7, 28],
                    "嘉兴": [120.75, 30.75],
                    "湖州": [120.08, 30.9],
                    "绍兴": [120.57, 30],
                    "金华": [119.65, 29.08],
                    "衢州": [118.87, 28.93],
                    "舟山": [122.2, 30],
                    "台州": [121.43, 28.68],
                    "丽水": [119.92, 28.45],
                    "合肥": [117.25, 31.83],
                    "芜湖": [118.38, 31.33],
                    "蚌埠": [117.38, 32.92],
                    "淮南": [117, 32.63],
                    "马鞍山": [118.5, 31.7],
                    "淮北": [116.8, 33.95],
                    "铜陵": [117.82, 30.93],
                    "安庆": [117.05, 30.53],
                    "黄山": [118.33, 29.72],
                    "滁州": [118.32, 32.3],
                    "阜阳": [115.82, 32.9],
                    "宿州": [116.98, 33.63],
                    "巢湖": [117.87, 31.6],
                    "六安": [116.5, 31.77],
                    "亳州": [115.78, 33.85],
                    "池州": [117.48, 30.67],
                    "宣城": [118.75, 30.95],
                    "福州": [119.3, 26.08],
                    "厦门": [118.08, 24.48],
                    "莆田": [119, 25.43],
                    "三明": [117.62, 26.27],
                    "泉州": [118.67, 24.88],
                    "漳州": [117.65, 24.52],
                    "南平": [118.17, 26.65],
                    "龙岩": [117.03, 25.1],
                    "宁德": [119.52, 26.67],
                    "南昌": [115.85, 28.68],
                    "景德镇": [117.17, 29.27],
                    "萍乡": [113.85, 27.63],
                    "九江": [116, 29.7],
                    "新余": [114.92, 27.82],
                    "鹰潭": [117.07, 28.27],
                    "赣州": [114.93, 25.83],
                    "吉安": [114.98, 27.12],
                    "宜春": [114.38, 27.8],
                    "抚州": [116.35, 28],
                    "上饶": [117.97, 28.45],
                    "济南": [116.98, 36.67],
                    "青岛": [120.38, 36.07],
                    "淄博": [118.05, 36.82],
                    "枣庄": [117.32, 34.82],
                    "东营": [118.67, 37.43],
                    "烟台": [121.43, 37.45],
                    "潍坊": [119.15, 36.7],
                    "济宁": [116.58, 35.42],
                    "泰安": [117.08, 36.2],
                    "威海": [122.12, 37.52],
                    "日照": [119.52, 35.42],
                    "莱芜": [117.67, 36.22],
                    "临沂": [118.35, 35.05],
                    "德州": [116.3, 37.45],
                    "聊城": [115.98, 36.45],
                    "滨州": [117.97, 37.38],
                    "牡丹区": [115.43, 35.25],
                    "郑州": [113.62, 34.75],
                    "开封": [114.3, 34.8],
                    "洛阳": [112.45, 34.62],
                    "平顶山": [113.18, 33.77],
                    "安阳": [114.38, 36.1],
                    "鹤壁": [114.28, 35.75],
                    "新乡": [113.9, 35.3],
                    "焦作": [113.25, 35.22],
                    "濮阳": [115.03, 35.77],
                    "许昌": [113.85, 34.03],
                    "漯河": [114.02, 33.58],
                    "三门峡": [111.2, 34.78],
                    "南阳": [112.52, 33],
                    "商丘": [115.65, 34.45],
                    "信阳": [114.07, 32.13],
                    "周口": [114.65, 33.62],
                    "驻马店": [114.02, 32.98],
                    "武汉": [114.3, 30.6],
                    "黄石": [115.03, 30.2],
                    "十堰": [110.78, 32.65],
                    "宜昌": [111.28, 30.7],
                    "襄樊": [112.15, 32.02],
                    "鄂州": [114.88, 30.4],
                    "荆门": [112.2, 31.03],
                    "孝感": [113.92, 30.93],
                    "荆州": [112.23, 30.33],
                    "黄冈": [114.87, 30.45],
                    "咸宁": [114.32, 29.85],
                    "随州": [113.37, 31.72],
                    "恩施": [109.47, 30.3],
                    "仙桃": [113.45, 30.37],
                    "长沙": [112.93, 28.23],
                    "株洲": [113.13, 27.83],
                    "湘潭": [112.93, 27.83],
                    "衡阳": [112.57, 26.9],
                    "邵阳": [111.47, 27.25],
                    "岳阳": [113.12, 29.37],
                    "常德": [111.68, 29.05],
                    "张家界": [110.47, 29.13],
                    "益阳": [112.32, 28.6],
                    "郴州": [113.02, 25.78],
                    "永州": [111.62, 26.43],
                    "怀化": [110, 27.57],
                    "娄底": [112, 27.73],
                    "湘西州": [109.73, 28.32],
                    "广州": [113.27, 23.13],
                    "韶关": [113.6, 24.82],
                    "深圳": [114.05, 22.55],
                    "珠海": [113.57, 22.27],
                    "汕头": [116.68, 23.35],
                    "佛山": [113.12, 23.02],
                    "江门": [113.08, 22.58],
                    "湛江": [110.35, 21.27],
                    "茂名": [110.92, 21.67],
                    "肇庆": [112.47, 23.05],
                    "惠州": [114.42, 23.12],
                    "梅州": [116.12, 24.28],
                    "汕尾": [115.37, 22.78],
                    "河源": [114.7, 23.73],
                    "阳江": [111.98, 21.87],
                    "清远": [113.03, 23.7],
                    "东莞": [113.75, 23.05],
                    "中山": [113.38, 22.52],
                    "潮州": [116.62, 23.67],
                    "揭阳": [116.37, 23.55],
                    "云浮": [112.03, 22.92],
                    "南宁": [108.37, 22.82],
                    "柳州": [109.42, 24.33],
                    "桂林": [110.28, 25.28],
                    "梧州": [111.27, 23.48],
                    "北海": [109.12, 21.48],
                    "防城港": [108.35, 21.7],
                    "钦州": [108.62, 21.95],
                    "贵港": [109.6, 23.1],
                    "玉林": [110.17, 22.63],
                    "百色": [106.62, 23.9],
                    "贺州": [111.55, 24.42],
                    "河池": [108.07, 24.7],
                    "来宾": [109.23, 23.73],
                    "崇左": [107.37, 22.4],
                    "海口": [110.32, 20.03],
                    "三亚": [109.5, 18.25],
                    "五指山": [109.52, 18.78],
                    "重庆": [106.55, 29.57],
                    "成都": [104.07, 30.67],
                    "自贡": [104.78, 29.35],
                    "攀枝花": [101.72, 26.58],
                    "泸州": [105.43, 28.87],
                    "德阳": [104.38, 31.13],
                    "绵阳": [104.73, 31.47],
                    "广元": [105.83, 32.43],
                    "遂宁": [105.57, 30.52],
                    "内江": [105.05, 29.58],
                    "乐山": [103.77, 29.57],
                    "南充": [106.08, 30.78],
                    "眉山": [103.83, 30.05],
                    "宜宾": [104.62, 28.77],
                    "广安": [106.63, 30.47],
                    "达州": [107.5, 31.22],
                    "雅安": [103, 29.98],
                    "巴中": [106.77, 31.85],
                    "资阳": [104.65, 30.12],
                    "阿坝": [102.22, 31.9],
                    "甘孜": [101.97, 30.05],
                    "凉山": [102.27, 27.9],
                    "贵阳": [106.63, 26.65],
                    "六盘水": [104.83, 26.6],
                    "遵义": [106.92, 27.73],
                    "安顺": [105.95, 26.25],
                    "铜仁地区": [109.18, 27.72],
                    "兴义": [104.9, 25.08],
                    "毕节地区": [105.28, 27.3],
                    "黔东南苗族侗族自治州": [107.97, 26.58],
                    "黔南布依族苗族自治州": [107.52, 26.27],
                    "昆明": [102.72, 25.05],
                    "曲靖": [103.8, 25.5],
                    "玉溪": [102.55, 24.35],
                    "保山": [99.17, 25.12],
                    "昭通": [103.72, 27.33],
                    "丽江": [100.23, 26.88],
                    "墨江哈尼族自治县": [101.68, 23.43],
                    "临沧": [100.08, 23.88],
                    "楚雄彝族自治州": [101.55, 25.03],
                    "红河哈尼族彝族自治州": [103.4, 23.37],
                    "文山壮族苗族自治州": [104.25, 23.37],
                    "西双版纳傣族自治州": [100.8, 22.02],
                    "大理白族自治州": [100.23, 25.6],
                    "德宏傣族景颇族自治州": [98.58, 24.43],
                    "怒江傈僳族自治州": [98.85, 25.85],
                    "迪庆藏族自治州": [99.7, 27.83],
                    "拉萨": [91.13, 29.65],
                    "昌都地区": [97.18, 31.13],
                    "山南地区": [91.77, 29.23],
                    "日喀则地区": [88.88, 29.27],
                    "那曲地区": [92.07, 31.48],
                    "阿里地区": [80.1, 32.5],
                    "林芝地区": [94.37, 29.68],
                    "西安": [108.93, 34.27],
                    "铜川": [108.93, 34.9],
                    "宝鸡": [107.13, 34.37],
                    "咸阳": [108.7, 34.33],
                    "渭南": [109.5, 34.5],
                    "延安": [109.48, 36.6],
                    "汉中": [107.02, 33.07],
                    "榆林": [109.73, 38.28],
                    "安康": [109.02, 32.68],
                    "商洛": [109.93, 33.87],
                    "兰州": [103.82, 36.07],
                    "嘉峪关": [98.27, 39.8],
                    "金昌": [102.18, 38.5],
                    "白银": [104.18, 36.55],
                    "天水": [105.72, 34.58],
                    "武威": [102.63, 37.93],
                    "张掖": [100.45, 38.93],
                    "平凉": [106.67, 35.55],
                    "酒泉": [98.52, 39.75],
                    "庆阳": [107.63, 35.73],
                    "定西": [104.62, 35.58],
                    "陇南": [104.92, 33.4],
                    "临夏回族自治州": [103.22, 35.6],
                    "甘南藏族自治州": [102.92, 34.98],
                    "西宁": [101.78, 36.62],
                    "海东地区": [102.12, 36.5],
                    "海北藏族自治州": [100.9, 36.97],
                    "黄南藏族自治州": [102.02, 35.52],
                    "海南藏族自治州": [100.62, 36.28],
                    "果洛藏族自治州": [100.23, 34.48],
                    "玉树藏族自治州": [97.02, 33],
                    "海西蒙古族藏族自治州": [97.37, 37.37],
                    "银川": [106.28, 38.47],
                    "石嘴山": [106.38, 39.02],
                    "吴忠": [106.2, 37.98],
                    "固原": [106.28, 36],
                    "中卫": [105.18, 37.52],
                    "乌鲁木齐": [87.62, 43.82],
                    "克拉玛依": [84.87, 45.6],
                    "吐鲁番地区": [89.17, 42.95],
                    "哈密地区": [93.52, 42.83],
                    "昌吉回族自治州": [87.3, 44.02],
                    "博尔塔拉蒙古自治州": [82.07, 44.9],
                    "巴音郭楞蒙古自治州": [86.15, 41.77],
                    "阿克苏地区": [80.27, 41.17],
                    "阿图什": [76.17, 39.72],
                    "喀什地区": [75.98, 39.47],
                    "和田地区": [79.92, 37.12],
                    "伊犁哈萨克自治州": [81.32, 43.92],
                    "塔城地区": [82.98, 46.75],
                    "阿勒泰地区": [88.13, 47.85],
                    "石河子": [86.03, 44.3],
                    "东城":[116.42,39.93],
                    "西城":[116.37,39.92],
                    "朝阳区":[116.43,39.92],
                    "丰台":[116.28,39.85],
                    "石景山":[116.22,39.9],
                    "海淀":[116.3,39.95],
                    "门头沟":[116.1,39.93],
                    "房山":[116.13,39.75],
                    "通州":[116.65,39.92],
                    "顺义":[116.65,40.13],
                    "昌平":[116.23,40.22],
                    "大兴":[116.33,39.73],
                    "怀柔":[116.63,40.32],
                    "平谷":[117.12,40.13],
                    "密云":[116.83,40.37],
                    "延庆":[115.97,40.45],
                    "和平":[117.2,39.12],
                    "河东":[117.22,39.12],
                    "河西":[117.22,39.12],
                    "南开":[117.15,39.13],
                    "河北":[117.18,39.15],
                    "红桥":[117.15,39.17],
                    "塘沽":[117.65,39.02],
                    "汉沽":[117.8,39.25],
                    "大港":[117.45,38.83],
                    "东丽":[117.3,39.08],
                    "西青":[117,39.13],
                    "津南":[117.38,38.98],
                    "北辰":[117.13,39.22],
                    "武清":[117.03,39.38],
                    "宝坻":[117.3,39.72],
                    "滨海":[117.68,39.03],
                    "宁河":[117.82,39.33],
                    "静海":[116.92,38.93],
                    "蓟州":[117.4,40.05],
                    "黄浦":[121.48,31.23],
                    "卢湾":[121.47,31.22],
                    "徐汇":[121.43,31.18],
                    "长宁":[121.42,31.22],
                    "静安":[121.45,31.23],
                    "普陀":[121.4,31.25],
                    "闸北":[121.45,31.25],
                    "虹口":[121.5,31.27],
                    "杨浦":[121.52,31.27],
                    "闵行":[121.38,31.12],
                    "宝山":[121.48,31.4],
                    "嘉定":[121.27,31.38],
                    "浦东":[121.53,31.22],
                    "金山":[121.33,30.75],
                    "松江":[121.22,31.03],
                    "青浦":[121.12,31.15],
                    "南汇":[121.75,31.05],
                    "奉贤":[121.47,30.92],
                    "崇明县":[121.4,31.62],
                }
    
            // 省会城市及直辖市的经纬度坐标
            var chinaProvinceGeoCordMap = {
                '黑龙江': [127.9688, 45.368],
                '内蒙古': [110.3467, 41.4899],
                '吉林': [125.8154, 44.2584],
                '北京': [116.4551, 40.2539],
                '辽宁': [123.1238, 42.1216],
                '河北': [114.4995, 38.1006],
                '天津': [117.4219, 39.4189],
                '山西': [112.3352, 37.9413],
                '陕西': [109.1162, 34.2004],
                '甘肃': [103.5901, 36.3043],
                '宁夏': [106.3586, 38.1775],
                '青海': [101.4038, 36.8207],
                '新疆': [87.9236, 43.5883],
                '西藏': [91.11, 29.97],
                '四川': [103.9526, 30.7617],
                '重庆': [108.384366, 30.439702],
                '山东': [117.1582, 36.8701],
                '河南': [113.4668, 34.6234],
                '江苏': [118.8062, 31.9208],
                '安徽': [117.29, 32.0581],
                '湖北': [114.3896, 30.6628],
                '浙江': [119.5313, 29.8773],
                '福建': [119.4543, 25.9222],
                '江西': [116.0046, 28.6633],
                '湖南': [113.0823, 28.2568],
                '贵州': [106.6992, 26.7682],
                '云南': [102.9199, 25.4663],
                '广东': [113.12244, 23.009505],
                '广西': [108.479, 23.1152],
                '海南': [110.3893, 19.8516],
                '上海': [121.4648, 31.2891]
            };
  • 相关阅读:
    基础总结篇之三:Activity的task相关
    基础总结篇之一:Activity生命周期
    基础总结篇之二:Activity的四种launchMode
    SAP_清除默认Action
    FICO_Delete error message
    FICO_无法生成凭证(System status CLSD is active (WBS K/A6020372-205-KCCL))
    FICO_导出8月KOB3报表
    FICO_更改BP
    FICO_月末关帐
    SAP_清除默认导出格式
  • 原文地址:https://www.cnblogs.com/liuhao-web/p/11350806.html
Copyright © 2020-2023  润新知