<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:等线;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\@等线";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:等线;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-family:等线">Hi Torsten,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:等线">Thanks for the tip.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:等线">I quickly hacked code as attached patch, it does can show all placemarks as I expected.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:等线"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:等线">However, to make it a valid enhancement, I have below questions:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:等线">- Where to add new API? The hack code impact all placemarks, I believe should limit it to requestor (i.e. specific plugin), but keep old behavior for others.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:等线">- Looks like PlacemarkLayout binds to PlacemarkLayer. I guess LayerInterface is right way to change for new API?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:等线">- For plugin, how to to create a new layer and customize layer’s behavior via API?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:等线">- For placemarksOnScreenLimit, I guess should be similar, add new API to set limits by requestor?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:等线"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:等线">Hope my comment is reasonable.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:等线">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:等线">WANG Cui<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:等线"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Torsten Rahn <tackat@t-online.de> <br>
<b>Sent:</b> Sunday, March 26, 2023 2:29 AM<br>
<b>To:</b> ?? WANG Cui <iucgnaw@msn.com>; Mailinglist, Marble-Devel <marble-devel@kde.org><br>
<b>Subject:</b> AW: How to force to show all placemarks even when overlapp each other<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p style="margin:0in"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">Hello,</span><o:p></o:p></p>
<p style="margin:0in"> <o:p></o:p></p>
<p style="margin:0in"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">yes the default behavior is that Marble will only populate the map view with "the most prominent" placemarks up to a certain density. </span><o:p></o:p></p>
<p style="margin:0in"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">At the same time it also takes care not to have the labels overlapped (by testing out four default label positions).</span><o:p></o:p></p>
<p style="margin:0in"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">The current layout algorithm is optimized for speed.</span><o:p></o:p></p>
<p style="margin:0in"> <o:p></o:p></p>
<p style="margin:0in"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">The density check is made inside placemarksOnScreenLimit and there is currently no API that would allow to change this default behavior.</span><o:p></o:p></p>
<p style="margin:0in"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">Feel free to create a patch that would allow to change the limit away from the default via a dedicated API. </span><o:p></o:p></p>
<p style="margin:0in"> <o:p></o:p></p>
<p style="margin:0in"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">Best regards</span><o:p></o:p></p>
<p style="margin:0in"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">Torsten</span><o:p></o:p></p>
<p style="margin:0in"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black"> </span><o:p></o:p></p>
<p style="margin:0in"> <o:p></o:p></p>
<p style="margin:0in"> <o:p></o:p></p>
<p style="margin:0in"> <o:p></o:p></p>
<p style="margin:0in">-----Original-Nachricht-----<o:p></o:p></p>
<p style="margin:0in">Betreff: How to force to show all placemarks even when overlapp each other<o:p></o:p></p>
<p style="margin:0in">Datum: 2023-03-25T15:26:50+0100<o:p></o:p></p>
<p style="margin:0in">Von: "?? WANG Cui" <<a href="mailto:iucgnaw@msn.com">iucgnaw@msn.com</a>><o:p></o:p></p>
<p style="margin:0in">An: "Mailinglist, Marble-Devel" <<a href="mailto:marble-devel@kde.org">marble-devel@kde.org</a>><o:p></o:p></p>
<p style="margin:0in"> <o:p></o:p></p>
<p style="margin:0in"> <o:p></o:p></p>
<p style="margin:0in"> <o:p></o:p></p>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black">Hi,<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black">Placemarks all show on globe when separate from each other without overlapping. However, when zoom out globe,
 placemarks get overlap and only 1 placemark shows, other placemarks hide.<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black">Is there a way to force all placemarks show even when overlap each other?<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black">WANG Cui<o:p></o:p></span></p>
</div>
</div>
<p style="margin:0in"> <o:p></o:p></p>
<p class="MsoNormal"><o:p></o:p></p>
</div>
</body>
</html>