Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Linestyle with EndCap leaves artefacts on panning with oraclemapsv2.js

Lucas Marques de AzevedoJul 6 2020 — edited Jul 10 2020

We encountered a problem with the rendering for specific line styles with the oraclemapsv2.js.

We are using the oraclemapsv2.js (mapviewer_19.3.0.0.0) to display a geometry theme from MapBuilder containing line geometries. The style used is defined in MapBuilder as well.

If we pan the map, artefacts are left at the end of the line.

Before pan:

06-07-_2020_11-50-48.png

After panning, first down-left, then up-left:

06-07-_2020_11-51-03.png06-07-_2020_11-51-48.png

The artefacts stay at the same pixel position after zooming or panning of the map.

After a bit of testing we narrowed down the problem:

  • The problem occurs if we configure a “End Cap” for the line style in MapBuilder (SQUARE, ROUND)
  • Only the outer most lines create artefacts (the theme from the picture only contains 2 geometries)
  • The endpoint of the line must point up/down
  • Easier to reproduce with a line width of 6px
  • The artefacts disappear if the bounding box around all features is moved over them

Styledefinition used in this example:

<?xml version="1.0" standalone="yes"?>

<svg width="1in" height="1in">

<desc/>

<g class="line" style="fill:#0033FF;stroke-width:6;stroke-linecap:SQUARE">

\<line class="base"/>

</g>

</svg>

This post has been answered by Honglei Zhu-Oracle on Jul 6 2020
Jump to Answer
Comments
Post Details
Added on Jul 6 2020
1 comment
225 views