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 6 of 6

Changing symbols of multiple pushpins.

This is a discussion on Changing symbols of multiple pushpins. within the MapPoint Desktop Discussion forums, part of the Map Forums category; Is it possible to change the symbol for multiple pushpins simultaneously? For example: If I placed 50 apples and 50 ...

  1. #1
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    Changing symbols of multiple pushpins.

    Is it possible to change the symbol for multiple pushpins simultaneously?

    For example: If I placed 50 apples and 50 oranges in different locations on a map and then imported that map from MapPoint into Pocket, all of my produce will share the same pushpin symbol. How can I select all of the apples and change the symbol for each so as to tell them apart from the oranges.

  2. #2
    Jeurink is offline Junior Member Yellow Belt
    Join Date
    Feb 2005
    Posts
    19
    Hi,

    you can add your pushpins to a data set or a pushpin set.

    From MS: Working with Pushpins in the MapPoint object model (you can find it in the MSDN)

    Whether Pushpins are created by the user or by calling the AddPushpin method, they are added to the default Pushpin set named My Pushpins. A Pushpin set is a DataSet object that doesn't have imported or linked fields. DataSet objects, including Pushpin sets, are listed in the map legend and are accessible in the object model through the DataSets collection.

    You can create new Pushpin sets by calling the AddPushpinSet method. To add Pushpins to the new set, first create them with the AddPushpin method, and then move them to the new set using the MoveTo method. Pushpins created by the AddPushpin method can be moved to other Pushpin sets but not to imported or linked sets. If you attempt to move a Pushpin to an incompatible data set, the MoveTo method returns False. If the move was successful, it returns True. A Pushpin can belong to only one set at a time.

    Sub NewPushpinSet()
    Dim oMap As MapPoint.Map
    Set oMap = GetObject(, "MapPoint.Application").ActiveMap

    Dim oPPSet As MapPoint.DataSet
    Dim oPin As MapPoint.Pushpin
    Dim oDS As MapPoint.DataSets

    Set oPin = oMap.AddPushpin(oMap.FindResults( _
    "Space Needle, Seattle, WA")(1))

    Set oDS = oMap.DataSets
    Set oPPSet = oMap.DataSets.AddPushpinSet("Deliveries")
    oPin.MoveTo oPPSet
    End Sub
    When this code runs, you end up with two Pushpin sets: the My Pushpins set created automatically by the AddPushpin method and the Deliveries set created by the call to the AddPushpinSet method.

    You can remove Pushpin sets the same way that you do any other set by using the Delete method on the DataSet object. See About mapping data with the MapPoint object model for more information.
    and with this code:
    Code:
    Sub ChangePushpinSymbol()
        Dim objApp As New MapPoint.Application
        Dim objDataSet As MapPoint.DataSet
    
        Set objDataSet = objApp.OpenMap(objApp.Path & "\Samples\Clients.ptm").DataSets("Clients")
        objApp.Visible = True
        objApp.UserControl = True
    
        'Change the symbol of the current data set
        objDataSet.Symbol = 224
      End Sub
    you can change the symbol of the data set

  3. #3
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    Changing symbols of multiple pushpins.

    Jeurink,

    I may not have been clear enough in the initial explanation of my problem.

    I am attempting to simulteneously change multiple pushpin symbols in Pocket Streets.

    Does Pocket Streets offer the pushpin functionality that you kindly detailed in your previous posting?

    Thanks

  4. #4
    Jeurink is offline Junior Member Yellow Belt
    Join Date
    Feb 2005
    Posts
    19
    Hi Ropa,

    is it about programmaticly changing the symbols after they are imported into pocket streets?

    I don't know the interface for Pocket Streets, and after a few quick searches I'm wondering if it is posible automate Pocket streets... ?

    In normal MapPoint you can right click your pushpin set and then go to propoperties and set a symbol for the whole set, but i'm afraid you already know that...

  5. #5
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    Changing symbols of multiple pushpins.

    Jeurink,

    Yes I am trying to programmaticly change multiple pushpins in Pocket Streets.

    I am beginning to think that what I am attempting to do is impossible in the 2005 version of pocket streets.

    Do you know of another forum devoted specifically to Pocket Streets?

    Thanks.

  6. #6
    Jeurink is offline Junior Member Yellow Belt
    Join Date
    Feb 2005
    Posts
    19
    Hi,

    No sorry, I've just started with MapPoint 2004, I don't know a lot about it.

    Succes with your search.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Having trouble getting symbols to match MapPoint's symbols
    By BobFromBoston in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 05-07-2006, 02:06 PM
  2. Custom Pushpins symbols
    By mionut in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 11-18-2005, 11:24 AM
  3. Changing Multiple Pushpins Simultaneously In Pocket Streets
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 03-08-2005, 03:31 PM
  4. Changing Multiple Pushpins Simultaneously in Pocket Streets.
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 03-04-2005, 12:33 PM
  5. Connect pushpins and then remove the symbols?
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 08-03-2004, 03:25 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