| | dkart 03-16-2005, 03:41 AM Hi all,
I am just a beginner with Mappoint. My problem is that once I've mapped the data on the map, I would like to display only the mapped territory.
I'm not sure I'm very clear, so let's explain with an example :
- I want to highlight departments in France considering the volume of sales in the departments
- Once this is done, I would like to display only France, and not the countries and seas around France
- I would also like to delete regions' names, how could I do that ?
- Is it possible to display other regions names instead (existing in an Excel file for example) ?
Thanks very much for your answers.
Etienne John Meyer 03-16-2005, 08:15 AM No good news for you I'm afraid. However, you could draw a shape around the area you want to see and have a fill color block everything else but it would need to be drawn freehand. locuelas 03-07-2008, 07:10 AM Hi John.
I just want to do somethng like this. I want to display a territory (a set of zip codes) with a fill color.
How can I do this??
Thanks. Mattys Consulting 03-07-2008, 08:51 AM Hi locuelas,
That is where MapPoint's Territory Wizard comes in.
Try this:
Make an xls file in Excel that 3 columns
1) ID - Fill sequentially 1 to n
2) Postal Code - any zips you wish
3) Territory - named assignment for each zip
Save and close.
Open MapPoint, go to the Data Menu>Territories
Either import or link the xls file
MapPoint will immediately recognize what you want
to do, as long as the xls file is set up correctly.
(It MUST have a column named Territory)
Mike Mattys locuelas 03-07-2008, 09:43 AM Hi,
thank you for your response, but I would like to do this programmatically. Is this possible?
Is there any way to do it? (any example, any documentation,...)
Thank you for all. Mattys Consulting 03-07-2008, 10:17 AM Hi locuelas,
Yes, go to MapPoint Help
Look under Programming Information
Look under Methods
Scroll to ImportTerritories
Mike Mattys locuelas 03-07-2008, 11:50 AM Hi,
Thank you, Mike. I would like to run the example which is in the MapPoint Help to know if is what I want. Which libraries are necesary to use?
Thanks Mattys Consulting 03-07-2008, 01:11 PM locuelas,
Please explain?
No matter what development environment are you using,
the reference to the MapPoint library is clearly marked
as is the reference to the MapPoint ActiveX control.
Are you a developer? If not, I am.
Mike Mattys locuelas 03-10-2008, 03:04 AM Hi,
I need to display a map showing a set of zip codes. I think it isn't very difficult, but I have to get it as soon as possible and I don't know very well the MapPoint API.
I would like to know if there's an example to get it programmatically (in C#). Can you help me?
Thanks. Mattys Consulting 03-10-2008, 07:28 AM Sorry, if VB6 doesn't help.
I'm learning C# also, I'm sure it's easy ...
Mike Mattys locuelas 03-10-2008, 07:40 AM Hi,
I want to program it in C#, but if you can help me in VB6 it doesn't matter.
I've read some Mappoint documentation. There are two methods (ImportData and DisplayMap), but I don't know how can I use them.
Any idea? I'm in the right way?
Thanks Mattys Consulting 03-10-2008, 08:28 AM Etienne,
I did a Google search on ImportTerritory.
It seems that there is a definite problem that
others have tried to solve and could not.
I'll have a look at it and let you know.
Mike Mattys Mattys Consulting 03-10-2008, 09:38 AM Hi Etienne,
Here's my example, I hope it helps you:
I have an Access database with one table in it named AK01
It has 2 fields: Zip and TID
Zip contains all zipcodes in my territory (Alaska) and
TID contains "AK01" for each zip.
oDS is a MapPoint.DataSet
DLG2 is a common dialog box
Private Sub mnuImportTerr_Click()
DLG2.DialogTitle = "Mattys Consulting 2008"
DLG2.Filter = "Access File|*.mdb|Access Addin|*.mda"
DLG2.CancelError = False
DLG2.ShowOpen
If Err.Number <> cdlCancel Then
If DLG2.Filename <> "" Then
ImportTerritory DLG2.Filename, "AK01"
End If
End If
End Sub
Public Function ImportTerritory(strFileName As String, strTblName As String)
Dim arZips(1, 1) As Variant
arZips(0, 0) = "Zip": arZips(0, 1) = geoFieldPostal1
arZips(1, 0) = "TID": arZips(1, 1) = geoFieldTerritory
Set oDS = oMap.DataSets.ImportTerritories(strFileName & "!" & strTblName, _
arZips, geoCountryUnitedStates, , geoImportAccessTable)
End Function locuelas 03-10-2008, 12:04 PM Hi,
I've added an image, called "territorio.jpg". That's what I want to display in a web page.
Is possible to call the web service to get something like this programmatically?
Is there any "layer" which display the territory (with a fill color) showing only the postal codes with the pushpins?
Thanks. | |