|
@@ -68,7 +68,8 @@ Page({
|
|
|
newImgUrl: newImgUrl,
|
|
|
markers: [INIT_MARKER],
|
|
|
latitude: '',
|
|
|
- longitude: '',
|
|
|
+ longitude: '',
|
|
|
+ custGap: 100000,
|
|
|
type: [
|
|
|
[{ "id": 1, "name": "政务公开", "image": "fgk.png","dictType":"" }, { "id": 2, "name": "政务服务", "image": "fzwfw.png" ,"dictType":""}, { "id": 3, "name": "党群服务", "image": "fdqfwzx.png" ,"dictType":""},{ "id": 4, "name": "教育资源", "image": "fjy.png","dictType":"" }],
|
|
|
[{ "id": 1, "name": "医疗卫生", "image": "fyl.png" ,"dictType":""}, { "id": 2, "name": "户籍管理", "image": "fhjgl.png" ,"dictType":""}, { "id": 3, "name": "交通服务", "image": "fjtfw.png" ,"dictType":""},{ "id": 4, "name": "社会保障", "image": "fshbz.png","dictType":"" }],
|
|
@@ -76,7 +77,8 @@ Page({
|
|
|
[{ "id": 1, "name": "住房保障", "image": "fgzf.png","dictType":"fwglzxs" }, { "id": 2, "name": "不动产登记", "image": "fbdcdj.png" ,"dictType":"bdcdjzxbsdts"}, { "id": 3, "name": "住房公积金", "image": "fgjj.png" ,"dictType":"gjjs"},{ "id": 4, "name": "文体旅游", "image": "fwtly.png","dictType":"" }],
|
|
|
[{ "id": 1, "name": "司法服务", "image": "fsffw.png" ,"dictType":""}, { "id": 2, "name": "助疾服务", "image": "fcjr.png" ,"dictType":""}, { "id": 3, "name": "产业园区", "image": "fcyy.png" ,"dictType":"cyys"},{ "id": 4, "name": "商业服务", "image": "fbmfw.png","dictType":"" }],
|
|
|
[{ "id": 1, "name": "便民公厕", "image": "fgc.png" ,"dictType":"gcs"}, { "id": 2, "name": "停车泊车", "image": "ftc.png" ,"dictType":"tcs"}, { "id": 3, "name": "直饮水点", "image": "zysd.png" ,"dictType":"zysd"}, { "id": 4, "name": "劳动者港湾", "image": "ldzgw.png" ,"dictType":"ldzgw"}]
|
|
|
- ],
|
|
|
+ ],
|
|
|
+ circle:[],
|
|
|
popData: [{ "popName": "", "data": [] }],
|
|
|
showIndex: false,
|
|
|
showSearch: true,
|
|
@@ -179,16 +181,23 @@ Page({
|
|
|
that.setData({
|
|
|
latitude: latitude,
|
|
|
longitude: longitude,
|
|
|
- trafficStart: "我的位置",
|
|
|
- // markers: [{
|
|
|
- // latitude: latitude,
|
|
|
- // longitude: longitude,
|
|
|
- // iconPath: "/location.png",
|
|
|
- // width: '30px',
|
|
|
- // height: '30px',
|
|
|
- // rotate: 0,
|
|
|
- // alpha: 1
|
|
|
- // }]
|
|
|
+ trafficStart: "我的位置",
|
|
|
+ circle: [{
|
|
|
+ latitude: res.latitude,
|
|
|
+ longitude: res.longitude,
|
|
|
+ radius: that.data.custGap + 500,
|
|
|
+ fillColor: '#c4d2ec6a',
|
|
|
+ color: '#c4d2ec'
|
|
|
+ }],
|
|
|
+ markers: [{
|
|
|
+ latitude: latitude,
|
|
|
+ longitude: longitude,
|
|
|
+ iconPath: imgUrl+"/location.png",
|
|
|
+ width: '30px',
|
|
|
+ height: '30px',
|
|
|
+ rotate: 0,
|
|
|
+ alpha: 1
|
|
|
+ }]
|
|
|
});
|
|
|
}
|
|
|
});
|
|
@@ -437,7 +446,7 @@ Page({
|
|
|
markers: [{
|
|
|
latitude: res.location.lat,
|
|
|
longitude: res.location.lng,
|
|
|
- iconPath: "/location.png",
|
|
|
+ iconPath: imgUrl+"/location.png",
|
|
|
width: '30px',
|
|
|
height: '30px',
|
|
|
rotate: 0,
|
|
@@ -1059,7 +1068,7 @@ function initMapDataAll(that, lat, lng) {
|
|
|
addrArr.push({
|
|
|
latitude: lat,
|
|
|
longitude: lng,
|
|
|
- iconPath: "/location.png",
|
|
|
+ iconPath: imgUrl+"/location.png",
|
|
|
width: '30px',
|
|
|
height: '30px',
|
|
|
rotate: 0,
|
|
@@ -1078,7 +1087,7 @@ function initMapDataAll(that, lat, lng) {
|
|
|
index++
|
|
|
const jl = getDistances(lat, lng, address.latitude, address.longitude)
|
|
|
console.log(jl)
|
|
|
- if (jl.m <= 1000) {
|
|
|
+ if (jl.m <= that.data.custGap) {
|
|
|
marksView.push(address)
|
|
|
addrArr.push({
|
|
|
id: address.id,
|