Menentukan prioritas label jika terjadi tumpang tindih dengan label lain. Label dengan prioritas lebih rendah tidak dirender. Defaultnya adalah 1000.
Contoh
Contoh Pelabelan Titik
Secara default, SimpleLabeling menggambar teks di atas titik:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Untuk mengontrol posisi teks relatif terhadap fitur titik, properti penempatan harus diatur:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Untuk skenario yang lebih maju, Anda mungkin ingin memilih pelabelan yang berbeda untuk fitur. Berikut cara melakukannya:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Secara default, SimpleLabeling menggambar label di dekat tengah garis:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Untuk memutar label agar sejajar dengan garis, LineLabelPlacement dengan LineLabelAlignment.Parallel dapat digunakan:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Jika Anda ingin teks mengikuti garis secara tepat, LineLabelPlacement dengan LineLabelAlignment.Curved dapat digunakan:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Jika Anda tidak ingin teks tumpang tindih dengan garis, gunakan LineLabelPlacement.Offset:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Untuk skenario yang lebih maju, Anda mungkin ingin menyesuaikan gaya label secara dinamis berdasarkan nilai atribut fitur. Berikut cara melakukannya:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters