/* カスタマイズ用のJavaScriptコードをここに記述してください */ // 郵便局アイコンの下に「ゆうプリタッチ」画像表示 function addYPRMark(id, icnno, mouseupaction) { mrk = ZdcEmapListMarkers[id].marker; latlon = mrk.getLatLon(); sizeh = ZdcEmapIconH[icnno]; ZdcEmapListMarkers[id].tooltip = new ZDC.Marker(latlon, { custom:{ base:{ src:ZdcEmapIconImg['@YPR'] } }, offset: ZDC.Pixel( - ZdcEmapIconW['@YPR'] / 2, sizeh / 2 ) }); ZdcEmapListMarkers[id].tooltip.data = {id: mrk.data.id}; if (typeof mouseupaction == 'function') { ZDC.addListener(ZdcEmapListMarkers[id].tooltip, ZDC.MARKER_MOUSEUP, mouseupaction); } else if (mouseupaction == 'detail') { ZDC.addListener(ZdcEmapListMarkers[id].tooltip, ZDC.MARKER_MOUSEUP, function() { ZdcEmapShopMsg(0, 1, 'detail'); }); // add start 2018/02/27 H.Yasunaga 詳細の場合のみこの関数でMAPオブジェクトに対してaddWidgetする [ ZdcEmapMapObj.addWidget(ZdcEmapListMarkers[id].tooltip); // add end 2018/02/27 H.Yasunaga ] } // del start 2018/02/27 H.Yasunaga 最寄一覧はこの関数のあとにaddWidgetするため [ //ZdcEmapMapObj.addWidget(ZdcEmapListMarkers[id].tooltip); // del end 2018/02/27 H.Yasunaga] }