핸들러에서는 marker object가 아니기 때문에

overlay의 title과 zIndex 정도가 클릭시 얻을수 있는 외부(?) 정보로 사용이 가능할 것으로 보인다.


var marker = new naver.maps.Marker(

            {

                position: new naver.maps.LatLng(data.lat, data.lng),

                title : data.name,

                zIndex : i,

                map: map

            }

        ); 


        naver.maps.Event.addListener(marker, "dblclick", function (e) {            

            // console.log(e);

            // console.log(e.overlay.zIndex);

            // console.log(e.overlay.title);

            console.log(e.overlay);

        }); 

[링크 : https://navermaps.github.io/maps.js/docs/naver.maps.Marker.html]

Posted by 구차니

공식 문서에는 잘 안나오네..

아무튼 idle이벤트는 어떤 행위를 하고 나서 발생을 한다.

즉, 처음 로딩시 설정하고 무언가를 해주더라도 idle 이벤트가 발생하지 않고

마우스로 옮기는 등의 사용자 행동을 한 이후에 idle 이벤트가 발생하게 된다.


    naver.maps.Event.addListener(map, 'idle', function() {

        console.log('idle');

    }); 

[링크 : https://developers.naver.com/forum/posts/26097]

[링크 : https://navermaps.github.io/maps.js/docs/tutorial-UI-Event.html]



+

원래는 로딩시에 idle이 뜨는줄 알고

그 이후에 마커를 표시하려고 했는데 안되서 찾는중


+

UI 이벤트 목록

mousedown, mouseup, click, dblclick, rightclick, mouseover, mouseout, mousemove

dragstart, drag, dragend

touchstart, touchmove, touchend, pinchstart, pinch, pinchend, tap, longtap, twofingertap, doubletap 


[링크 : https://navermaps.github.io/maps.js/docs/tutorial-UI-Event.html]

Posted by 구차니

고갱님의 요청 사항에 의해서 검색을 하는데

구글 API 내용도 조금 걸려나오지만

선이 천천히 그려지는 애니메이션 효과 자체는 기대하기 힘든 듯..

(즉, timer를 쓰던 멀 하던 따로 구현을 해야 하는 것으로 보임)


circle duration

[링크 : https://navermaps.github.io/maps.js/docs/tutorial-3-event-overlay.example.html]



마커 bound animation

[링크 : https://navermaps.github.io/maps.js/docs/tutorial-marker-animation.example.html]

Posted by 구차니

내가 찾던 '그' 방식

map을 생성할때 option 객체를 통해 생성하니 더욱 간결해서 좋다.


[링크 : https://navermaps.github.io/maps.js/docs/tutorial-3-control-positioning.example.html]


아래는 버튼을 따로 그리고 절대 좌표로 띄워놓는 방식

<style type="text/css">

#wrap .buttons { position:absolute;top:0;left:0;z-index:1000;padding:5px; }

#wrap .buttons .control-btn { margin:0 5px 5px 0; }

</style>

<div id="wrap" class="section">

<h2>지도 유형 설정하기</h2>

<p>지도의 유형을 설정하는 예제입니다. 이 예제는 jQuery 구문을 포함하고 있습니다.</p>

<div id="map" style="width:100%;height:600px;">

<div class="buttons">

<input id="NORMAL" type="button" value="일반지도" class="control-btn control-on" />

<input id="TERRAIN" type="button" value="지형도" class="control-btn" />

<input id="SATELLITE" type="button" value="위성지도" class="control-btn" />

<input id="HYBRID" type="button" value="겹쳐보기" class="control-btn" />

</div>

</div>

<code id="snippet" class="snippet"></code>

</div>

<script id="code">

var map = new naver.maps.Map('map', {

center: new naver.maps.LatLng(37.3595704, 127.105399),

zoom: 10

});


var btns = $(".buttons > input");

btns.on("click", function(e) {

e.preventDefault();


var mapTypeId = this.id;


if (map.getMapTypeId() !== naver.maps.MapTypeId[mapTypeId]) {

map.setMapTypeId(naver.maps.MapTypeId[mapTypeId]); // 지도 유형 변경하기


btns.removeClass("control-on");

$(this).addClass("control-on");

}

});

</script> 

[링크 : https://navermaps.github.io/maps.js/docs/tutorial-3-map-types.example.html]

Posted by 구차니
프로그램 사용/WinE2018. 9. 25. 17:20

playonlinux에서 IE 깔려고 하니 자꾸 에러가 떠서 포기하고




Error in POL_Wine

Wine seems to have crashed


If your program is running, just ignore this message 


wine으로 직접 무언가 해보려고 했더니 또 안된다.

에러를 보다보니.. not supported on this installation (x86 binary)가 키인거 같은데..

~/Downloads$ wine npp.7.5.8.Installer.exe 

wine: created the configuration directory '/home/odroid/.wine'

0012:err:ole:marshal_object couldn't get IPSFactory buffer for interface {00000131-0000-0000-c000-000000000046}

0012:err:ole:marshal_object couldn't get IPSFactory buffer for interface {6d5140c1-7436-11ce-8034-00aa006009fa}

0012:err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hres=0x80004002

0012:err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11ce-8034-00aa006009fa}, 80004002

0012:err:ole:get_local_server_stream Failed: 80004002

0014:err:ole:marshal_object couldn't get IPSFactory buffer for interface {00000131-0000-0000-c000-000000000046}

0014:err:ole:marshal_object couldn't get IPSFactory buffer for interface {6d5140c1-7436-11ce-8034-00aa006009fa}

0014:err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hres=0x80004002

0014:err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11ce-8034-00aa006009fa}, 80004002

0014:err:ole:get_local_server_stream Failed: 80004002

Could not load wine-gecko. HTML rendering will be disabled.

wine: configuration in '/home/odroid/.wine' has been updated.

0009:err:process:create_process L"Z:\\home\\odroid\\Downloads\\npp.7.5.8.Installer.exe" not supported on this installation (x86 binary)

wine: Bad EXE format for Z:\home\odroid\Downloads\npp.7.5.8.Installer.exe. 


어떻게 보면 당연한게

WinE은 Wine is not Emulator 라고 하듯, x86 에뮬레이터가 아니기에

x86 바이너리가 실행되는 x86 linux 상에서 윈도우를 흉내내주는 녀석일뿐

arm 에서 x86 바이너리를 실행하게 해주는 녀석은 아니라는 결론(?)


cd Downloads

wget http://downloads.eltechs.com/exagear-desktop-v-2-1/exagear-desktop-rpi3.tar.gz

tar -xvzpf exagear-desktop-rpi3.tar.gz

sudo ./install-exagear.sh

exagear 

[링크 : https://thepi.io/how-to-run-x86-programs-on-the-raspberry-pi/]

[링크 : https://eltechs.com/run-wine-on-raspberry-pi/]

[링크 : https://www.instructables.com/id/How-to-Set-Up-Wine-on-Raspberry-Pi-1/]


자사 기술 광고 같은데 들어가면 무조건 23시간 남았다고 1+1 준다고 난리네 -_-

QEMU를 써도 되긴 한다는 건가.. 이녀석 받아 보려니 423MB라 한참 걸리는데..

qemu + wine도 찾아볼 필요는 있겠다.

It is like QEMU but 5 times faster!

[링크 : https://eltechs.com/product/exagear-desktop/exagear-desktop-features-and-prices-daily1/]


+

받는게 한참 걸려서 해보려고 했더니

데모 버전인줄 알았더니 시리얼 키가 필요한 정품.. -_-

안하고 말지 췟

$ sudo ./install-exagear.sh 

[sudo] password for odroid: 

System memory configuration is determined as 3g/1g

ARCH=armv7l

HOST OS: ubuntu

HOST OS VERSION: 18

EXAGEAR package: exagear_*-1_armhf.deb

EXAGEAR guest image package: 'exagear-guest-ubuntu-1604_*_all.deb'

Put a primary key file to the current directory.

Primary key files are named pk-NNNNNN.key 


'프로그램 사용 > WinE' 카테고리의 다른 글

wine 한글 폰트  (0) 2019.05.21
playonlinux @ 18.04 ubuntu  (0) 2019.05.20
한층 더 쩔어진 winE  (0) 2012.04.08
wine 에서 cd넣고 실행시 에러 뜰때  (0) 2012.01.21
wine - WINdows Emulator (?)  (2) 2012.01.21
Posted by 구차니

가끔(?) status 하면 새로 추가되거나 수정된 파일이 안뜰때가 있는데

이거 해주면 새로 읽어서 status에 뜨게 해준다.


$ git update-index --again 

[링크 : https://stackoverflow.com/questions/10006462/refresh-staged-files]

'프로그램 사용 > Version Control' 카테고리의 다른 글

git 리비전 이동 후 pull 안되는 문제  (0) 2018.10.22
git 리비전 돌아 다니기  (0) 2018.10.18
git 원격지 주소 변경하기  (0) 2018.09.06
git archive (svn export)  (0) 2018.09.05
git rm 복구하기  (0) 2018.08.22
Posted by 구차니

한글로 된 내용을 저장하려고 했는데

"Warning: Incorrect string value:" 요런 에러 뿜뿜


망할(?) centos mariadb가 latin1_swedish_ci 이 기본인지라

생성했던 모든 데이터베이스와 테이블과 필드가 모두 이걸로 설정.. -_-


아무튼 가장 좋은건 DB 서버 설정시 캐릭터 셋과 콜레이션을 정해주고 시작하는건데

[링크 : http://nicesea.tistory.com/6]


그게 아니라면 일일이 하나씩 변경해 주는 수밖에.. ㅠㅠ


ALTER TABLE mytable CONVERT TO CHARACTER SET utf8  

[링크 : https://stackoverflow.com/questions/1294117/how-to-change-collation-of-database-table-column]

[링크 : https://zetawiki.com/wiki/MySQL_테이블_collation_변경]


'프로그램 사용 > mysql & mariaDB' 카테고리의 다른 글

mysql client 다른 호스트 접속하기  (0) 2018.12.20
ubuntu 18.04 apparmor와 mysql 충돌  (0) 2018.11.19
mariadb 캐릭터 셋  (0) 2018.09.13
Mariadb root access denied  (0) 2018.04.19
mysql sql문 변수 사용  (0) 2017.05.20
Posted by 구차니

centos 7에 mariadb 깔았는데

심하게 뜬금없에 latin1_swedish_ci로 설정이 되어있다.

아무튼 일일이 하나씩 변경을 해야하나..?


In MariaDB, the default character set is latin1, and the default collation is latin1_swedish_ci (however this may differ in some distros, see for example Differences in MariaDB in Debian). 

[링크 : https://mariadb.com/kb/en/library/setting-character-sets-and-collations/]

[링크 : https://slobell.com/blogs/38]

Posted by 구차니

네이버 지도 글들은 아니지만

일단 네이버 예제를 보면 실수 3 자리와 소수 7 자릿수로 나타나는데

그걸 담을 적절한 방법을 찾아 보면 될 듯

(*10해서 10자리라던가?)



[링크 : https://stackoverflow.com/...-ideal-data-type-to-use-when-storing-latitude-longitudes-in-a-mysql]

[링크 : https://dev.mysql.com/doc/refman/5.6/en/spatial-types.html]

Posted by 구차니

마커를 추가하고 클릭시에 이벤트를 어떻게 발생시키는지 찾는중

(네이버 지도에서 검색하고 마커를 누르면 목록에서 선택되는데 이런 작동을 찾는중)


[링크 : https://navermaps.github.io/maps.js/docs/tutorial-UI-Event.html]

[링크 : https://navermaps.github.io/maps.js/docs/tutorial-marker-viewportevents.example.html]

[링크 : https://developers.naver.com/forum/posts/24051]

Posted by 구차니