PDA

View Full Version : New to MapPoint



Anonymous
05-05-2004, 03:27 PM
Hi,
I would like to use MapPoint to build a US map with a list of our branches displayed as pushpins and then on clicking the pushpin, the details of the branch office displayed.
This corresponds to the ImageMap example in the MapPoint .NET WebService..however, i would like to know if the same example wil work for this.....or are there any other examples i can go through..if so some pointers to links or tutorials would be greatly appreciated.
Thanks
Arthur

John Meyer
05-06-2004, 08:24 AM
For this to work you will need a project in VB6 with the MapPoint Control on a form (MappointControl1) and you will need to add a pushpin named BranchOffice1". Also add another pushpin so you can click one than the other to see if it works right. Let me know if this works for you..


Private Sub MappointControl1_SelectionChange(ByVal pNewSelection As Object, ByVal pOldSelection As Object)
On Error GoTo error:
Dim objmap As MapPointctl.Map
Set objmap = MappointControl1.ActiveMap
If TypeOf objmap.Selection Is Pushpin Then
If pNewSelection.Name = "BranchOffice1" Then
MsgBox "Display Info for Branch Office 1 Here."
End If
End If
Exit Sub
error:
End Sub

Anonymous
05-06-2004, 08:30 AM
John,
Thanks for the response.....is there any sample in C# , i will be adding the mapping functionality into an asp.net web applicaion....
Will therebe any licensing issues for users of the web app? we already have the mappoint 2004 as we are msdn subscribers...
Thanks again

John Meyer
05-06-2004, 08:47 AM
I do not know of any C# examples sorry. Maybe someone else can jump in and answer the web question because I'm not real sure but I do not think you could have a clickable map in ASP with the desktop version of MapPoint. If you could I guess you would be putting the ActiveX control on the ASP page and users would need MapPoint installed on their workstation. Also I think the MSDN is only good for one user? I've never tried to or looked into doing the above I've always assumed the way to do mapPoint on the web was the .net webservice version of MapPoint. Hope this helps in some way! Hopefully someone else who knows the right answer will jump in.

Anonymous
05-06-2004, 09:10 AM
John,
thanks again.,....it was informative....

i am hoping someone else who might have considered the same options as i am will give me a few pointers on how this can be done....or if webservice is the way to go..
please help....
thanks.

Anonymous
06-18-2004, 10:59 AM
the solution to this is :

Create a standalone application that manage the MapPoint COM Component.

Create your webservice.

Implement a protocol (over TCP or UDP) between your web service and your standalone application :
- Standalone app transmits coordinates to webservice
- webservice sends back the image over TCP/UDP
- webservice gives this image back to other apps...

i think that is the better way ;) but it seems that implementing a webservice around mappoint is forbidden by microsoft, isn't it ?

see ya

Anonymous
06-18-2004, 11:00 AM
rectification :
Implement a protocol (over TCP or UDP) between your web service and your standalone application :
- Webservice app transmits coordinates to standalone app
- Standalone app sends back the image over TCP/UDP
- webservice gives this image back to other apps...

sorry again