Wednesday 19 October 2016

Memapar Atribut Menggunakan Kaedah HTML Popup

Semenjak 2 menjak ni ramai yang bagitau saya dah lama le blog SukaGIS tak update tutorial, asyik update gambo training ngan conference je hehe. Tu le, bz skit le skrg involve project ngan training. Idea pun takde nk buat topik apa. So sementara ada masa terluang skit ni, dapat pulak satu idea nak buat satu topik yg simple.

Kali ni saya akan kongsikan satu cara untuk memaparkan dialog atribut menggunakan stail yang dipanggil HTML Popup. Rasanya anda semua mesti tau guna tool Identify yang ada icon gambar ‘i’ tu.. setengah orang panggil nama tool ni tool Info. Kalau klik tool tu pastu klik atas map, nanti anda akan dapat info atribut pada feature yang ada klik tu kan? Contoh macam kat bawah ni :-



Kalau anda guna tool Identify ni, setiap kali anda klik feature di atas map, dialog atribut yang baru akan dipaparkan. Tapi kadangkala mungkin anda nak buat analisa perbandingan atribut untuk beberapa feature, contohnya anda nak klik 3 polygon, kemudian dialog atribut untuk ketiga-tiga polygon tu anda nak paparkan serentak untuk dianalisa. Cara tool Identify tak boleh nak buat mende camni sebab setiap kali anda klik, dialog atribut baru akan dipaparkan, maksudnya anda klik polygon 1, atribut 1 dipapar, kalau klik polygon 2, atribut polygon 1 tadi dah tak nampak sebab dia akan papar atribut polygon 2 pulak.. faham tak maksud saya? Tak caya cer test.

So kalau anda nak view dialog atribut serentak untuk lebih dari 1 feature yang anda klik, cara paling senang gunakan kaedah HTML Popup. Nak buat ni mula-mula buka dulu dialog Properties untuk layer yang anda nak tengok.



Kemudian kat dialog Layer Properties, buat step ni :-



Penerangan gambar :-
  1. Klik tab Fields
  2. Aktifkan field atribut mana yang anda nak lihat dalam dialog atribut nanti.


Kemudian buat step ni pulak.



Penerangan gambar :-
  1. Klik tab HTML Popup
  2. Klik checkbox Show content bla bla bla tu
  3. Ada banyak option nak display HTML formatting ni, saya tunjuk cara yang paling simple je, pilih option As table of the visible fields
  4. Klik OK.


OK… setting-setting semua dah buat,.. lepas ni macamana cara nak papar atribut tu. Jangan guna tool Identify. Guna satu lagi tool, nama tool ni HTML Popup, dia sebaris gak ngan tool Identify.



Kemudian klik pada beberapa polygon yang anda nak lihat atribut. Susunkan dialog atribut tu supaya mudah dilihat dan tidak bertindih.



So itulah hasilnya, paparan atribut dia pun menarik sikit sebab ada color belang2 biru giteww... untuk buat presentation menarik le.


Selamat mencuba….

15 comments:

  1. A'kum....boleh saya tahu mcamana nak masukkan image dalam html popup ni?

    ReplyDelete
    Replies
    1. wsalam.. tn kena jadikan image tu sbgai geodatabase attachment dlu. Rujuk post sy seblum ni brkenaan bagaimana nak create geodb attachment..

      Delete
  2. Job scope at huge scale lies for forensic science professionals at crime laboratories rub by city, county or state governments. The other region where a person searching for a career in forensic science can secure job are Federal agencies such as the Departments of Justice, Federal Bureau of Investigation, Secret Service, Drug Enforcement Administration, Bureau of Alcohol, Tobacco and Firearms, Postal Inspection Service and other essential departments, private labs and university laboratories is also a area of function for Forensic Science technician. website designer nyc

    ReplyDelete
  3. Very nice post. I just stumbled upon your weblog and wanted to say that I have truly enjoyed surfing around your blog posts. After all I will be subscribing to your rss feed and I hope you write again soon! web design manhattan

    ReplyDelete
  4. Hi there, You have done an excellent job. I’ll certainly digg it and for my part suggest to my friends. I’m confident they’ll be benefited from this website. new york web design company

    ReplyDelete
  5. Hmm, I never thought about it that way. I do see your point but I think many will disagree ny web design firms

    ReplyDelete
  6. This comment has been removed by the author.

    ReplyDelete
  7. Can I just say what a aid to find somebody who actually knows what theyre talking about on the internet. You undoubtedly know learn how to convey a difficulty to mild and make it important. More individuals have to read this and perceive this facet of the story. I cant believe youre no more well-liked because you definitely have the gift. branding agency san francisco

    ReplyDelete
  8. In this great design of things you’ll receive an A just for effort. Where you actually confused us was in your facts. You know, they say, details make or break the argument.. And it couldn’t be more accurate here. Having said that, let me reveal to you just what exactly did deliver the results. The writing can be pretty persuasive and that is possibly the reason why I am taking the effort to comment. I do not make it a regular habit of doing that. Second, although I can easily notice the jumps in logic you make, I am definitely not convinced of just how you appear to connect your ideas that produce the actual conclusion. For right now I will subscribe to your position however wish in the near future you actually connect your dots much better. branding san francisco

    ReplyDelete
  9. This internet site is my aspiration, very excellent design and Perfect articles. sf design agency

    ReplyDelete
  10. I really got into this article. I found it to be interesting and loaded with unique points of interest. I like to read material that makes me think. Thank you for writing this great content. iphone png

    ReplyDelete
  11. cleaning supplies should have earth friendly organic ingredients so that they do not harm the environment;; design firms los angeles

    ReplyDelete
  12. Howdy sir, you have a really nice blog layout “  web design company los angeles

    ReplyDelete
  13. I discovered your blog site website on the search engines and appearance many of your early posts. Continue to keep in the top notch operate. I recently additional up your Rss to my MSN News Reader. Seeking toward reading far more by you later on!… los angeles web agency

    ReplyDelete
  14. This is such a great resource that you’re offering and you provide out at no cost. I appreciate seeing sites that realize the worth of offering a perfect useful resource totally free. I genuinely loved reading your submit. web design tips

    ReplyDelete