Setting PLine color with Pen Patterns

35 views
Skip to first unread message

Bryan Kubishta

unread,
Aug 6, 2023, 2:48:52 PM8/6/23
to MapInfo-L
Hi all!  I'm addressing a bunch of issues in our MapBasic code and have arrived at a problem I don't see how to address.  When drawing PLine objects with a pen that has end points, the middle of each line segment is always drawn black but the end nodes are shown in the color specified.  So for example picking a simple PLine with Pen(2, 2, BLUE) we get a line completely blue as expected.  But if I use Pen(2, 80, BLUE) the dots at the segment ends are blue but the line connecting them is black.

Is there a way to change this behavior?  Especially on a per-PLine basis, not by modifying some sort of global default.


Peter Horsbøll Møller

unread,
Aug 7, 2023, 4:45:27 AM8/7/23
to mapi...@googlegroups.com

Hi Bryan

 

You could add a new line style to the pen file that comes with MapInfo Pro.

I would however recommend using a stacked style on a layer override.

 

See this post: MapInfo Monday: Combining Line Styles on Layers

 

Alternative, as I also suggest in the post, use two thematic maps for your layer.

 

Peter

 

Peter Horsbøll Møller
Principal Sales Engineer - Distinguished Engineer

 

From: mapi...@googlegroups.com <mapi...@googlegroups.com> On Behalf Of Bryan Kubishta
Sent: 6. august 2023 16:48
To: MapInfo-L <mapi...@googlegroups.com>
Subject: [MI-L] Setting PLine color with Pen Patterns

 

This message originated Externally. Use proper judgement and caution with attachments, links, or responses.

 

Hi all!  I'm addressing a bunch of issues in our MapBasic code and have arrived at a problem I don't see how to address.  When drawing PLine objects with a pen that has end points, the middle of each line segment is always drawn black but the end nodes are shown in the color specified.  So for example picking a simple PLine with Pen(2, 2, BLUE) we get a line completely blue as expected.  But if I use Pen(2, 80, BLUE) the dots at the segment ends are blue but the line connecting them is black.

 

Is there a way to change this behavior?  Especially on a per-PLine basis, not by modifying some sort of global default.

 

 

--
--
You received this message because you are subscribed to the
Google Groups "MapInfo-L" group.To post a message to this group, send
email to mapi...@googlegroups.com
To unsubscribe from this group, go to:
http://groups.google.com/group/mapinfo-l/subscribe?hl=en
For more options, information and links to MapInfo resources (searching
archives, feature requests, to visit our Wiki, visit the Welcome page at
http://groups.google.com/group/mapinfo-l?hl=en

---
You received this message because you are subscribed to the Google Groups "MapInfo-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapinfo-l+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mapinfo-l/9e25443b-ec58-4676-92d9-2e17b0f0b4a5n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages