Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 8 of 8

Drawing Shapes

This is a discussion on Drawing Shapes within the MapPoint Desktop Discussion forums, part of the Map Forums category; I have a feww questions about shapes that, hopfully someone will be able to answer: 1. is there anyway to ...

  1. #1
    Matrices is offline Member Yellow Belt
    Join Date
    Sep 2003
    Posts
    44

    Drawing Shapes

    I have a feww questions about shapes that, hopfully someone will be able to answer:

    1. is there anyway to draw a custom item on the map without using a pushpin?

    2. Is there anyway to change the colour used by the drawing object to black and/or fill a shape?

    3. Is there anyway to remove a drawing object from the map once its been drawn on?

    If it helps, I'm trying to use show a route a vehicle took via dots where i have data logs

    Cheers

    M

  2. #2
    Matrices is offline Member Yellow Belt
    Join Date
    Sep 2003
    Posts
    44
    just to expand a bit on 2, i've found the msdn example which says
    Code:
    objMap.Shapes.Item(1).Fill.ForeColor = vbRed
    except that vbred is not a declared

    M

  3. #3
    Matrices is offline Member Yellow Belt
    Join Date
    Sep 2003
    Posts
    44
    right, lets ignore 2 and 3 I'm a blatent muppet
    Have dome across another problem though, how can you tell if a dataset of pushexists already?

    cheers

    M

  4. #4
    Eric Frost's Avatar
    Eric Frost is offline Administrator Black Belt
    Join Date
    Jul 1992
    Posts
    5,094
    Blog Entries
    4
    For #1, see the Add* methods, there's an AddShape method which will add geometric primitives, and AddLine / AddPolyline methods.. also AddTextBox.

    I think for your last question you would loop through the Datasets collections and then see if the Name property of the Dataset matches what you're looking for..

    Eric
    ~ Order MapPoint MapPoint 2013 Here and Get Free Access to the MapForums Downloads ~
    ~~
    ~ Upgrade to Get Access to the MapForums Downloads ~

  5. #5
    Matrices is offline Member Yellow Belt
    Join Date
    Sep 2003
    Posts
    44
    yeah, found the add stuff and it what i'm using at the mo, is there anyway to use a gif or a bmp though instead? boss reckons it has to look "pretty"

    Cheers for the second bit btw

    M

  6. #6
    tea_boy is offline Junior Member White Belt
    Join Date
    Nov 2006
    Posts
    9

    Re: Drawing Shapes

    I have been able to add a bmp to the map by adding a custom symbol, and assigning it to a pushpin, i can give more details if required

  7. #7
    Eric Frost's Avatar
    Eric Frost is offline Administrator Black Belt
    Join Date
    Jul 1992
    Posts
    5,094
    Blog Entries
    4

    Re: Drawing Shapes

    Can you post or attach a screenshot?

    Eric

  8. #8
    tea_boy is offline Junior Member White Belt
    Join Date
    Nov 2006
    Posts
    9

    Re: Drawing Shapes

    I have attatched 3 pictures, showing a custom bitmap icon, one when it is unselected, one when the user selects it with a single click and one when the user double clicks it to see the info bubble. Note that the bitmap is only a test (aka a bit crap) and also it is only a very small bitmap, i think 16x16. I know that mappoint will allow images up to at least 128x128 maybe larger, but they need to be in the correct bitmap format, i did this by photoshopping some icons, then pasting them into paint, and saving them.
    Attached Images Attached Images

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Associate shapes with pin
    By Dazzer in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 04-30-2004, 10:00 AM
  2. Drawing Tools
    By uspickle in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 01-13-2004, 09:51 AM
  3. Shapes behind roads?
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 08-27-2003, 10:35 AM
  4. not to move shapes
    By Manuel in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 05-19-2003, 02:46 PM
  5. Drawing shapes on the ocx
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 10-01-2002, 05:54 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36