balloonOnlyTag property

String balloonOnlyTag

Property that defines a placemark tag which contains only a balloon. FF537DC0

Implementation

String get balloonOnlyTag => '''
  <Style id="balloon-$id">
    <BalloonStyle>
      <bgColor>000000</bgColor>
      <text><![CDATA[
       <html>
        <body style="font-family: montserrat, sans-serif; font-size: 18px; width: 400px; display: flex; justify-content: center; align-items: center;">
          <div style="background-color: #ffffff; padding: 10px; border-radius: 5px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);">
            <span style="color: black;">$balloonContent</span> <!-- Content of the balloon with red color -->
          </div>
        </body>
      </html>
      ]]></text>
    </BalloonStyle>
    <LabelStyle>
      <scale>0</scale>
    </LabelStyle>
    <IconStyle>
      <scale>0</scale>
    </IconStyle>
  </Style>
  <Placemark>
    <name>$name-Balloon</name>
    <styleUrl>#balloon-$id</styleUrl>
    ${point?.tag}
    <gx:balloonVisibility>${balloonContent.isEmpty ? 0 : 1}</gx:balloonVisibility>
  </Placemark>
''';