Browse Source

V1~V5, R1~R9 위치 변경

pull/2/head
이준희 1 year ago
parent
commit
58e6cdf6a7
  1. 19
      src/components/map/naver/NaverMap.js

19
src/components/map/naver/NaverMap.js

@ -62,8 +62,8 @@ export const NaverCustomMap = () => {
},
{
name: 'V3',
lat: 37.5609465,
lon: 126.7414201
lat: 37.5642352,
lon: 126.6243464
},
{
name: 'V4',
@ -92,8 +92,8 @@ export const NaverCustomMap = () => {
},
{
name: 'R4',
lat: 37.5699471,
lon: 126.7536302
lat: 37.5790407,
lon: 126.6600404
},
{
name: 'R5',
@ -102,8 +102,8 @@ export const NaverCustomMap = () => {
},
{
name: 'R6',
lat: 37.5319855,
lon: 126.745071
lat: 37.5506488,
lon: 126.693722
},
{
name: 'R7',
@ -137,12 +137,12 @@ export const NaverCustomMap = () => {
const cont =
name.substr(0, 1) == 'R'
? [
'<div style="border-radius:50%; background:#429629; border: 4px solid #ffffff; padding:5px;">',
'<div style="border-radius:50%; background:#429629; border: 4px solid #ffffff; padding:5px; width:40px; height:40px; text-align:center">',
`<span style="color:#ffffff">${name}</span>`,
'</div>'
]
: [
'<div style="border-radius:50%; background:#ffffff; border: 4px solid #15298A; padding:5px;">',
'<div style="border-radius:50%; background:#ffffff; border: 4px solid #15298A; padding:5px; width:40px; height:40px; text-align:center ">',
`<span style="color:#000000">${name}</span>`,
'</div>'
];
@ -151,7 +151,8 @@ export const NaverCustomMap = () => {
position: position,
map: mapObject,
icon: {
content: cont.join('')
content: cont.join(''),
anchor: new naver.maps.Point(20, 20)
}
});
});

Loading…
Cancel
Save