지도를 jvector 맵에서 사용하도록 사용자 정의해야합니다. 그래서 인라인 SVG
을 사용하여지도를 만듭니다. 지도는 완벽하게 보이지만 jvectormap을 사용하여지도를 조작 할 수는 없습니다. 나는 jvectormap에서 초보자 일 뿐이므로 내 코드가 약간 잘못되었다. 제발 아이디어가 있으면 대답을 받아들입니다.인라인 SVG에서 jvectormap으로
미리 감사드립니다. 그 안에 markers
배열로 오작동이 형성되어
<div id="pantsun" >
<svg title="well" width="500" height="300" style="border: 1px solid #000;background-color: lightgreen;" >
<rect x="200" y="0" width="30" height="300" style="fill:white;" />
<rect x="0" y="50" width="500" height="30" style="fill:white;" />
<rect x="0" y="150" width="500" height="30" style="fill:white;" />
<rect x="10" y="18" width="30" height="30" style="fill:darkgrey;" />
<rect x="45" y="18" width="30" height="30" style="fill:darkgrey;" />
Sorry, your browser does not support inline SVG.
</svg>
</div>
<script>
$(function(){
$('#pantsun').vectorMap({
map: 'well',
backgroundColor: 'transparent',
markers: [{
coords: [0, 50],
name: 'well 1',
style: {fill: 'white'}
},{
coords: [0, 150],
name: 'well 2',
style: {fill: 'white'}
}}};
</script>
난 할 노력하고있어 것은이 link.