This discussion is archived
3 Replies Latest reply: Feb 15, 2012 11:52 PM by 641995 RSS

Custom Line/Edge styles not plotted on specific levels

641995 Newbie
Currently Being Moderated
Hi,

In our application we are plotting 2 types of lines on the MapViewer Canvas. Initially they are displaying correctly. But, if we navigate to the specific zoom levels the lines are not plotted. Is there any known issue while plotting the lines. Also, with some Oracle database versions such as Oracle 11g XE, the lines are not plotted in any zoom level.

Below are the styles related to the two lines which are are plotting.

1. Line 1

<?xml version="1.0" standalone="yes"?>
<svg width="1in" height="1in">
<desc></desc>
<g class="line" style="fill:#000000;stroke-linecap:BUTT">
<line class="base" style="fill:#666666;stroke-width:2" dash="6.0" />
</g>
</svg>

2. Line 2
<?xml version="1.0" standalone="yes"?>
<svg width="1in" height="1in">
<desc></desc>
<g class="line" style="fill:#000000;stroke-width:2;stroke-linecap:BUTT">
<line class="base" /></g>
</svg>

Any clue would be helpful.

regards,
Chandra.
  • 1. Re: Custom Line/Edge styles not plotted on specific levels
    lqian Journeyer
    Currently Being Moderated
    These style definitions look invalid to me (with empty strings for the style attribute). Can you make sure they have valid stroke width and color et al via the Map Builder tool? Some versions of mapViewer might be more tolerant than others when seeing this kind of invalid styles.

    As for the XE lines not showing, can you check your mapViewer server logs to see if there is any exception related to database queries et al?

    thanks
    LJ
  • 2. Re: Custom Line/Edge styles not plotted on specific levels
    641995 Newbie
    Currently Being Moderated
    Below are the correct styles. Some how in my last post the content in the quotes was chopped.

    1. Line 1

    <?xml version="1.0" standalone="yes"?>
    <svg width="1in" height="1in">
    <desc></desc>
    <g class="line" style="fill:#000000;stroke-linecap:BUTT">
    <line class="base" style=\"fill:#666666;stroke-width:2\" dash="6.0" />
    </g>
    </svg>

    2. Line 2

    <?xml version="1.0" standalone="yes"?>
    <svg width="1in" height="1in">
    <desc></desc>
    <g class="line" style=\"fill:#000000;stroke-width:2;stroke-linecap:BUTT\">
    <line class="base" /></g>
    </svg>


    regards,
    Chandra
  • 3. Re: Custom Line/Edge styles not plotted on specific levels
    641995 Newbie
    Currently Being Moderated
    Hi - This was an internal problem in our application, that is while inserting the style data into the database by the Installer, installer program would chop the ; from the style content and the style was not displayed correctly and missing display in different zoom levels.

    regards,
    Chandra.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points