|
|
@@ -1,7 +1,14 @@
|
|
|
import map from "./fj.json";
|
|
|
import zhangzhou from "./zhangzhou.json";
|
|
|
import fuzhou from "./fuzhou.json";
|
|
|
-const config = {
|
|
|
+import ningde from "./ningde.json";
|
|
|
+import longyan from './longyan.json'
|
|
|
+import nangping from './nanping.json'
|
|
|
+import quangzhou from './quanzhou.json'
|
|
|
+import sanming from './sanming.json'
|
|
|
+import xiameng from './xiameng.json'
|
|
|
+
|
|
|
+export default {
|
|
|
default: {
|
|
|
map,
|
|
|
coordinates: [],
|
|
|
@@ -12,7 +19,7 @@ const config = {
|
|
|
{ name: "漳州农商行", value: [117.675264, 24.524648, 10] },
|
|
|
{ name: "龙海农商行", value: [117.813678, 24.453241, 10] },
|
|
|
{ name: "云霄县农联社", value: [117.347455, 23.94945, 10] },
|
|
|
- { name: "漳浦县农联社", value: [117.628503,24.12591, 10] },
|
|
|
+ { name: "漳浦县农联社", value: [117.628503, 24.12591, 10] },
|
|
|
{ name: "诏安县农联社", value: [117.185518, 23.717786, 10] },
|
|
|
{ name: "长泰县农联社", value: [117.755306, 24.626603, 10] },
|
|
|
{ name: "东山县农联社", value: [117.432607, 23.713423, 10] },
|
|
|
@@ -37,36 +44,28 @@ const config = {
|
|
|
// { name: "马尾农商行", value: [, 10] },
|
|
|
],
|
|
|
},
|
|
|
-};
|
|
|
-
|
|
|
-export default {
|
|
|
- /**获取地图数据 */
|
|
|
- getMap(orgName) {
|
|
|
- if (config[orgName]) {
|
|
|
- return config[orgName].map;
|
|
|
- }
|
|
|
-
|
|
|
- return config.default.map;
|
|
|
+ 宁德地区行社: {
|
|
|
+ map: ningde,
|
|
|
+ coordinates: [],
|
|
|
},
|
|
|
- /**
|
|
|
- * 获取坐标
|
|
|
- * @param {} orgName
|
|
|
- */
|
|
|
- getCoord(orgName) {
|
|
|
- if (config[orgName]) {
|
|
|
- return config[orgName].coordinates;
|
|
|
- }
|
|
|
-
|
|
|
- let coordinates = [];
|
|
|
- for (let p in config) {
|
|
|
- if (!config[p].coordinates) {
|
|
|
- continue;
|
|
|
- }
|
|
|
-
|
|
|
- coordinates = coordinates.concat(config[p].coordinates);
|
|
|
- }
|
|
|
-
|
|
|
- return coordinates;
|
|
|
+ 厦门地区行社: {
|
|
|
+ map: xiameng,
|
|
|
+ coordinates: [],
|
|
|
+ },
|
|
|
+ 泉州地区行社: {
|
|
|
+ map: quangzhou,
|
|
|
+ coordinates: [],
|
|
|
+ },
|
|
|
+ 三明地区行社: {
|
|
|
+ map: sanming,
|
|
|
+ coordinates: [],
|
|
|
+ },
|
|
|
+ 南平地区行社: {
|
|
|
+ map: nangping,
|
|
|
+ coordinates: [],
|
|
|
+ },
|
|
|
+ 龙岩地区行社: {
|
|
|
+ map: longyan,
|
|
|
+ coordinates: [],
|
|
|
},
|
|
|
};
|
|
|
-// coordinates
|