X MapManager Options 예시
X MapManager Options 전체 예시
<script language="javascript">
var xmapManagerOptions = {
height : '400px', minHeight: '100PX', maxHeight: '90VH',
width : '90%' , minWidth : '300PX', maxWidth : '100%',
minZoom : 1,
maxZoom : 18,
IsLoactionGEO : false,
LocationLAT : 0,
LocationLNG : 0,
IsShowCoord : false,
IsZoomFixed : false,
IsShowFit : false,
DefaultMarker : { markerIcon: 'marker06', IsPopupTitle: false, IsShowMarkerNo:true, TextPosition:'top' },
ClusterMarker : { IsCluster: true, MaxDistance: 150, MinDistance: 10, markerIcon:'' },
MapZoomLevel : { LevelDefault: 8, LevelLabel: 18, LebelMarker: 18 },
MapDataLabel : { IsShow: true, IsScrollReaction: true, IsPopup: true, IsPopupTitle: false, IsLineTraking: true, height:'30px', width:'45px', position:'top', },
ProviderName : 'OpenLayers',
ProviderOption : {
layers: [
{ layerName :'BaseLayer',
layerType :'TileLayer',
sourceType :'OSM',
sourceURL :'https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png',
attribution :'',
opacity :1,
visible :true,
zIndex :1,
}
],
},
MapDataList : [
{ markerLat: 37.57568549970196, markerLng: 126.97682018488811, markerIcon:'marker01', markerLabel:'M.01', markerTitle: 'Gwanghwamun' , markerLink: 'https://link-url-01' , markerContent: 'content 01', labelImageUrl:'http://content-01.jpg' , labelContent :'L01' , },
{ markerLat: 37.574114494718145, markerLng: 126.97686482349788, markerIcon:'marker02', markerLabel:'M.02', markerTitle: 'Statue of King Sejong' , markerLink: 'https://link-url-02' , markerContent: 'content 02', labelImageUrl:'http://content-02.jpg' , labelContent :'L02' , },
{ markerLat: 37.57072881966248, markerLng: 126.9769339065269 , markerIcon:'marker03', markerLabel:'M.03', markerTitle: 'Statue of Admiral Yi Sun-sin' , markerLink: 'https://link-url-03' , markerContent: 'content 03', labelImageUrl:'http://content-03.jpg' , labelContent :'L03' , },
{ markerLat: 37.57442542030343, markerLng: 126.99373185273083, markerIcon:'marker04', markerLabel:'M.04', markerTitle: 'Jongmyo' , markerLink: 'https://link-url-04' , markerContent: 'content 04', labelImageUrl:'http://content-04.jpg' , labelContent :'L04' , },
{ markerLat: 37.58252531363347, markerLng: 126.98364606033307, markerIcon:'marker05', markerLabel:'M.05', markerTitle: 'Bukchon Hanok Village' , markerLink: 'https://link-url-05' , markerContent: 'content 05', labelImageUrl:'http://content-05.jpg' , labelContent :'Bukchon Hanok Village', },
{ markerLat: 37.557363705022496, markerLng: 126.98904869509904, markerIcon:'marker08', markerLabel:'M.06', markerTitle: 'Namsan' , markerLink: 'https://link-url-06' , markerContent: 'content 06', labelImageUrl:'http://content-06.jpg' , labelContent :'Namsan' , },
{ markerLat: 37.54801557538717, markerLng: 126.99522799852735, markerIcon:'marker08', markerLabel:'M.06', markerTitle: 'Namsan' , markerLink: 'https://link-url-07' , markerContent: 'content 07', labelImageUrl:'http://content-07.jpg' , labelContent :'Namsan' , },
{ markerLat: 37.543285932827985, markerLng: 126.98912329080919, markerIcon:'marker08', markerLabel:'M.06', markerTitle: 'Namsan' , markerLink: 'https://link-url-08' , markerContent: 'content 08', labelImageUrl:'http://content-08.jpg' , labelContent :'Namsan' , },
{ markerLat: 37.51206450770708, markerLng: 126.99551350556196, markerIcon:'marker08', markerLabel:'M.06', markerTitle: 'Sebitseom' , markerLink: 'https://link-url-09' , markerContent: 'content 09', labelImageUrl:'http://content-09.jpg' , labelContent :'Sebitseom' , },
{ markerLat: 37.512475796838515, markerLng: 127.00008346630337, markerIcon:'marker08', markerLabel:'M.06', markerTitle: 'Banpo Bridge' , markerLink: 'https://link-url-10' , markerContent: 'content 10', labelImageUrl:'http://content-10.jpg' , labelContent :'Banpo Bridge' , },
]
};
var xmapManagerFrame = document.body.querySelector('#xmapManagerEX');
var xmapManager = new XmapManager(xmapManagerFrame, xmapManagerOptions);
</script>
X MapManager Options 기본 옵션 예시
<script language="javascript">
var xmapManagerOptions = {
MapDataList : [
{ markerLat: 37.57568549970196, markerLng: 126.97682018488811, markerIcon:'marker01', markerLabel:'M.01', markerTitle: 'Gwanghwamun' , markerLink: 'https://link-url-01' , markerContent: 'content 01', labelImageUrl:'http://content-01.jpg' , labelContent :'L01' , },
{ markerLat: 37.574114494718145, markerLng: 126.97686482349788, markerIcon:'marker02', markerLabel:'M.02', markerTitle: 'Statue of King Sejong' , markerLink: 'https://link-url-02' , markerContent: 'content 02', labelImageUrl:'http://content-02.jpg' , labelContent :'L02' , },
{ markerLat: 37.57072881966248, markerLng: 126.9769339065269 , markerIcon:'marker03', markerLabel:'M.03', markerTitle: 'Statue of Admiral Yi Sun-sin' , markerLink: 'https://link-url-03' , markerContent: 'content 03', labelImageUrl:'http://content-03.jpg' , labelContent :'L03' , },
{ markerLat: 37.57442542030343, markerLng: 126.99373185273083, markerIcon:'marker04', markerLabel:'M.04', markerTitle: 'Jongmyo' , markerLink: 'https://link-url-04' , markerContent: 'content 04', labelImageUrl:'http://content-04.jpg' , labelContent :'L04' , },
{ markerLat: 37.58252531363347, markerLng: 126.98364606033307, markerIcon:'marker05', markerLabel:'M.05', markerTitle: 'Bukchon Hanok Village' , markerLink: 'https://link-url-05' , markerContent: 'content 05', labelImageUrl:'http://content-05.jpg' , labelContent :'Bukchon Hanok Village', },
{ markerLat: 37.557363705022496, markerLng: 126.98904869509904, markerIcon:'marker08', markerLabel:'M.06', markerTitle: 'Namsan' , markerLink: 'https://link-url-06' , markerContent: 'content 06', labelImageUrl:'http://content-06.jpg' , labelContent :'Namsan' , },
{ markerLat: 37.54801557538717, markerLng: 126.99522799852735, markerIcon:'marker08', markerLabel:'M.06', markerTitle: 'Namsan' , markerLink: 'https://link-url-07' , markerContent: 'content 07', labelImageUrl:'http://content-07.jpg' , labelContent :'Namsan' , },
{ markerLat: 37.543285932827985, markerLng: 126.98912329080919, markerIcon:'marker08', markerLabel:'M.06', markerTitle: 'Namsan' , markerLink: 'https://link-url-08' , markerContent: 'content 08', labelImageUrl:'http://content-08.jpg' , labelContent :'Namsan' , },
{ markerLat: 37.51206450770708, markerLng: 126.99551350556196, markerIcon:'marker08', markerLabel:'M.06', markerTitle: 'Sebitseom' , markerLink: 'https://link-url-09' , markerContent: 'content 09', labelImageUrl:'http://content-09.jpg' , labelContent :'Sebitseom' , },
{ markerLat: 37.512475796838515, markerLng: 127.00008346630337, markerIcon:'marker08', markerLabel:'M.06', markerTitle: 'Banpo Bridge' , markerLink: 'https://link-url-10' , markerContent: 'content 10', labelImageUrl:'http://content-10.jpg' , labelContent :'Banpo Bridge' , },
]
};
var xmapManagerFrame = document.body.querySelector('#xmapManagerEX');
var xmapManager = new XmapManager(xmapManagerFrame, xmapManagerOptions);
</script>
X MapManager Options - ProviderOption(Multiple Layer)
<script language="javascript">
var xmapManagerOptions = {
ProviderName : 'OpenLayers',
ProviderOption : {
layers: [
{ layerName : 'BaseLayer',
layerType : 'TileLayer',
sourceType : 'OSM',
sourceURL : 'https://{a-d}.basemaps.cartocdn.com/rastertiles/voyager/{z}/{x}/{y}.png',
attribution : '© <a href="https://carto.com/attributions" target="_blank">CARTO</a>',
opacity : 1,
visible : true,
zIndex : 1,
},
{
layerName : 'GEO Countries Layer',
layerType : 'VectorImageLayer',
sourceType : 'Vector',
sourceURL : '/data/geo/countries.geo.json',
sourceFormat : 'GeoJSON',
featuresGeoKEY : { key:'id', input:'name', callback:'id,name,ol_uid' },
callBackGeoKEY : function(varArg1, varArg2, varArg3, varArg4, varArg5) { },
sourceStyle : {
Default: {
fill : { color:'rgba(255, 255, 255, 0.0)' },
stroke: { color:'#319FD3', width: 1, lineDash: [0] },
text : { font:'12px Calibri,sans-serif', fill:{ color: '#000' }, stroke:{ color: '#ffffff', width: 2 } }
},
Hover : { IsUse : true,
fill : { color:'rgba(255, 99, 71, 0.0)' },
stroke: { color:'#ff6347', width: 3, lineDash: [2,3], lineDashOffset: 6 },
text : { font:'12px Calibri,sans-serif', fill:{ color: '#000' }, stroke:{ color: '#007bff', width: 2 } }
}
},
attribution : '',
opacity : 0.5,
visible : true,
zIndex : 2,
},
{
layerName : 'GEO - Si Gungu Layer',
layerType : 'VectorLayer',
sourceType : 'Vector',
sourceURL : '/data/geo/ALL_SIGUNGU.geo.json',
sourceFormat : 'GeoJSON',
featuresGeoKEY : { key:'adm_cd', input:'adm_nm', callback:'adm_cd, adm_cd2, adm_nm' },
callBackGeoKEY : function(varArg1, varArg2, varArg3, varArg4, varArg5) { },
sourceStyle : {
Default: {
fill : { color:'rgba(255, 255, 255, 0.0)' },
stroke: { color:'#212529b0', width: 1, lineDash: [0] },
text : { font:'12px Calibri,sans-serif', fill:{ color: '#000' }, stroke:{ color: '#ffffff', width: 3 } }
},
Hover : { IsUse : true,
fill : { color:'rgba(255, 255, 255, 0.0)' },
stroke: { color:'#319FD3', width: 2, lineDash: [3,3], lineDashOffset: 6 },
text : { font:'12px Calibri,sans-serif', fill:{ color: '#000' }, stroke:{ color: '#007bff', width: 3 } }
}
},
attribution : '',
opacity : 0.5,
visible : true,
zIndex : 3,
}
],
},
};
</script>
X MapManager Options - MapDataList
<script language="javascript">
var xmapManagerOptions = {
MapDataList : [
{ markerLat: 37.57568549970196, markerLng: 126.97682018488811, markerIcon:'marker01', markerLabel:'M.01', markerTitle: 'Gwanghwamun' , markerLink: 'https://link-url-01' , markerContent: 'content 01', labelImageUrl:'http://content-01.jpg' , labelContent :'L01' , },
{ markerLat: 37.574114494718145, markerLng: 126.97686482349788, markerIcon:'marker02', markerLabel:'M.02', markerTitle: 'Statue of King Sejong' , markerLink: 'https://link-url-02' , markerContent: 'content 02', labelImageUrl:'http://content-02.jpg' , labelContent :'L02' , },
{ markerLat: 37.57072881966248, markerLng: 126.9769339065269 , markerIcon:'marker03', markerLabel:'M.03', markerTitle: 'Statue of Admiral Yi Sun-sin' , markerLink: 'https://link-url-03' , markerContent: 'content 03', labelImageUrl:'http://content-03.jpg' , labelContent :'L03' , },
{ markerLat: 37.57442542030343, markerLng: 126.99373185273083, markerIcon:'marker04', markerLabel:'M.04', markerTitle: 'Jongmyo' , markerLink: 'https://link-url-04' , markerContent: 'content 04', labelImageUrl:'http://content-04.jpg' , labelContent :'L04' , },
{ markerLat: 37.58252531363347, markerLng: 126.98364606033307, markerIcon:'marker05', markerLabel:'M.05', markerTitle: 'Bukchon Hanok Village' , markerLink: 'https://link-url-05' , markerContent: 'content 05', labelImageUrl:'http://content-05.jpg' , labelContent :'Bukchon Hanok Village', },
{ markerLat: 37.557363705022496, markerLng: 126.98904869509904, markerIcon:'marker08', markerLabel:'M.06', markerTitle: 'Namsan' , markerLink: 'https://link-url-06' , markerContent: 'content 06', labelImageUrl:'http://content-06.jpg' , labelContent :'Namsan' , },
{ markerLat: 37.54801557538717, markerLng: 126.99522799852735, markerIcon:'marker08', markerLabel:'M.06', markerTitle: 'Namsan' , markerLink: 'https://link-url-07' , markerContent: 'content 07', labelImageUrl:'http://content-07.jpg' , labelContent :'Namsan' , },
{ markerLat: 37.543285932827985, markerLng: 126.98912329080919, markerIcon:'marker08', markerLabel:'M.06', markerTitle: 'Namsan' , markerLink: 'https://link-url-08' , markerContent: 'content 08', labelImageUrl:'http://content-08.jpg' , labelContent :'Namsan' , },
{ markerLat: 37.51206450770708, markerLng: 126.99551350556196, markerIcon:'marker08', markerLabel:'M.06', markerTitle: 'Sebitseom' , markerLink: 'https://link-url-09' , markerContent: 'content 09', labelImageUrl:'http://content-09.jpg' , labelContent :'Sebitseom' , },
{ markerLat: 37.512475796838515, markerLng: 127.00008346630337, markerIcon:'marker08', markerLabel:'M.06', markerTitle: 'Banpo Bridge' , markerLink: 'https://link-url-10' , markerContent: 'content 10', labelImageUrl:'http://content-10.jpg' , labelContent :'Banpo Bridge' , },
]
};
</script>