当前位置:   article > 正文

Echarts省份地图展示_echarts地图只显示大于零的

echarts地图只显示大于零的

效果图:

文件中引入的咸阳json数据如下:

xianyang.json

  1. /*
  2. * Licensed to the Apache Software Foundation (ASF) under one
  3. * or more contributor license agreements. See the NOTICE file
  4. * distributed with this work for additional information
  5. * regarding copyright ownership. The ASF licenses this file
  6. * to you under the Apache License, Version 2.0 (the
  7. * "License"); you may not use this file except in compliance
  8. * with the License. You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing,
  13. * software distributed under the License is distributed on an
  14. * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  15. * KIND, either express or implied. See the License for the
  16. * specific language governing permissions and limitations
  17. * under the License.
  18. */
  19. (function (root, factory) {
  20. if (typeof define === 'function' && define.amd) {
  21. // AMD. Register as an anonymous module.
  22. define(['exports', 'echarts'], factory);
  23. } else if (typeof exports === 'object' && typeof exports.nodeName !== 'string') {
  24. // CommonJS
  25. factory(exports, require('echarts'));
  26. } else {
  27. // Browser globals
  28. factory({}, root.echarts);
  29. }
  30. }(this, function (exports, echarts) {
  31. const log = function (msg) {
  32. if (typeof console !== 'undefined') {
  33. console && console.error && console.error(msg);
  34. }
  35. }
  36. if (!echarts) {
  37. log('ECharts is not Loaded');
  38. return;
  39. }
  40. if (!echarts.registerMap) {
  41. log('ECharts Map is not loaded')
  42. return;
  43. }
  44. echarts.registerMap('咸阳',
  45. {
  46. "type": "FeatureCollection",
  47. "features": [
  48. {
  49. "type": "Feature",
  50. "properties": {
  51. "name": "渭城区",
  52. "id": "610404"
  53. },
  54. "geometry": {
  55. "type": "MultiPolygon",
  56. "coordinates": [
  57. [
  58. [
  59. [
  60. 108.840924101563,
  61. 34.4777919746094
  62. ],
  63. [
  64. 108.871898222656,
  65. 34.457622296875
  66. ],
  67. [
  68. 108.897669707031,
  69. 34.4633998847656
  70. ],
  71. [
  72. 108.921429472656,
  73. 34.4479274726562
  74. ],
  75. [
  76. 108.957345,
  77. 34.4438430000001
  78. ],
  79. [
  80. 108.957345,
  81. 34.423843
  82. ],
  83. [
  84. 108.914276152344,
  85. 34.4069118476562
  86. ],
  87. [
  88. 108.85170046875,
  89. 34.3894863105469
  90. ],
  91. [
  92. 108.83298953125,
  93. 34.3781996894532
  94. ],
  95. [
  96. 108.797345,
  97. 34.3638430000001
  98. ],
  99. [
  100. 108.716707792969,
  101. 34.3317116523438
  102. ],
  103. [
  104. 108.70298953125,
  105. 34.3494863105469
  106. ],
  107. [
  108. 108.68170046875,
  109. 34.3581996894531
  110. ],
  111. [
  112. 108.67298953125,
  113. 34.3877358222656
  114. ],
  115. [
  116. 108.706822539063,
  117. 34.4333705878907
  118. ],
  119. [
  120. 108.667345,
  121. 34.463843
  122. ],
  123. [
  124. 108.670704375,
  125. 34.470483625
  126. ],
  127. [
  128. 108.697345,
  129. 34.4838430000001
  130. ],
  131. [
  132. 108.715545683594,
  133. 34.4761977363281
  134. ],
  135. [
  136. 108.732345,
  137. 34.4799636054688
  138. ],
  139. [
  140. 108.755662871094,
  141. 34.4747365546876
  142. ],
  143. [
  144. 108.792515898438,
  145. 34.4902150703125
  146. ],
  147. [
  148. 108.840924101563,
  149. 34.4777919746094
  150. ]
  151. ]
  152. ]
  153. ]
  154. }
  155. },
  156. {
  157. "type": "Feature",
  158. "properties": {
  159. "name": "三原县",
  160. "id": "610422"
  161. },
  162. "geometry": {
  163. "type": "MultiPolygon",
  164. "coordinates": [
  165. [
  166. [
  167. [
  168. 108.967345,
  169. 34.8238430000001
  170. ],
  171. [
  172. 108.992806425781,
  173. 34.8093056464844
  174. ],
  175. [
  176. 109.01095828125,
  177. 34.7874550605469
  178. ],
  179. [
  180. 109.035714140625,
  181. 34.7668910957032
  182. ],
  183. [
  184. 109.0292590625,
  185. 34.7035756660156
  186. ],
  187. [
  188. 109.043192167969,
  189. 34.6868044257813
  190. ],
  191. [
  192. 109.062884550781,
  193. 34.7105104804688
  194. ],
  195. [
  196. 109.162806425781,
  197. 34.6993056464844
  198. ],
  199. [
  200. 109.167345,
  201. 34.693843
  202. ],
  203. [
  204. 109.163260527344,
  205. 34.6679274726563
  206. ],
  207. [
  208. 109.147345,
  209. 34.643843
  210. ],
  211. [
  212. 109.124307890625,
  213. 34.6296486640626
  214. ],
  215. [
  216. 109.136766386719,
  217. 34.5896486640626
  218. ],
  219. [
  220. 109.127345,
  221. 34.583843
  222. ],
  223. [
  224. 109.036781035156,
  225. 34.5951576972657
  226. ],
  227. [
  228. 108.992899199219,
  229. 34.5782900214844
  230. ],
  231. [
  232. 108.947345,
  233. 34.573843
  234. ],
  235. [
  236. 108.925662871094,
  237. 34.5829494453125
  238. ],
  239. [
  240. 108.901673613281,
  241. 34.5775722480469
  242. ],
  243. [
  244. 108.881651640625,
  245. 34.6065724921875
  246. ],
  247. [
  248. 108.873260527344,
  249. 34.6576625800782
  250. ],
  251. [
  252. 108.915767851563,
  253. 34.6685707832031
  254. ],
  255. [
  256. 108.905811796875,
  257. 34.7129824042969
  258. ],
  259. [
  260. 108.859581328125,
  261. 34.7026186347656
  262. ],
  263. [
  264. 108.833260527344,
  265. 34.7197585273438
  266. ],
  267. [
  268. 108.801429472656,
  269. 34.7279274726563
  270. ],
  271. [
  272. 108.787345,
  273. 34.733843
  274. ],
  275. [
  276. 108.780704375,
  277. 34.747202375
  278. ],
  279. [
  280. 108.773985625,
  281. 34.7891274238282
  282. ],
  283. [
  284. 108.813985625,
  285. 34.797202375
  286. ],
  287. [
  288. 108.817345,
  289. 34.803843
  290. ],
  291. [
  292. 108.852064238281,
  293. 34.8203273750001
  294. ],
  295. [
  296. 108.888533964844,
  297. 34.8100783515626
  298. ],
  299. [
  300. 108.906246367188,
  301. 34.8377455878907
  302. ],
  303. [
  304. 108.953441191406,
  305. 34.8299404121094
  306. ],
  307. [
  308. 108.967345,
  309. 34.8238430000001
  310. ]
  311. ]
  312. ]
  313. ]
  314. }
  315. },
  316. {
  317. "type": "Feature",
  318. "properties": {
  319. "name": "彬县",
  320. "id": "610427"
  321. },
  322. "geometry": {
  323. "type": "MultiPolygon",
  324. "coordinates": [
  325. [
  326. [
  327. [
  328. 108.149163847656,
  329. 35.2323220039063
  330. ],
  331. [
  332. 108.183577910156,
  333. 35.2068080878907
  334. ],
  335. [
  336. 108.202857695313,
  337. 35.2096572089844
  338. ],
  339. [
  340. 108.21170046875,
  341. 35.1981996894532
  342. ],
  343. [
  344. 108.223519316406,
  345. 35.189077375
  346. ],
  347. [
  348. 108.198707304688,
  349. 35.1479457832032
  350. ],
  351. [
  352. 108.180418730469,
  353. 35.0528163886719
  354. ],
  355. [
  356. 108.201654082031,
  357. 35.0253041816406
  358. ],
  359. [
  360. 108.255257597656,
  361. 34.9855629707032
  362. ],
  363. [
  364. 108.31298953125,
  365. 34.9694863105469
  366. ],
  367. [
  368. 108.347345,
  369. 34.953843
  370. ],
  371. [
  372. 108.343985625,
  373. 34.937202375
  374. ],
  375. [
  376. 108.320704375,
  377. 34.890483625
  378. ],
  379. [
  380. 108.317345,
  381. 34.873843
  382. ],
  383. [
  384. 108.307345,
  385. 34.873843
  386. ],
  387. [
  388. 108.307345,
  389. 34.8638430000001
  390. ],
  391. [
  392. 108.277623320313,
  393. 34.8811464667969
  394. ],
  395. [
  396. 108.25209109375,
  397. 34.90972190625
  398. ],
  399. [
  400. 108.231080351563,
  401. 34.9084694648438
  402. ],
  403. [
  404. 108.212625761719,
  405. 34.9291237617188
  406. ],
  407. [
  408. 108.202064238281,
  409. 34.9385622382813
  410. ],
  411. [
  412. 108.192625761719,
  413. 34.9491237617188
  414. ],
  415. [
  416. 108.177323027344,
  417. 34.962798078125
  418. ],
  419. [
  420. 108.120130644531,
  421. 34.9228481269531
  422. ],
  423. [
  424. 108.032064238281,
  425. 34.9091237617188
  426. ],
  427. [
  428. 108.02259890625,
  429. 34.8985305000001
  430. ],
  431. [
  432. 108.012120390625,
  433. 34.8991542792969
  434. ],
  435. [
  436. 107.947345,
  437. 34.8638430000001
  438. ],
  439. [
  440. 107.931429472656,
  441. 34.8597585273438
  442. ],
  443. [
  444. 107.917652617188,
  445. 34.8398061347657
  446. ],
  447. [
  448. 107.872345,
  449. 34.8499636054688
  450. ],
  451. [
  452. 107.850369902344,
  453. 34.8450380683594
  454. ],
  455. [
  456. 107.853529082031,
  457. 34.8591213203126
  458. ],
  459. [
  460. 107.841160917969,
  461. 34.8885646796875
  462. ],
  463. [
  464. 107.843565703125,
  465. 34.8992897773438
  466. ],
  467. [
  468. 107.831429472656,
  469. 34.9179274726563
  470. ],
  471. [
  472. 107.817345,
  473. 34.9738430000001
  474. ],
  475. [
  476. 107.817345,
  477. 34.983843
  478. ],
  479. [
  480. 107.857345,
  481. 34.983843
  482. ],
  483. [
  484. 107.857345,
  485. 34.993843
  486. ],
  487. [
  488. 107.870152617188,
  489. 34.998843
  490. ],
  491. [
  492. 107.857345,
  493. 35.003843
  494. ],
  495. [
  496. 107.886922636719,
  497. 35.0468581367188
  498. ],
  499. [
  500. 107.905159941406,
  501. 35.0240846992188
  502. ],
  503. [
  504. 107.924049101563,
  505. 35.0392104316407
  506. ],
  507. [
  508. 107.957337675781,
  509. 35.0958412910157
  510. ],
  511. [
  512. 107.931070585938,
  513. 35.1168740058594
  514. ],
  515. [
  516. 107.943155546875,
  517. 35.1591896796875
  518. ],
  519. [
  520. 107.93134890625,
  521. 35.1686440253906
  522. ],
  523. [
  524. 107.94322390625,
  525. 35.188843
  526. ],
  527. [
  528. 107.930213652344,
  529. 35.2109743476563
  530. ],
  531. [
  532. 107.971790800781,
  533. 35.2058022285157
  534. ],
  535. [
  536. 107.952899199219,
  537. 35.2293959785157
  538. ],
  539. [
  540. 107.941102324219,
  541. 35.2388430000001
  542. ],
  543. [
  544. 107.947345,
  545. 35.2438430000001
  546. ],
  547. [
  548. 108.046749296875,
  549. 35.2539821601563
  550. ],
  551. [
  552. 108.09197390625,
  553. 35.2792153144531
  554. ],
  555. [
  556. 108.127345,
  557. 35.2838430000001
  558. ],
  559. [
  560. 108.136058378906,
  561. 35.2725551582031
  562. ],
  563. [
  564. 108.153160429688,
  565. 35.2593544746095
  566. ],
  567. [
  568. 108.149163847656,
  569. 35.2323220039063
  570. ]
  571. ]
  572. ]
  573. ]
  574. }
  575. },
  576. {
  577. "type": "Feature",
  578. "properties": {
  579. "name": "长武县",
  580. "id": "610428"
  581. },
  582. "geometry": {
  583. "type": "MultiPolygon",
  584. "coordinates": [
  585. [
  586. [
  587. [
  588. 107.857345,
  589. 35.003843
  590. ],
  591. [
  592. 107.870152617188,
  593. 34.998843
  594. ],
  595. [
  596. 107.857345,
  597. 34.993843
  598. ],
  599. [
  600. 107.857345,
  601. 35.003843
  602. ]
  603. ]
  604. ],
  605. [
  606. [
  607. [
  608. 107.713922148438,
  609. 35.3060353828126
  610. ],
  611. [
  612. 107.717345,
  613. 35.293843
  614. ],
  615. [
  616. 107.705152617188,
  617. 35.2972658515625
  618. ],
  619. [
  620. 107.713922148438,
  621. 35.3060353828126
  622. ]
  623. ]
  624. ],
  625. [
  626. [
  627. [
  628. 107.857345,
  629. 35.003843
  630. ],
  631. [
  632. 107.84170046875,
  633. 35.0081996894532
  634. ],
  635. [
  636. 107.83298953125,
  637. 35.0194863105469
  638. ],
  639. [
  640. 107.81170046875,
  641. 35.0281996894532
  642. ],
  643. [
  644. 107.763421660156,
  645. 35.0639931464844
  646. ],
  647. [
  648. 107.75298953125,
  649. 35.0894863105469
  650. ],
  651. [
  652. 107.720924101563,
  653. 35.1142360664063
  654. ],
  655. [
  656. 107.72312625,
  657. 35.1291347480469
  658. ],
  659. [
  660. 107.703875761719,
  661. 35.1781069160157
  662. ],
  663. [
  664. 107.687345,
  665. 35.2038430000001
  666. ],
  667. [
  668. 107.683079863281,
  669. 35.2095778632813
  670. ],
  671. [
  672. 107.656419707031,
  673. 35.2201711250001
  674. ],
  675. [
  676. 107.650084257813,
  677. 35.2569802070313
  678. ],
  679. [
  680. 107.713690214844,
  681. 35.2460292792969
  682. ],
  683. [
  684. 107.70998171875,
  685. 35.2675746894532
  686. ],
  687. [
  688. 107.722345,
  689. 35.2697035957031
  690. ],
  691. [
  692. 107.736932402344,
  693. 35.267192609375
  694. ],
  695. [
  696. 107.729859648438,
  697. 35.3082753730469
  698. ],
  699. [
  700. 107.737345,
  701. 35.3138430000001
  702. ],
  703. [
  704. 107.77298953125,
  705. 35.2994863105469
  706. ],
  707. [
  708. 107.79170046875,
  709. 35.2881996894532
  710. ],
  711. [
  712. 107.84298953125,
  713. 35.2694863105469
  714. ],
  715. [
  716. 107.861954375,
  717. 35.2580458808594
  718. ],
  719. [
  720. 107.887345,
  721. 35.2617983222657
  722. ],
  723. [
  724. 107.919906035156,
  725. 35.25698753125
  726. ],
  727. [
  728. 107.937345,
  729. 35.263843
  730. ],
  731. [
  732. 107.955467558594,
  733. 35.2601845527344
  734. ],
  735. [
  736. 107.947345,
  737. 35.2438430000001
  738. ],
  739. [
  740. 107.941102324219,
  741. 35.2388430000001
  742. ],
  743. [
  744. 107.952899199219,
  745. 35.2293959785157
  746. ],
  747. [
  748. 107.971790800781,
  749. 35.2058022285157
  750. ],
  751. [
  752. 107.930213652344,
  753. 35.2109743476563
  754. ],
  755. [
  756. 107.94322390625,
  757. 35.188843
  758. ],
  759. [
  760. 107.93134890625,
  761. 35.1686440253906
  762. ],
  763. [
  764. 107.943155546875,
  765. 35.1591896796875
  766. ],
  767. [
  768. 107.931070585938,
  769. 35.1168740058594
  770. ],
  771. [
  772. 107.957337675781,
  773. 35.0958412910157
  774. ],
  775. [
  776. 107.924049101563,
  777. 35.0392104316407
  778. ],
  779. [
  780. 107.905159941406,
  781. 35.0240846992188
  782. ],
  783. [
  784. 107.886922636719,
  785. 35.0468581367188
  786. ],
  787. [
  788. 107.857345,
  789. 35.003843
  790. ]
  791. ]
  792. ]
  793. ]
  794. }
  795. },
  796. {
  797. "type": "Feature",
  798. "properties": {
  799. "name": "淳化县",
  800. "id": "610430"
  801. },
  802. "geometry": {
  803. "type": "MultiPolygon",
  804. "coordinates": [
  805. [
  806. [
  807. [
  808. 108.443922148438,
  809. 34.7860353828125
  810. ],
  811. [
  812. 108.447345,
  813. 34.773843
  814. ],
  815. [
  816. 108.435152617188,
  817. 34.7772658515625
  818. ],
  819. [
  820. 108.443922148438,
  821. 34.7860353828125
  822. ]
  823. ]
  824. ],
  825. [
  826. [
  827. [
  828. 108.317345,
  829. 34.8638430000001
  830. ],
  831. [
  832. 108.312345,
  833. 34.8510353828125
  834. ],
  835. [
  836. 108.307345,
  837. 34.8638430000001
  838. ],
  839. [
  840. 108.317345,
  841. 34.8638430000001
  842. ]
  843. ]
  844. ],
  845. [
  846. [
  847. [
  848. 108.317345,
  849. 34.8638430000001
  850. ],
  851. [
  852. 108.317345,
  853. 34.873843
  854. ],
  855. [
  856. 108.320704375,
  857. 34.890483625
  858. ],
  859. [
  860. 108.343985625,
  861. 34.937202375
  862. ],
  863. [
  864. 108.347345,
  865. 34.953843
  866. ],
  867. [
  868. 108.394542265625,
  869. 34.9806752753907
  870. ],
  871. [
  872. 108.439476347656,
  873. 34.9770644355469
  874. ],
  875. [
  876. 108.45271609375,
  877. 34.9884706855469
  878. ],
  879. [
  880. 108.489432402344,
  881. 35.0310854316407
  882. ],
  883. [
  884. 108.533060332031,
  885. 35.0275807929688
  886. ],
  887. [
  888. 108.577345,
  889. 35.043843
  890. ],
  891. [
  892. 108.585513945313,
  893. 35.0320119453125
  894. ],
  895. [
  896. 108.610345488281,
  897. 35.0148671699219
  898. ],
  899. [
  900. 108.631429472656,
  901. 34.9779274726563
  902. ],
  903. [
  904. 108.643260527344,
  905. 34.9697585273438
  906. ],
  907. [
  908. 108.661429472656,
  909. 34.9179274726563
  910. ],
  911. [
  912. 108.673260527344,
  913. 34.9097585273438
  914. ],
  915. [
  916. 108.682850371094,
  917. 34.8841310859375
  918. ],
  919. [
  920. 108.722066679688,
  921. 34.8676601386719
  922. ],
  923. [
  924. 108.761673613281,
  925. 34.8765395332032
  926. ],
  927. [
  928. 108.781429472656,
  929. 34.8479274726563
  930. ],
  931. [
  932. 108.808646269531,
  933. 34.8377443671876
  934. ],
  935. [
  936. 108.817345,
  937. 34.803843
  938. ],
  939. [
  940. 108.813985625,
  941. 34.797202375
  942. ],
  943. [
  944. 108.773985625,
  945. 34.7891274238282
  946. ],
  947. [
  948. 108.780704375,
  949. 34.747202375
  950. ],
  951. [
  952. 108.787345,
  953. 34.733843
  954. ],
  955. [
  956. 108.771790800781,
  957. 34.7293959785156
  958. ],
  959. [
  960. 108.688397246094,
  961. 34.7159523750001
  962. ],
  963. [
  964. 108.592899199219,
  965. 34.7293959785156
  966. ],
  967. [
  968. 108.507345,
  969. 34.733843
  970. ],
  971. [
  972. 108.481715117188,
  973. 34.7720644355469
  974. ],
  975. [
  976. 108.458538847656,
  977. 34.7668691230469
  978. ],
  979. [
  980. 108.463656035156,
  981. 34.7896962714844
  982. ],
  983. [
  984. 108.407955351563,
  985. 34.7984743476563
  986. ],
  987. [
  988. 108.391673613281,
  989. 34.822055890625
  990. ],
  991. [
  992. 108.371898222656,
  993. 34.817622296875
  994. ],
  995. [
  996. 108.353260527344,
  997. 34.8297585273438
  998. ],
  999. [
  1000. 108.337345,
  1001. 34.833843
  1002. ],
  1003. [
  1004. 108.323985625,
  1005. 34.860483625
  1006. ],
  1007. [
  1008. 108.317345,
  1009. 34.8638430000001
  1010. ]
  1011. ]
  1012. ]
  1013. ]
  1014. }
  1015. },
  1016. {
  1017. "type": "Feature",
  1018. "properties": {
  1019. "name": "礼泉县",
  1020. "id": "610425"
  1021. },
  1022. "geometry": {
  1023. "type": "MultiPolygon",
  1024. "coordinates": [
  1025. [
  1026. [
  1027. [
  1028. 108.597345,
  1029. 34.433843
  1030. ],
  1031. [
  1032. 108.620343046875,
  1033. 34.4297902656251
  1034. ],
  1035. [
  1036. 108.602779570313,
  1037. 34.4211464667969
  1038. ],
  1039. [
  1040. 108.597345,
  1041. 34.433843
  1042. ]
  1043. ]
  1044. ],
  1045. [
  1046. [
  1047. [
  1048. 108.597345,
  1049. 34.433843
  1050. ],
  1051. [
  1052. 108.567345,
  1053. 34.433843
  1054. ],
  1055. [
  1056. 108.557235136719,
  1057. 34.4474318671875
  1058. ],
  1059. [
  1060. 108.49998171875,
  1061. 34.4375746894532
  1062. ],
  1063. [
  1064. 108.504830351563,
  1065. 34.4094106269531
  1066. ],
  1067. [
  1068. 108.491610136719,
  1069. 34.3995778632812
  1070. ],
  1071. [
  1072. 108.483079863281,
  1073. 34.3881081367188
  1074. ],
  1075. [
  1076. 108.457957792969,
  1077. 34.3695778632813
  1078. ],
  1079. [
  1080. 108.442913847656,
  1081. 34.3898012519532
  1082. ],
  1083. [
  1084. 108.412799101563,
  1085. 34.3846169257813
  1086. ],
  1087. [
  1088. 108.393079863281,
  1089. 34.3581081367187
  1090. ],
  1091. [
  1092. 108.367345,
  1093. 34.353843
  1094. ],
  1095. [
  1096. 108.383616972656,
  1097. 34.4284401679688
  1098. ],
  1099. [
  1100. 108.371646757813,
  1101. 34.4387526679688
  1102. ],
  1103. [
  1104. 108.394215117188,
  1105. 34.4705825019532
  1106. ],
  1107. [
  1108. 108.391942167969,
  1109. 34.498843
  1110. ],
  1111. [
  1112. 108.394398222656,
  1113. 34.52940940625
  1114. ],
  1115. [
  1116. 108.377345,
  1117. 34.5280397773437
  1118. ],
  1119. [
  1120. 108.354561796875,
  1121. 34.5298696113282
  1122. ],
  1123. [
  1124. 108.34271609375,
  1125. 34.5692153144532
  1126. ],
  1127. [
  1128. 108.330516386719,
  1129. 34.5910829902344
  1130. ],
  1131. [
  1132. 108.333551054688,
  1133. 34.6288430000001
  1134. ],
  1135. [
  1136. 108.331942167969,
  1137. 34.648843
  1138. ],
  1139. [
  1140. 108.332747832031,
  1141. 34.658843
  1142. ],
  1143. [
  1144. 108.330870390625,
  1145. 34.6821901679688
  1146. ],
  1147. [
  1148. 108.31197390625,
  1149. 34.6984706855469
  1150. ],
  1151. [
  1152. 108.307345,
  1153. 34.733843
  1154. ],
  1155. [
  1156. 108.2941809375,
  1157. 34.7614382148438
  1158. ],
  1159. [
  1160. 108.314583769531,
  1161. 34.7884133125001
  1162. ],
  1163. [
  1164. 108.30990359375,
  1165. 34.7997646308594
  1166. ],
  1167. [
  1168. 108.332701445313,
  1169. 34.81226096875
  1170. ],
  1171. [
  1172. 108.337345,
  1173. 34.833843
  1174. ],
  1175. [
  1176. 108.353260527344,
  1177. 34.8297585273438
  1178. ],
  1179. [
  1180. 108.371898222656,
  1181. 34.817622296875
  1182. ],
  1183. [
  1184. 108.391673613281,
  1185. 34.822055890625
  1186. ],
  1187. [
  1188. 108.407955351563,
  1189. 34.7984743476563
  1190. ],
  1191. [
  1192. 108.463656035156,
  1193. 34.7896962714844
  1194. ],
  1195. [
  1196. 108.458538847656,
  1197. 34.7668691230469
  1198. ],
  1199. [
  1200. 108.481715117188,
  1201. 34.7720644355469
  1202. ],
  1203. [
  1204. 108.507345,
  1205. 34.733843
  1206. ],
  1207. [
  1208. 108.49298953125,
  1209. 34.7227614570312
  1210. ],
  1211. [
  1212. 108.511832304688,
  1213. 34.6980287910157
  1214. ],
  1215. [
  1216. 108.522857695313,
  1217. 34.6996572089844
  1218. ],
  1219. [
  1220. 108.531832304688,
  1221. 34.6880287910156
  1222. ],
  1223. [
  1224. 108.557088652344,
  1225. 34.6917604804688
  1226. ],
  1227. [
  1228. 108.574486113281,
  1229. 34.6783315253906
  1230. ],
  1231. [
  1232. 108.571400175781,
  1233. 34.657455060547
  1234. ],
  1235. [
  1236. 108.602323027344,
  1237. 34.6173952460937
  1238. ],
  1239. [
  1240. 108.64170046875,
  1241. 34.5881996894531
  1242. ],
  1243. [
  1244. 108.687471953125,
  1245. 34.578540265625
  1246. ],
  1247. [
  1248. 108.681605253906,
  1249. 34.538843
  1250. ],
  1251. [
  1252. 108.683822050781,
  1253. 34.5238430000001
  1254. ],
  1255. [
  1256. 108.681546660156,
  1257. 34.5084401679688
  1258. ],
  1259. [
  1260. 108.697345,
  1261. 34.4838430000001
  1262. ],
  1263. [
  1264. 108.670704375,
  1265. 34.470483625
  1266. ],
  1267. [
  1268. 108.667345,
  1269. 34.463843
  1270. ],
  1271. [
  1272. 108.647667265625,
  1273. 34.4688930488282
  1274. ],
  1275. [
  1276. 108.633016386719,
  1277. 34.4901137519531
  1278. ],
  1279. [
  1280. 108.607725859375,
  1281. 34.4844448066407
  1282. ],
  1283. [
  1284. 108.613568144531,
  1285. 34.4583913398438
  1286. ],
  1287. [
  1288. 108.597345,
  1289. 34.433843
  1290. ]
  1291. ],
  1292. [
  1293. [
  1294. 108.447345,
  1295. 34.773843
  1296. ],
  1297. [
  1298. 108.443922148438,
  1299. 34.7860353828125
  1300. ],
  1301. [
  1302. 108.435152617188,
  1303. 34.7772658515625
  1304. ],
  1305. [
  1306. 108.447345,
  1307. 34.773843
  1308. ]
  1309. ]
  1310. ]
  1311. ]
  1312. }
  1313. },
  1314. {
  1315. "type": "Feature",
  1316. "properties": {
  1317. "name": "乾县",
  1318. "id": "610424"
  1319. },
  1320. "geometry": {
  1321. "type": "MultiPolygon",
  1322. "coordinates": [
  1323. [
  1324. [
  1325. [
  1326. 108.317345,
  1327. 34.353843
  1328. ],
  1329. [
  1330. 108.313922148438,
  1331. 34.3416506171875
  1332. ],
  1333. [
  1334. 108.305152617188,
  1335. 34.3504201484376
  1336. ],
  1337. [
  1338. 108.317345,
  1339. 34.353843
  1340. ]
  1341. ]
  1342. ],
  1343. [
  1344. [
  1345. [
  1346. 108.317345,
  1347. 34.353843
  1348. ],
  1349. [
  1350. 108.310079375,
  1351. 34.3622768378906
  1352. ],
  1353. [
  1354. 108.262105742188,
  1355. 34.3584218574219
  1356. ],
  1357. [
  1358. 108.223504667969,
  1359. 34.3725978828126
  1360. ],
  1361. [
  1362. 108.2022278125,
  1363. 34.3479018378907
  1364. ],
  1365. [
  1366. 108.192569609375,
  1367. 34.3695473457032
  1368. ],
  1369. [
  1370. 108.165460234375,
  1371. 34.3544228339844
  1372. ],
  1373. [
  1374. 108.15271609375,
  1375. 34.3692153144532
  1376. ],
  1377. [
  1378. 108.1119153125,
  1379. 34.3784841132813
  1380. ],
  1381. [
  1382. 108.112769804688,
  1383. 34.3891213203125
  1384. ],
  1385. [
  1386. 108.101219511719,
  1387. 34.4098232246094
  1388. ],
  1389. [
  1390. 108.103656035156,
  1391. 34.4401540351562
  1392. ],
  1393. [
  1394. 108.082620878906,
  1395. 34.4284169746094
  1396. ],
  1397. [
  1398. 108.017345,
  1399. 34.433843
  1400. ],
  1401. [
  1402. 108.003026152344,
  1403. 34.4457363105469
  1404. ],
  1405. [
  1406. 108.017345,
  1407. 34.4838430000001
  1408. ],
  1409. [
  1410. 108.025513945313,
  1411. 34.5156740546875
  1412. ],
  1413. [
  1414. 108.043260527344,
  1415. 34.5279274726562
  1416. ],
  1417. [
  1418. 108.056344023438,
  1419. 34.5628932929688
  1420. ],
  1421. [
  1422. 108.12154421875,
  1423. 34.5333425117188
  1424. ],
  1425. [
  1426. 108.131429472656,
  1427. 34.5597585273438
  1428. ],
  1429. [
  1430. 108.157166777344,
  1431. 34.5775283027344
  1432. ],
  1433. [
  1434. 108.121429472656,
  1435. 34.5979274726563
  1436. ],
  1437. [
  1438. 108.102984648438,
  1439. 34.6302407050782
  1440. ],
  1441. [
  1442. 108.050699492188,
  1443. 34.6140334296875
  1444. ],
  1445. [
  1446. 108.027345,
  1447. 34.623843
  1448. ],
  1449. [
  1450. 108.023260527344,
  1451. 34.6497585273437
  1452. ],
  1453. [
  1454. 108.017345,
  1455. 34.6738430000001
  1456. ],
  1457. [
  1458. 108.037515898438,
  1459. 34.6817726875
  1460. ],
  1461. [
  1462. 108.072345,
  1463. 34.676626203125
  1464. ],
  1465. [
  1466. 108.092857695313,
  1467. 34.6796572089844
  1468. ],
  1469. [
  1470. 108.101832304688,
  1471. 34.6680287910157
  1472. ],
  1473. [
  1474. 108.112857695313,
  1475. 34.6696572089844
  1476. ],
  1477. [
  1478. 108.121846953125,
  1479. 34.6580117011719
  1480. ],
  1481. [
  1482. 108.192310820313,
  1483. 34.6695864082032
  1484. ],
  1485. [
  1486. 108.208695097656,
  1487. 34.6671657539063
  1488. ],
  1489. [
  1490. 108.223377714844,
  1491. 34.6784987617188
  1492. ],
  1493. [
  1494. 108.2112903125,
  1495. 34.7092421699219
  1496. ],
  1497. [
  1498. 108.24298953125,
  1499. 34.7281996894531
  1500. ],
  1501. [
  1502. 108.272279082031,
  1503. 34.7499147773438
  1504. ],
  1505. [
  1506. 108.29170046875,
  1507. 34.7381996894531
  1508. ],
  1509. [
  1510. 108.307345,
  1511. 34.733843
  1512. ],
  1513. [
  1514. 108.31197390625,
  1515. 34.6984706855469
  1516. ],
  1517. [
  1518. 108.330870390625,
  1519. 34.6821901679688
  1520. ],
  1521. [
  1522. 108.332747832031,
  1523. 34.658843
  1524. ],
  1525. [
  1526. 108.331942167969,
  1527. 34.648843
  1528. ],
  1529. [
  1530. 108.333551054688,
  1531. 34.6288430000001
  1532. ],
  1533. [
  1534. 108.330516386719,
  1535. 34.5910829902344
  1536. ],
  1537. [
  1538. 108.34271609375,
  1539. 34.5692153144532
  1540. ],
  1541. [
  1542. 108.354561796875,
  1543. 34.5298696113282
  1544. ],
  1545. [
  1546. 108.377345,
  1547. 34.5280397773437
  1548. ],
  1549. [
  1550. 108.394398222656,
  1551. 34.52940940625
  1552. ],
  1553. [
  1554. 108.391942167969,
  1555. 34.498843
  1556. ],
  1557. [
  1558. 108.394215117188,
  1559. 34.4705825019532
  1560. ],
  1561. [
  1562. 108.371646757813,
  1563. 34.4387526679688
  1564. ],
  1565. [
  1566. 108.383616972656,
  1567. 34.4284401679688
  1568. ],
  1569. [
  1570. 108.367345,
  1571. 34.353843
  1572. ],
  1573. [
  1574. 108.364388457031,
  1575. 34.321938703125
  1576. ],
  1577. [
  1578. 108.344801054688,
  1579. 34.3412990546875
  1580. ],
  1581. [
  1582. 108.327345,
  1583. 34.343843
  1584. ],
  1585. [
  1586. 108.327345,
  1587. 34.353843
  1588. ],
  1589. [
  1590. 108.317345,
  1591. 34.353843
  1592. ]
  1593. ]
  1594. ]
  1595. ]
  1596. }
  1597. },
  1598. {
  1599. "type": "Feature",
  1600. "properties": {
  1601. "name": "秦都区",
  1602. "id": "610402"
  1603. },
  1604. "geometry": {
  1605. "type": "MultiPolygon",
  1606. "coordinates": [
  1607. [
  1608. [
  1609. [
  1610. 108.597345,
  1611. 34.433843
  1612. ],
  1613. [
  1614. 108.602779570313,
  1615. 34.4211464667969
  1616. ],
  1617. [
  1618. 108.620343046875,
  1619. 34.4297902656251
  1620. ],
  1621. [
  1622. 108.613568144531,
  1623. 34.4583913398438
  1624. ],
  1625. [
  1626. 108.607725859375,
  1627. 34.4844448066407
  1628. ],
  1629. [
  1630. 108.633016386719,
  1631. 34.4901137519531
  1632. ],
  1633. [
  1634. 108.647667265625,
  1635. 34.4688930488282
  1636. ],
  1637. [
  1638. 108.667345,
  1639. 34.463843
  1640. ],
  1641. [
  1642. 108.706822539063,
  1643. 34.4333705878907
  1644. ],
  1645. [
  1646. 108.67298953125,
  1647. 34.3877358222656
  1648. ],
  1649. [
  1650. 108.68170046875,
  1651. 34.3581996894531
  1652. ],
  1653. [
  1654. 108.70298953125,
  1655. 34.3494863105469
  1656. ],
  1657. [
  1658. 108.716707792969,
  1659. 34.3317116523438
  1660. ],
  1661. [
  1662. 108.797345,
  1663. 34.3638430000001
  1664. ],
  1665. [
  1666. 108.789234648438,
  1667. 34.3144728828125
  1668. ],
  1669. [
  1670. 108.797345,
  1671. 34.2938430000001
  1672. ],
  1673. [
  1674. 108.751158476563,
  1675. 34.2900307441406
  1676. ],
  1677. [
  1678. 108.743150664063,
  1679. 34.2770351386719
  1680. ],
  1681. [
  1682. 108.727345,
  1683. 34.281958234375
  1684. ],
  1685. [
  1686. 108.690296660156,
  1687. 34.2704177070313
  1688. ],
  1689. [
  1690. 108.694034453125,
  1691. 34.2584218574219
  1692. ],
  1693. [
  1694. 108.682017851563,
  1695. 34.2400307441406
  1696. ],
  1697. [
  1698. 108.653531523438,
  1699. 34.2600307441407
  1700. ],
  1701. [
  1702. 108.637345,
  1703. 34.263843
  1704. ],
  1705. [
  1706. 108.621363554688,
  1707. 34.2558986640625
  1708. ],
  1709. [
  1710. 108.617345,
  1711. 34.263843
  1712. ],
  1713. [
  1714. 108.6108996875,
  1715. 34.2922194648438
  1716. ],
  1717. [
  1718. 108.613023710938,
  1719. 34.3092958808594
  1720. ],
  1721. [
  1722. 108.60134890625,
  1723. 34.3186440253907
  1724. ],
  1725. [
  1726. 108.613011503906,
  1727. 34.3384828925781
  1728. ],
  1729. [
  1730. 108.611241484375,
  1731. 34.3527150703125
  1732. ],
  1733. [
  1734. 108.573736601563,
  1735. 34.38274925
  1736. ],
  1737. [
  1738. 108.567345,
  1739. 34.433843
  1740. ],
  1741. [
  1742. 108.597345,
  1743. 34.433843
  1744. ]
  1745. ]
  1746. ]
  1747. ]
  1748. }
  1749. },
  1750. {
  1751. "type": "Feature",
  1752. "properties": {
  1753. "name": "武功县",
  1754. "id": "610431"
  1755. },
  1756. "geometry": {
  1757. "type": "MultiPolygon",
  1758. "coordinates": [
  1759. [
  1760. [
  1761. [
  1762. 108.317345,
  1763. 34.353843
  1764. ],
  1765. [
  1766. 108.305152617188,
  1767. 34.3504201484376
  1768. ],
  1769. [
  1770. 108.313922148438,
  1771. 34.3416506171875
  1772. ],
  1773. [
  1774. 108.327345,
  1775. 34.353843
  1776. ],
  1777. [
  1778. 108.327345,
  1779. 34.343843
  1780. ],
  1781. [
  1782. 108.311937285156,
  1783. 34.3046474433594
  1784. ],
  1785. [
  1786. 108.307345,
  1787. 34.203843
  1788. ],
  1789. [
  1790. 108.29263796875,
  1791. 34.2097548652344
  1792. ],
  1793. [
  1794. 108.234989042969,
  1795. 34.1998293281251
  1796. ],
  1797. [
  1798. 108.203079863281,
  1799. 34.2195778632813
  1800. ],
  1801. [
  1802. 108.111610136719,
  1803. 34.2281081367188
  1804. ],
  1805. [
  1806. 108.107345,
  1807. 34.233843
  1808. ],
  1809. [
  1810. 108.111248808594,
  1811. 34.2399404121094
  1812. ],
  1813. [
  1814. 108.131109648438,
  1815. 34.2526552558594
  1816. ],
  1817. [
  1818. 108.118782988281,
  1819. 34.2965212226562
  1820. ],
  1821. [
  1822. 108.092764921875,
  1823. 34.3131764960938
  1824. ],
  1825. [
  1826. 108.06310671875,
  1827. 34.3048415351563
  1828. ],
  1829. [
  1830. 108.053441191406,
  1831. 34.3199404121094
  1832. ],
  1833. [
  1834. 108.047345,
  1835. 34.3238430000001
  1836. ],
  1837. [
  1838. 108.04298953125,
  1839. 34.3394863105469
  1840. ],
  1841. [
  1842. 108.029173613281,
  1843. 34.3623879218751
  1844. ],
  1845. [
  1846. 108.033616972656,
  1847. 34.3924513984376
  1848. ],
  1849. [
  1850. 108.017345,
  1851. 34.433843
  1852. ],
  1853. [
  1854. 108.082620878906,
  1855. 34.4284169746094
  1856. ],
  1857. [
  1858. 108.103656035156,
  1859. 34.4401540351562
  1860. ],
  1861. [
  1862. 108.101219511719,
  1863. 34.4098232246094
  1864. ],
  1865. [
  1866. 108.112769804688,
  1867. 34.3891213203125
  1868. ],
  1869. [
  1870. 108.1119153125,
  1871. 34.3784841132813
  1872. ],
  1873. [
  1874. 108.15271609375,
  1875. 34.3692153144532
  1876. ],
  1877. [
  1878. 108.165460234375,
  1879. 34.3544228339844
  1880. ],
  1881. [
  1882. 108.192569609375,
  1883. 34.3695473457032
  1884. ],
  1885. [
  1886. 108.2022278125,
  1887. 34.3479018378907
  1888. ],
  1889. [
  1890. 108.223504667969,
  1891. 34.3725978828126
  1892. ],
  1893. [
  1894. 108.262105742188,
  1895. 34.3584218574219
  1896. ],
  1897. [
  1898. 108.310079375,
  1899. 34.3622768378906
  1900. ],
  1901. [
  1902. 108.317345,
  1903. 34.353843
  1904. ]
  1905. ]
  1906. ]
  1907. ]
  1908. }
  1909. },
  1910. {
  1911. "type": "Feature",
  1912. "properties": {
  1913. "name": "兴平市",
  1914. "id": "610481"
  1915. },
  1916. "geometry": {
  1917. "type": "MultiPolygon",
  1918. "coordinates": [
  1919. [
  1920. [
  1921. [
  1922. 108.573736601563,
  1923. 34.38274925
  1924. ],
  1925. [
  1926. 108.611241484375,
  1927. 34.3527150703125
  1928. ],
  1929. [
  1930. 108.613011503906,
  1931. 34.3384828925781
  1932. ],
  1933. [
  1934. 108.60134890625,
  1935. 34.3186440253907
  1936. ],
  1937. [
  1938. 108.613023710938,
  1939. 34.3092958808594
  1940. ],
  1941. [
  1942. 108.6108996875,
  1943. 34.2922194648438
  1944. ],
  1945. [
  1946. 108.617345,
  1947. 34.263843
  1948. ],
  1949. [
  1950. 108.584393339844,
  1951. 34.2422731757813
  1952. ],
  1953. [
  1954. 108.521519804688,
  1955. 34.2296681953126
  1956. ],
  1957. [
  1958. 108.507345,
  1959. 34.223843
  1960. ],
  1961. [
  1962. 108.418670683594,
  1963. 34.2018202949219
  1964. ],
  1965. [
  1966. 108.375545683594,
  1967. 34.2114882636719
  1968. ],
  1969. [
  1970. 108.338895292969,
  1971. 34.1960939765625
  1972. ],
  1973. [
  1974. 108.307345,
  1975. 34.203843
  1976. ],
  1977. [
  1978. 108.311937285156,
  1979. 34.3046474433594
  1980. ],
  1981. [
  1982. 108.327345,
  1983. 34.343843
  1984. ],
  1985. [
  1986. 108.344801054688,
  1987. 34.3412990546875
  1988. ],
  1989. [
  1990. 108.364388457031,
  1991. 34.321938703125
  1992. ],
  1993. [
  1994. 108.367345,
  1995. 34.353843
  1996. ],
  1997. [
  1998. 108.393079863281,
  1999. 34.3581081367187
  2000. ],
  2001. [
  2002. 108.412799101563,
  2003. 34.3846169257813
  2004. ],
  2005. [
  2006. 108.442913847656,
  2007. 34.3898012519532
  2008. ],
  2009. [
  2010. 108.457957792969,
  2011. 34.3695778632813
  2012. ],
  2013. [
  2014. 108.483079863281,
  2015. 34.3881081367188
  2016. ],
  2017. [
  2018. 108.491610136719,
  2019. 34.3995778632812
  2020. ],
  2021. [
  2022. 108.504830351563,
  2023. 34.4094106269531
  2024. ],
  2025. [
  2026. 108.49998171875,
  2027. 34.4375746894532
  2028. ],
  2029. [
  2030. 108.557235136719,
  2031. 34.4474318671875
  2032. ],
  2033. [
  2034. 108.567345,
  2035. 34.433843
  2036. ],
  2037. [
  2038. 108.573736601563,
  2039. 34.38274925
  2040. ]
  2041. ]
  2042. ]
  2043. ]
  2044. }
  2045. },
  2046. {
  2047. "type": "Feature",
  2048. "properties": {
  2049. "name": "旬邑县",
  2050. "id": "610429"
  2051. },
  2052. "geometry": {
  2053. "type": "MultiPolygon",
  2054. "coordinates": [
  2055. [
  2056. [
  2057. [
  2058. 108.667345,
  2059. 35.2038430000001
  2060. ],
  2061. [
  2062. 108.679537382813,
  2063. 35.2004201484375
  2064. ],
  2065. [
  2066. 108.670767851563,
  2067. 35.1916506171876
  2068. ],
  2069. [
  2070. 108.667345,
  2071. 35.2038430000001
  2072. ]
  2073. ]
  2074. ],
  2075. [
  2076. [
  2077. [
  2078. 108.667345,
  2079. 35.2038430000001
  2080. ],
  2081. [
  2082. 108.656964140625,
  2083. 35.1942238593751
  2084. ],
  2085. [
  2086. 108.642535429688,
  2087. 35.1786525703126
  2088. ],
  2089. [
  2090. 108.626551542969,
  2091. 35.1638430000001
  2092. ],
  2093. [
  2094. 108.661478300781,
  2095. 35.1314833808594
  2096. ],
  2097. [
  2098. 108.611871367188,
  2099. 35.1157778144532
  2100. ],
  2101. [
  2102. 108.612740507813,
  2103. 35.0938430000001
  2104. ],
  2105. [
  2106. 108.612093535156,
  2107. 35.0775087714844
  2108. ],
  2109. [
  2110. 108.592154570313,
  2111. 35.0590334296875
  2112. ],
  2113. [
  2114. 108.582535429688,
  2115. 35.0486525703125
  2116. ],
  2117. [
  2118. 108.577345,
  2119. 35.043843
  2120. ],
  2121. [
  2122. 108.533060332031,
  2123. 35.0275807929688
  2124. ],
  2125. [
  2126. 108.489432402344,
  2127. 35.0310854316407
  2128. ],
  2129. [
  2130. 108.45271609375,
  2131. 34.9884706855469
  2132. ],
  2133. [
  2134. 108.439476347656,
  2135. 34.9770644355469
  2136. ],
  2137. [
  2138. 108.394542265625,
  2139. 34.9806752753907
  2140. ],
  2141. [
  2142. 108.347345,
  2143. 34.953843
  2144. ],
  2145. [
  2146. 108.31298953125,
  2147. 34.9694863105469
  2148. ],
  2149. [
  2150. 108.255257597656,
  2151. 34.9855629707032
  2152. ],
  2153. [
  2154. 108.201654082031,
  2155. 35.0253041816406
  2156. ],
  2157. [
  2158. 108.180418730469,
  2159. 35.0528163886719
  2160. ],
  2161. [
  2162. 108.198707304688,
  2163. 35.1479457832032
  2164. ],
  2165. [
  2166. 108.223519316406,
  2167. 35.189077375
  2168. ],
  2169. [
  2170. 108.21170046875,
  2171. 35.1981996894532
  2172. ],
  2173. [
  2174. 108.202857695313,
  2175. 35.2096572089844
  2176. ],
  2177. [
  2178. 108.183577910156,
  2179. 35.2068080878907
  2180. ],
  2181. [
  2182. 108.149163847656,
  2183. 35.2323220039063
  2184. ],
  2185. [
  2186. 108.153160429688,
  2187. 35.2593544746095
  2188. ],
  2189. [
  2190. 108.136058378906,
  2191. 35.2725551582031
  2192. ],
  2193. [
  2194. 108.127345,
  2195. 35.2838430000001
  2196. ],
  2197. [
  2198. 108.131890898438,
  2199. 35.2895217109375
  2200. ],
  2201. [
  2202. 108.142703886719,
  2203. 35.2881764960938
  2204. ],
  2205. [
  2206. 108.161790800781,
  2207. 35.2993959785156
  2208. ],
  2209. [
  2210. 108.207496367188,
  2211. 35.3082900214844
  2212. ],
  2213. [
  2214. 108.233275175781,
  2215. 35.2658486152344
  2216. ],
  2217. [
  2218. 108.262345,
  2219. 35.2694643378907
  2220. ],
  2221. [
  2222. 108.289447050781,
  2223. 35.2660939765625
  2224. ],
  2225. [
  2226. 108.342525664063,
  2227. 35.2998622871094
  2228. ],
  2229. [
  2230. 108.354344511719,
  2231. 35.2851015449219
  2232. ],
  2233. [
  2234. 108.463743925781,
  2235. 35.2693959785157
  2236. ],
  2237. [
  2238. 108.544508085938,
  2239. 35.3004396796875
  2240. ],
  2241. [
  2242. 108.567345,
  2243. 35.2975991035156
  2244. ],
  2245. [
  2246. 108.598226347656,
  2247. 35.30144065625
  2248. ],
  2249. [
  2250. 108.611790800781,
  2251. 35.3793959785157
  2252. ],
  2253. [
  2254. 108.633258085938,
  2255. 35.4087831855469
  2256. ],
  2257. [
  2258. 108.621678496094,
  2259. 35.4284828925782
  2260. ],
  2261. [
  2262. 108.623587675781,
  2263. 35.443843
  2264. ],
  2265. [
  2266. 108.620848417969,
  2267. 35.4658705878906
  2268. ],
  2269. [
  2270. 108.598526640625,
  2271. 35.503843
  2272. ],
  2273. [
  2274. 108.612899199219,
  2275. 35.5282900214844
  2276. ],
  2277. [
  2278. 108.617345,
  2279. 35.5438430000001
  2280. ],
  2281. [
  2282. 108.656265898438,
  2283. 35.5327150703125
  2284. ],
  2285. [
  2286. 108.672899199219,
  2287. 35.5193959785156
  2288. ],
  2289. [
  2290. 108.681890898438,
  2291. 35.5081642890626
  2292. ],
  2293. [
  2294. 108.703424101563,
  2295. 35.5108425117188
  2296. ],
  2297. [
  2298. 108.741986113281,
  2299. 35.4881764960938
  2300. ],
  2301. [
  2302. 108.757230253906,
  2303. 35.4900722480469
  2304. ],
  2305. [
  2306. 108.793011503906,
  2307. 35.4292031074219
  2308. ],
  2309. [
  2310. 108.791688261719,
  2311. 35.4185597968751
  2312. ],
  2313. [
  2314. 108.803001738281,
  2315. 35.389126203125
  2316. ],
  2317. [
  2318. 108.801478300781,
  2319. 35.3768691230469
  2320. ],
  2321. [
  2322. 108.822799101563,
  2323. 35.3795217109375
  2324. ],
  2325. [
  2326. 108.838150664063,
  2327. 35.3603481269532
  2328. ],
  2329. [
  2330. 108.867345,
  2331. 35.343843
  2332. ],
  2333. [
  2334. 108.867345,
  2335. 35.3238430000001
  2336. ],
  2337. [
  2338. 108.857345,
  2339. 35.3238430000001
  2340. ],
  2341. [
  2342. 108.841519804688,
  2343. 35.3196681953125
  2344. ],
  2345. [
  2346. 108.813170195313,
  2347. 35.3080178046876
  2348. ],
  2349. [
  2350. 108.74318484375,
  2351. 35.2939870429688
  2352. ],
  2353. [
  2354. 108.733170195313,
  2355. 35.2680178046876
  2356. ],
  2357. [
  2358. 108.721519804688,
  2359. 35.2596681953126
  2360. ],
  2361. [
  2362. 108.700999785156,
  2363. 35.2310378242188
  2364. ],
  2365. [
  2366. 108.671519804688,
  2367. 35.2196681953126
  2368. ],
  2369. [
  2370. 108.667345,
  2371. 35.2038430000001
  2372. ]
  2373. ],
  2374. [
  2375. [
  2376. 108.585152617188,
  2377. 35.0972658515625
  2378. ],
  2379. [
  2380. 108.597345,
  2381. 35.0938430000001
  2382. ],
  2383. [
  2384. 108.593922148438,
  2385. 35.1060353828126
  2386. ],
  2387. [
  2388. 108.585152617188,
  2389. 35.0972658515625
  2390. ]
  2391. ]
  2392. ]
  2393. ]
  2394. }
  2395. },
  2396. {
  2397. "type": "Feature",
  2398. "properties": {
  2399. "name": "永寿县",
  2400. "id": "610426"
  2401. },
  2402. "geometry": {
  2403. "type": "MultiPolygon",
  2404. "coordinates": [
  2405. [
  2406. [
  2407. [
  2408. 108.102984648438,
  2409. 34.6302407050782
  2410. ],
  2411. [
  2412. 108.121429472656,
  2413. 34.5979274726563
  2414. ],
  2415. [
  2416. 108.157166777344,
  2417. 34.5775283027344
  2418. ],
  2419. [
  2420. 108.131429472656,
  2421. 34.5597585273438
  2422. ],
  2423. [
  2424. 108.12154421875,
  2425. 34.5333425117188
  2426. ],
  2427. [
  2428. 108.056344023438,
  2429. 34.5628932929688
  2430. ],
  2431. [
  2432. 108.043260527344,
  2433. 34.5279274726562
  2434. ],
  2435. [
  2436. 108.025513945313,
  2437. 34.5156740546875
  2438. ],
  2439. [
  2440. 108.017345,
  2441. 34.4838430000001
  2442. ],
  2443. [
  2444. 107.988768339844,
  2445. 34.4911757636719
  2446. ],
  2447. [
  2448. 108.003499785156,
  2449. 34.5386965156251
  2450. ],
  2451. [
  2452. 107.99978640625,
  2453. 34.5552529121094
  2454. ],
  2455. [
  2456. 107.976844511719,
  2457. 34.5710927558594
  2458. ],
  2459. [
  2460. 107.987345,
  2461. 34.613843
  2462. ],
  2463. [
  2464. 108.027345,
  2465. 34.623843
  2466. ],
  2467. [
  2468. 108.050699492188,
  2469. 34.6140334296875
  2470. ],
  2471. [
  2472. 108.102984648438,
  2473. 34.6302407050782
  2474. ]
  2475. ]
  2476. ],
  2477. [
  2478. [
  2479. [
  2480. 108.317345,
  2481. 34.8638430000001
  2482. ],
  2483. [
  2484. 108.307345,
  2485. 34.8638430000001
  2486. ],
  2487. [
  2488. 108.307345,
  2489. 34.873843
  2490. ],
  2491. [
  2492. 108.317345,
  2493. 34.873843
  2494. ],
  2495. [
  2496. 108.317345,
  2497. 34.8638430000001
  2498. ]
  2499. ]
  2500. ],
  2501. [
  2502. [
  2503. [
  2504. 108.307345,
  2505. 34.8638430000001
  2506. ],
  2507. [
  2508. 108.312345,
  2509. 34.8510353828125
  2510. ],
  2511. [
  2512. 108.317345,
  2513. 34.8638430000001
  2514. ],
  2515. [
  2516. 108.323985625,
  2517. 34.860483625
  2518. ],
  2519. [
  2520. 108.337345,
  2521. 34.833843
  2522. ],
  2523. [
  2524. 108.332701445313,
  2525. 34.81226096875
  2526. ],
  2527. [
  2528. 108.30990359375,
  2529. 34.7997646308594
  2530. ],
  2531. [
  2532. 108.314583769531,
  2533. 34.7884133125001
  2534. ],
  2535. [
  2536. 108.2941809375,
  2537. 34.7614382148438
  2538. ],
  2539. [
  2540. 108.307345,
  2541. 34.733843
  2542. ],
  2543. [
  2544. 108.29170046875,
  2545. 34.7381996894531
  2546. ],
  2547. [
  2548. 108.272279082031,
  2549. 34.7499147773438
  2550. ],
  2551. [
  2552. 108.24298953125,
  2553. 34.7281996894531
  2554. ],
  2555. [
  2556. 108.2112903125,
  2557. 34.7092421699219
  2558. ],
  2559. [
  2560. 108.223377714844,
  2561. 34.6784987617188
  2562. ],
  2563. [
  2564. 108.208695097656,
  2565. 34.6671657539063
  2566. ],
  2567. [
  2568. 108.192310820313,
  2569. 34.6695864082032
  2570. ],
  2571. [
  2572. 108.121846953125,
  2573. 34.6580117011719
  2574. ],
  2575. [
  2576. 108.112857695313,
  2577. 34.6696572089844
  2578. ],
  2579. [
  2580. 108.101832304688,
  2581. 34.6680287910157
  2582. ],
  2583. [
  2584. 108.092857695313,
  2585. 34.6796572089844
  2586. ],
  2587. [
  2588. 108.072345,
  2589. 34.676626203125
  2590. ],
  2591. [
  2592. 108.037515898438,
  2593. 34.6817726875
  2594. ],
  2595. [
  2596. 108.017345,
  2597. 34.6738430000001
  2598. ],
  2599. [
  2600. 108.013531523438,
  2601. 34.7200307441407
  2602. ],
  2603. [
  2604. 107.991390410156,
  2605. 34.7873525214844
  2606. ],
  2607. [
  2608. 107.951615019531,
  2609. 34.8009072089844
  2610. ],
  2611. [
  2612. 107.947345,
  2613. 34.8638430000001
  2614. ],
  2615. [
  2616. 108.012120390625,
  2617. 34.8991542792969
  2618. ],
  2619. [
  2620. 108.02259890625,
  2621. 34.8985305000001
  2622. ],
  2623. [
  2624. 108.032064238281,
  2625. 34.9091237617188
  2626. ],
  2627. [
  2628. 108.120130644531,
  2629. 34.9228481269531
  2630. ],
  2631. [
  2632. 108.177323027344,
  2633. 34.962798078125
  2634. ],
  2635. [
  2636. 108.192625761719,
  2637. 34.9491237617188
  2638. ],
  2639. [
  2640. 108.202064238281,
  2641. 34.9385622382813
  2642. ],
  2643. [
  2644. 108.212625761719,
  2645. 34.9291237617188
  2646. ],
  2647. [
  2648. 108.231080351563,
  2649. 34.9084694648438
  2650. ],
  2651. [
  2652. 108.25209109375,
  2653. 34.90972190625
  2654. ],
  2655. [
  2656. 108.277623320313,
  2657. 34.8811464667969
  2658. ],
  2659. [
  2660. 108.307345,
  2661. 34.8638430000001
  2662. ]
  2663. ]
  2664. ]
  2665. ]
  2666. }
  2667. },
  2668. {
  2669. "type": "Feature",
  2670. "properties": {
  2671. "name": "泾阳县",
  2672. "id": "610423"
  2673. },
  2674. "geometry": {
  2675. "type": "MultiPolygon",
  2676. "coordinates": [
  2677. [
  2678. [
  2679. [
  2680. 108.833260527344,
  2681. 34.7197585273438
  2682. ],
  2683. [
  2684. 108.859581328125,
  2685. 34.7026186347656
  2686. ],
  2687. [
  2688. 108.905811796875,
  2689. 34.7129824042969
  2690. ],
  2691. [
  2692. 108.915767851563,
  2693. 34.6685707832031
  2694. ],
  2695. [
  2696. 108.873260527344,
  2697. 34.6576625800782
  2698. ],
  2699. [
  2700. 108.881651640625,
  2701. 34.6065724921875
  2702. ],
  2703. [
  2704. 108.901673613281,
  2705. 34.5775722480469
  2706. ],
  2707. [
  2708. 108.925662871094,
  2709. 34.5829494453125
  2710. ],
  2711. [
  2712. 108.947345,
  2713. 34.573843
  2714. ],
  2715. [
  2716. 108.970704375,
  2717. 34.5270143867188
  2718. ],
  2719. [
  2720. 108.963985625,
  2721. 34.457202375
  2722. ],
  2723. [
  2724. 108.957345,
  2725. 34.4438430000001
  2726. ],
  2727. [
  2728. 108.921429472656,
  2729. 34.4479274726562
  2730. ],
  2731. [
  2732. 108.897669707031,
  2733. 34.4633998847656
  2734. ],
  2735. [
  2736. 108.871898222656,
  2737. 34.457622296875
  2738. ],
  2739. [
  2740. 108.840924101563,
  2741. 34.4777919746094
  2742. ],
  2743. [
  2744. 108.792515898438,
  2745. 34.4902150703125
  2746. ],
  2747. [
  2748. 108.755662871094,
  2749. 34.4747365546876
  2750. ],
  2751. [
  2752. 108.732345,
  2753. 34.4799636054688
  2754. ],
  2755. [
  2756. 108.715545683594,
  2757. 34.4761977363281
  2758. ],
  2759. [
  2760. 108.697345,
  2761. 34.4838430000001
  2762. ],
  2763. [
  2764. 108.681546660156,
  2765. 34.5084401679688
  2766. ],
  2767. [
  2768. 108.683822050781,
  2769. 34.5238430000001
  2770. ],
  2771. [
  2772. 108.681605253906,
  2773. 34.538843
  2774. ],
  2775. [
  2776. 108.687471953125,
  2777. 34.578540265625
  2778. ],
  2779. [
  2780. 108.64170046875,
  2781. 34.5881996894531
  2782. ],
  2783. [
  2784. 108.602323027344,
  2785. 34.6173952460937
  2786. ],
  2787. [
  2788. 108.571400175781,
  2789. 34.657455060547
  2790. ],
  2791. [
  2792. 108.574486113281,
  2793. 34.6783315253906
  2794. ],
  2795. [
  2796. 108.557088652344,
  2797. 34.6917604804688
  2798. ],
  2799. [
  2800. 108.531832304688,
  2801. 34.6880287910156
  2802. ],
  2803. [
  2804. 108.522857695313,
  2805. 34.6996572089844
  2806. ],
  2807. [
  2808. 108.511832304688,
  2809. 34.6980287910157
  2810. ],
  2811. [
  2812. 108.49298953125,
  2813. 34.7227614570312
  2814. ],
  2815. [
  2816. 108.507345,
  2817. 34.733843
  2818. ],
  2819. [
  2820. 108.592899199219,
  2821. 34.7293959785156
  2822. ],
  2823. [
  2824. 108.688397246094,
  2825. 34.7159523750001
  2826. ],
  2827. [
  2828. 108.771790800781,
  2829. 34.7293959785156
  2830. ],
  2831. [
  2832. 108.787345,
  2833. 34.733843
  2834. ],
  2835. [
  2836. 108.801429472656,
  2837. 34.7279274726563
  2838. ],
  2839. [
  2840. 108.833260527344,
  2841. 34.7197585273438
  2842. ]
  2843. ]
  2844. ]
  2845. ]
  2846. }
  2847. }
  2848. ]
  2849. }
  2850. );
  2851. }));

代码中引入的map.png图片如下:

 代码中引入的map-box.png图片如下:

  代码中引入的map-pin.png图片如下:

完整代码:

  1. <template>
  2. <div style="height:100%;">
  3. <div id="chartmainbar" ref="chart" style="width:100%; height:95%;"></div>
  4. </div>
  5. </template>
  6. <script>
  7. import xianyang from "../../../../assets/map/js/province/xianyang";
  8. import imgpng from "../../../../assets/map.png"
  9. const geoCoordMap = {
  10. '渭城区': [108.73, 108.73],
  11. '三原县': [108.93, 34.62],
  12. '彬县': [108.08, 35.03],
  13. '长武县': [107.78, 35.20],
  14. '淳化县': [108.58, 34.78],
  15. '礼泉县': [108.42, 34.48],
  16. '乾县': [108.23, 34.53],
  17. '秦都区': [108.72, 34.35],
  18. '武功县': [108.20, 34.27],
  19. '兴平市': [108.48, 34.30],
  20. '旬邑县': [108.33, 35.12],
  21. '永寿县': [108.13, 34.70],
  22. '泾阳县': [108.83, 34.53],
  23. }
  24. const data = [
  25. {name: '旬邑县', value: 887, area: 1774.34},
  26. {name: '彬县', value: 800, area: 1183.61},
  27. {name: '礼泉县', value: 790, area: 1010.86},
  28. {name: '乾县', value: 780, area: 1001.92},
  29. {name: '淳化县', value: 760, area: 986.06},
  30. {name: '永寿县', value: 750, area: 886.39},
  31. {name: '泾阳县', value: 740, area: 774.77},
  32. {name: '三原县', value: 730, area: 576.82},
  33. {name: '长武县', value: 720, area: 568.39},
  34. {name: '兴平市', value: 690, area: 508.97},
  35. {name: '武功县', value: 670, area: 391.22},
  36. {name: '渭城区', value: 650, area: 269.16},
  37. {name: '秦都区', value: 620, area: 259.54},
  38. ];
  39. const max = 480, min = 9; // todo
  40. const maxSize4Pin = 40, minSize4Pin = 20;
  41. export default {
  42. mounted() {
  43. this.echartschange()
  44. },
  45. methods: {
  46. convertData(data) {
  47. const res = [];
  48. data.forEach( (item, index) => {
  49. const geoCoord = geoCoordMap[data[index].name];
  50. if (geoCoord) {
  51. res.push({
  52. name: data[index].name,
  53. value: geoCoord.concat(data[index].value),
  54. area: data[index].area,
  55. img: data[index].img,
  56. });
  57. }
  58. })
  59. return res;
  60. },
  61. echartschange() {
  62. // 测试代码
  63. const domImg = document.createElement('img');
  64. domImg.src = imgpng;
  65. const domImgHover = document.createElement('img');
  66. domImgHover.src = imgpng;
  67. let chart = this.$echarts.init(
  68. this.$refs.chart
  69. )
  70. const min = 0
  71. const max = 300
  72. const option = {
  73. tooltip: {
  74. formatter: function(params) {
  75. // console.log(params)
  76. const content = params.name + ":" + params.data.area + "k㎡"
  77. return content
  78. }
  79. },
  80. visualMap: {
  81. show: false,
  82. min: 0,
  83. max: 400,
  84. left: 'left',
  85. top: 'bottom',
  86. text: ['高', '低'], // 文本,默认为数值文本
  87. calculable: true,
  88. seriesIndex: [1],
  89. inRange: {
  90. color: ['#4cc2ae', '#379f78'] // 浅蓝
  91. }
  92. },
  93. geo: [{
  94. map: '咸阳',
  95. aspectScale: 1.05,
  96. zoom: 1,
  97. layoutCenter: ['50%', '54%'],
  98. layoutSize: '100%',
  99. silent: true,
  100. roam: false,
  101. z: 0,
  102. itemStyle: {
  103. normal: {
  104. // areaColor: 'rgba(0, 132, 255, 0.5)',
  105. // shadowColor: 'rgba(0, 132, 255, 0.3)',
  106. areaColor: 'rgba(8, 107, 184, 0.9)',
  107. shadowColor: 'rgba(8, 107, 184, 0.4)',
  108. shadowBlur: 0,
  109. shadowOffsetX: 0,
  110. shadowOffsetY: 15,
  111. borderColor: 'rgba(8, 107, 184, 0.3)',
  112. borderWidth: 2,
  113. },
  114. emphasis: {
  115. areaColor: 'rgba(0, 132, 255, 0.2)',
  116. borderWidth: 1,
  117. color: 'green',
  118. label: {
  119. show: false,
  120. },
  121. },
  122. },
  123. },{
  124. map: this.type,
  125. aspectScale: 1,
  126. roam: false, //是否允许缩放
  127. //zoom: 1.1, //默认显示级别
  128. layoutSize: `95%`,
  129. layoutCenter: [`50%`, `50%`],
  130. itemStyle: {
  131. color: {
  132. image: this.bj, // 支持为 HTMLImageElement, HTMLCanvasElement,不支持路径字符串
  133. repeat: `repeat` // 是否平铺,可以是 'repeat-x', 'repeat-y', 'no-repeat'
  134. },
  135. borderColor: `#37C1FD`,
  136. borderWidth: 2
  137. },
  138. z: 3,
  139. silent: true
  140. }],
  141. series: [
  142. {
  143. type: 'map',
  144. roam: true,
  145. label: {
  146. normal: {
  147. show: false,
  148. },
  149. emphasis: {
  150. // show: false,
  151. textStyle: {
  152. color: '#fff'
  153. }
  154. }
  155. },
  156. itemStyle: {
  157. normal: {
  158. borderColor: '#a9cce0',
  159. borderWidth: 2,
  160. areaColor: {
  161. image: domImg,
  162. repeat: 'repeat'
  163. },
  164. shadowColor: 'rgba(0, 0, 0, 0.5)',
  165. shadowBlur: 0,
  166. shadowOffsetX: 0,
  167. shadowOffsetY: 0.5,
  168. global: true, // 缺省为 false
  169. },
  170. emphasis: {
  171. areaColor: {
  172. image: domImgHover,
  173. repeat: 'repeat'
  174. },
  175. borderColor: '#2ab8ff',
  176. borderWidth: 1,
  177. shadowColor: 'rgba(0, 255, 255, 0.7)',
  178. shadowBlur: 10,
  179. shadowOffsetX: 0,
  180. shadowOffsetY: 1,
  181. label: {
  182. show: false,
  183. }
  184. },
  185. },
  186. map: '咸阳',
  187. aspectScale: 1.05,
  188. layoutCenter: ['50%', '50%'],
  189. layoutSize: '100%',
  190. roam: false,
  191. // animation: false,
  192. data: data
  193. },
  194. {
  195. name: '点',
  196. type: 'scatter',
  197. coordinateSystem: 'geo',
  198. label: {
  199. normal: {
  200. show: true,
  201. formatter(value) {
  202. const valueNow = value.data.name;
  203. // const unit = "k㎡";
  204. const text = `{fline|${valueNow}}`;
  205. return text;
  206. },
  207. rich: {
  208. fline: {
  209. color: '#fff',
  210. textShadowColor: '#fff',
  211. // textShadowBlur: '0',
  212. textShadowOffsetX: .1,
  213. // textShadowOffsetY: 1,
  214. fontSize: 18,
  215. fontWeight: 400,
  216. fontFamily: 'MAPTEXT'
  217. },
  218. },
  219. },
  220. emphasis: {
  221. show: true,
  222. },
  223. },
  224. itemStyle: {
  225. normal: {
  226. // areaColor: 'yellow',
  227. borderColor: '#4cc2ae',
  228. },
  229. emphasis: {
  230. // areaColor: 'yellow',
  231. },
  232. },
  233. symbol: 'image://' + require('../../../../assets/map-box.png'),
  234. symbolSize: [70, 20],
  235. symbolOffset: [8, -60],
  236. z: 999,
  237. data: this.convertData(data),
  238. },
  239. {
  240. type: 'scatter',
  241. coordinateSystem: 'geo',
  242. // itemStyle: {
  243. // color: '#f00',
  244. // },
  245. symbol: 'image://' + require('../../../../assets/map-pin.png'),
  246. symbolSize: [18, 28],
  247. symbolOffset: [8, -35],
  248. hoverAnimation: true,
  249. label: {
  250. normal: {
  251. formatter(value) {
  252. const valueNow = value.data.area;
  253. const unit = "k㎡";
  254. const text = `{fline|${valueNow}}{tline|${unit}}`;
  255. // console.log(value)
  256. return text;
  257. },
  258. rich: {
  259. fline: {
  260. color: '#fff',
  261. textShadowColor: '#030615',
  262. textShadowBlur: '0',
  263. textShadowOffsetX: 1,
  264. textShadowOffsetY: 1,
  265. fontSize: 16,
  266. fontWeight: 600,
  267. fontFamily: 'DINPro-Bold'
  268. },
  269. tline: {
  270. padding: [2, 2],
  271. color: '#c3c7ce',
  272. textShadowColor: '#030615',
  273. textShadowBlur: '0',
  274. textShadowOffsetX: 1,
  275. textShadowOffsetY: 1,
  276. fontSize: 10,
  277. },
  278. },
  279. position: 'bottom',
  280. show: true,
  281. color: '#fff',
  282. fontSize: 14,
  283. fontFamily: 'MAPTEXT'
  284. }
  285. },
  286. // z: 9999,
  287. data: this.convertData(data),
  288. }
  289. ]
  290. }
  291. chart.setOption(option)
  292. window.onresize = chart.resize;
  293. chart.on('click', function(params) {
  294. const cout = params.data.name
  295. // console.log(params)
  296. })
  297. }
  298. }
  299. };
  300. </script>

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/繁依Fanyi0/article/detail/108832
推荐阅读