MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Mappoint Pushpin problem

This is a discussion on Mappoint Pushpin problem within the Development forums, part of the MapPoint 2006/2009 Discussion category; Hi guys, here part of codes i try to find for a result and add in location then use that ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion > Development

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack (2) Thread Tools Display Modes
  2 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 06-12-2008
Junior Member
White Belt
 
Join Date: Jun 2008
Posts: 3
Mappoint Pushpin Location problem

Hi guys,


here part of codes
i try to find for a result
and add in location
then use that to add in my pushpin
the location detail capture is correct
but after go in the pushpin
the information is lost
postal code ,city,country all lost
any idea?

Mapoint.FindResults oFindResults=oMap.ObjectsFromPoint(x,y)
object oObj;
oObj = (object)1;
MapPoint.Location oL;
oL= (MapPoint.Location)oFindResults.get_Item(ref oObj);

Mappoing.Pushpin oShowPlace = oMapHelper.oMap.AddPushpin(oL,"Markerad adress");
oShowPlace.Highlight = true;
// Red symbol
oShowPlace.Symbol = 1;

}

any solution for this?

Last edited by benlaw81; 06-13-2008 at 09:59 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 06-16-2008
Eric Frost's Avatar
Senior Member
Black Belt
 
Join Date: Jul 1992
Posts: 2,471
Blog Entries: 1
Re: Mappoint Pushpin problem

Do you mean the Location object (oL) has postal code, city, and country but the Pushpin object does not?

Eric
__________________
~ Now taking orders for MapPoint 2009 ~
~
~ Upgrade to MapForums Plus membership ~
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 06-16-2008
Junior Member
White Belt
 
Join Date: Jun 2008
Posts: 3
Re: Mappoint Pushpin problem

Quote:
Originally Posted by Eric Frost View Post
Do you mean the Location object (oL) has postal code, city, and country but the Pushpin object does not?

Eric
yes when it added into pushpin
retrieve out the postal code is gone
only left streetname which i see combine the address


BTW i got another problem
i got this application adding
Mappoint control
and adding mappoing object library
how to make both working together?

or actually i should stick to one only?

please advice
THANKS
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 06-17-2008
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,112
Re: Mappoint Pushpin problem

Hi,

You cannot have the object model and the activex model in the same application. At least not in C#. Probably never.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 06-17-2008
Junior Member
White Belt
 
Join Date: Jun 2008
Posts: 3
Re: Mappoint Pushpin problem

hi guys
i have find solution for my problem
it's cause by the regional language setting
in my case i didnt switch it to swedish
and the mappoint previously is install and configure to swedish format
so guys beware next time

btw
i have tested control n object can work together in a application
what u need to do is use type library to export into different namespace
and there it go

Thanks everyone
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
mappoint, problem, pushpin


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/mappoint-pushpin-problem-7851.html

Posted By For Type Date
Automating MapPoint with the .NET SDK - MapPoint Articles - MP2K Magazine This thread Refback 06-17-2008 01:19 PM
Microsoft MapPoint 2006 - MP2K Magazine This thread Refback 06-13-2008 01:19 AM

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Pushpin Tool 2.4 Trail Version Installation Problem noesteoeste Products: Pushpin Tool, Single State Mapper 2 1 Week Ago 11:46 AM
Pushpin Problem PeterLeeds MapPoint 2006/2009 Discussion 7 01-15-2008 02:11 PM
MAPPOINT - Problem : Pushpin is NOT displayed Transit MapPoint 2006/2009 Discussion 8 01-15-2008 02:07 PM
Problem: Pushpin -> Polyline Michelin MapPoint 2006/2009 Discussion 1 02-26-2004 01:31 PM


All times are GMT -5. The time now is 10:23 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


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 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54