MapType List

Topics: General
Sep 5, 2011 at 1:46 PM

Hi All,

Could someone tell me how to get a list of MapTypes so I can fill a combo box? I use vb but c code would do.

Thanks

Coordinator
Sep 5, 2011 at 1:53 PM

check the domo source:

comboBoxMapType.ValueMember = "Name";
comboBoxMapType.DataSource = GMapProviders.List;
comboBoxMapType.SelectedItem = MainMap.MapProvider; 

Sep 5, 2011 at 2:16 PM

Thanks Radioman

Sep 5, 2011 at 2:29 PM

I don't seem to have gmap.net.mapproviders so i can't use imports gmap.net.mapproviders?

I have :-

Imports GMap.NET

Imports GMap.NET.WindowsForms

Imports GMap.NET.WindowsForms.Markers

Imports GMap.NET.WindowsForms.ToolTips

Coordinator
Sep 5, 2011 at 2:33 PM

you use old version, download latest http://greatmaps.codeplex.com/SourceControl/list/changesets

Sep 5, 2011 at 3:03 PM

Did that and lost maptype so it broke my app so reverted back to old one.

Coordinator
Sep 5, 2011 at 4:47 PM

i do not support old versions, just replace maptypes with providers, piece of cake

Sep 5, 2011 at 5:10 PM

Hi Radioman, it's simple to you, i use vb not c and your wrote the source code. The dll's i am using are from GMap.NET.WindowsForms\bin\Debug and the programe complains it can't find projection or maptype. I have looked for providers but cannot find it. If the dll's are not up to date could someone please compile the new ones and put them somewhere for us vb people? I really appreciate all your hard work but we do have to struggle a bit compiling, i used Sharp Develop with no joy. The reason i have been using the old dll's is that i downloaded the examples at http://greatmaps.codeplex.com/releases/view/20235 and used the dll's in them so shouldn't they be updated to stop any confusion?

Sorry it you think a went on a bit, just trying to help.

Coordinator
Sep 5, 2011 at 5:26 PM

why not use visual studio, hit ctrl+F5, and grab dlls? ;} ..anyway i'll update release, source version seems working correctly, ..had some reconstruction again ;D

Sep 5, 2011 at 5:48 PM

Thanks a lot, your a good man :-)

Sep 5, 2011 at 5:50 PM

I haven't got c installed in visual studio because i had no need for it, will install anyway and give it a go. Thanks

Coordinator
Sep 10, 2011 at 7:51 PM
Edited Sep 11, 2011 at 7:27 PM

i've included build script, so you do not need visual studio anymore for this: ...\GMap.NET\Build\Build Demos.bat

p.s. now latest changeset are build automatically

cheers ;}

Sep 13, 2011 at 10:43 AM

Great job, that will make it easier for us VB people!