Community of VE/MapPoint Users and Developers
This is a discussion on Problem with geoshowbyzoomlevel in C# within the Development forums, part of the MapPoint 2006/2009 Discussion category; I'm trying to use DisplayDataMap with geoshowdataby=geoshowbyzoomlevel but not work; give an error geography type I've try same code with ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| I've try same code with same import file with geoshowdataby=georegion1 or with geoshowdataby=georegion2 or with geoshowdataby=geopostal1 and it's all ok. The file that import has name, latitude, longitude and data. The same file imported with MapPoint Application work with zoom level Somebody has used DisplayDataMap with geoshowdataby=geoshowbyzoomlevel ? Thanks, Rinaldo |
| |||
| Re: Problem with geoshowbyzoomlevel in C#
Dear Eric, The strangeness that is through the MapPoint wizard interface to import the same file csv (that i've attach) is all ok. The my code in C# is: object[,] arrObjCampi = new object[4, 2]; arrObjCampi[0, 0] = "Nome"; arrObjCampi[0, 1] = MapPoint.GeoFieldType.geoFieldName; arrObjCampi[1, 0] = "Latitudine"; arrObjCampi[1, 1] = MapPoint.GeoFieldType.geoFieldLatitude; arrObjCampi[2, 0] = "Longitudine"; arrObjCampi[2, 1] = MapPoint.GeoFieldType.geoFieldLongitude; arrObjCampi[3, 0] = "Fatturato"; arrObjCampi[3, 1] = MapPoint.GeoFieldType.geoFieldData; m_ds1 = pMappa.ActiveMap.DataSets.ImportData(System.IO.Pat h.Combine(Application.StartupPath, "provaRivenditori2.csv"), arrObjCampi, MapPoint.GeoCountry.geoCountryItaly, MapPoint.GeoDelimiter.geoDelimiterSemicolon, 0); object objNomeParametro = "Fatturato"; object missing = System.Type.Missing; MapPoint.Field objParametro = m_ds1.Fields.get_Item(ref objNomeParametro); MapPoint.DataMap dm = m_ds1.DisplayDataMap(MapPoint.GeoDataMapType.geoDa taMapTypeShadedArea, objParametro, MapPoint.GeoShowDataBy.geoShowByZoomLevel, MapPoint.GeoCombineDataBy.geoCombineByAdd, MapPoint.GeoDataRangeType.geoRangeTypeContinuous, MapPoint.GeoDataRangeOrder.geoRangeOrderDefault, 13, 0, missing, missing, missing, missing, missing); Thanks for help, Rinaldo |
![]() |
| ||||
| Posted By | For | Type | Date | |
| Snap to a Road - MapPoint Articles - MP2K Magazine | This thread | Refback | 11-09-2007 10:15 AM | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problem with geoshowbyzoomlevel in C# | rlisario | MapPoint 2006/2009 Discussion | 0 | 11-06-2007 06:23 AM |
| geoShowByZoomLevel - Not zooming? | mikechayes | MapPoint 2006/2009 Discussion | 0 | 02-13-2003 02:45 PM |
Catered Chalet
Book a catered chalet online through Holiday Hypermarket. It's easy to use the ski holidays search to find the right holiday for you.
Personal Travel Advisor
Let a personal Travel Advisor help with your travel plans. Travel Counsellors were voted UK's Best Travel Agent at the Guardian Unlimited travel awards
Portugal Holiday
For such a small country, you have many options from which to choose. A Portugal Holiday can include fantastic beaches and stunning scenery. Check out our great deals.
Maldives Holidays
If you are looking for a serene, laid back break in the sunshine, Maldives holidays are the choice for you. Be enchanted by the Maldives!
Morocco
Gain insight on your holiday destination with the ULookUBook travel guides. Find out about Morocco and its customs online. Make an informed decision when you make a booking.
Cheap holiday comparison
Travel.co.uk is a comparison service which makes it easy to search and find your cheap holiday options.
Cheap Holidays in Portugal
Don't spend your hard earned money on travelling agents! Come to On The Beach, and see information on cheap holidays in Portugal.