How to Change Marker Color, Size

Jan 30, 2009 at 9:11 AM
Hi radioman,

           Marker m = new Marker(PointLatLng, MarkerType.Medium, MarkerColor.Blue);
          m.Color= MarkerColor.Red; [ Here only 4 colors are available i.e, Blue, green, Red and Yellow ]

when i am using like this

       m.Color = Color.Aqua but it displaying the error message like "cannot convert System.Drawing.Color to GMapNET.MarkerColor"

 
and how to change the size  of marker.


Thanks & regards
Asif Basha.D
Coordinator
Jan 30, 2009 at 9:24 AM
currently markers are predefined images from google, if you want other colors, you must make custom image and use it: MarkerType.Custom && Marker.CustomMarker = new Image(...)...
Feb 2, 2009 at 6:19 AM
Hi Radioman,

       

 

Marker m = new Marker(point, MarkerType.Custom , MarkerColor.Blue);

 

 

 m.CustomMarker = new Image(@"C:\Documents and Settings\E453528\My Documents\My Pictures\swami vivekananda.bmp");

               I am using the above code for displaying custom marker but it displays an error like " Cannot create an instance of the abstract class or interface 'System.Drawing.Image". can u explain regarding this....


Thanks & Regards
Asif

 

Coordinator
Feb 2, 2009 at 6:44 AM
http://www.java2s.com/Code/CSharp/2D-Graphics/LoadImagefromanimagefilewithExceptionhandler.htm
Feb 2, 2009 at 8:50 AM
Hi radioman,

            Thank you and i got custom marker on the map one more problem is on top of marker how can i display an image instead of text. i.e.,
  
          Marker m = new Marker( point, MarkerType.Medium, MarkerColor.Red);
          m.Text = " hi";  instead of this text can i display an image like m.Image= Image.FromFile(" ... ");


Thanks & Regards
Asif
Coordinator
Feb 2, 2009 at 9:08 AM
m.Text = "";
Feb 2, 2009 at 11:27 AM
Hi radioman,

          Thanks for reply and i have not understood about m.Text=""; My question is whenever i move mouse cursor over the marker, it needs to display an image. Is it possible to display an image?

Thanks & Regards
Asif
Coordinator
Feb 2, 2009 at 12:16 PM
mm.. tooltip with image inside, not yet, i'll keep this in mind, i'm reconstructing all system, so its take some time
Feb 2, 2009 at 12:54 PM
Hi radioman,

          Thank you .....


Regards
Asif
Feb 10, 2009 at 5:19 AM
Hi radioman,

               Is it possible too use GMapNET.dll in ASP.NET?

Thanks & Regards
Asif
Coordinator
Feb 10, 2009 at 10:21 AM
it was created to not use browser ;}
Feb 16, 2009 at 10:52 AM
Hi Radioman,

              My database table consists of Cellno,lat,lng fields. for example (9000443392,17.4617668590876,78.3348798751831),(9000443392,17.4629796342197,78.335223197937) i read frm database talbe and displayed markers. My problem is i need to connect same CellNo markers with a route. My database talbe consists of 1000 records of different cellno's. Can u give me suggestion regarding this issue.

Example:-

if cellno 9000443392  consists of  20records then i need to connect these 20 markers with on route.
if cellno 9966342208 consists of 40 records then i need to connect 40 markers with another route.
.
.
..
Thanks & Regards
Asif Basha.Dodem
Coordinator
Feb 16, 2009 at 12:17 PM
?
Feb 17, 2009 at 3:33 PM
Edited Feb 17, 2009 at 3:33 PM
Hi Radioman,

         
     I am using "GetRouteBetweenPoints", its not working for india(Hyderabad) map but it is working for u.s maps. can u give some suggestions regarding this issue.

Thanks & regards
Asif
Coordinator
Feb 17, 2009 at 6:58 PM
are you sure it really don't work?
Feb 18, 2009 at 4:22 AM
Hi radioman,

               Its sure and its not working on India(Hyderabad) Map. The bellow are several latitudes and longitudes of India(Hyderabad), use GetRouteBetweenPoints with lats&lons of India(Hyderabad) then you know about it.

Panjagutta - 17.4268538975045,78.4523928165436

Ameerpet - 17.4371309368567,78.4436058998108

SR Nagar - 17.4426172467335,78.4409773349762

Moosapet - 17.4699439797779,78.4273195266724

Moosapet X Roads- 17.4756646756515,78.4235966205597

JNTU   - 17.4958340661996,78.3944571018219

Thanks & Regards
Asif

Coordinator
Feb 18, 2009 at 5:33 AM
..i'l try to test it as soon as i can
Feb 18, 2009 at 6:03 AM
Hi Radioman,
 
        Thank you.......
Feb 19, 2009 at 5:02 AM
Hi radioman,

             Can i use the GMapNET.dll for deploying the applications in Gps Enabled handheld device(dolphin 7900, WinCE OS).

Thanks & Regards
Asif
Coordinator
Feb 19, 2009 at 7:23 AM
mobile version don't work yet ;{
Feb 20, 2009 at 11:06 AM
Hi radioman,

                I need to display adds in several places on gmap but while loading the map from server these adds are also come along with map. how it is possible? Is this service is free or i need to take license from google?

Thanks & regards
Asif
Coordinator
Feb 20, 2009 at 5:22 PM
gmap control is free, i don't care about any license ;}
Feb 26, 2009 at 6:52 AM
Hi Radioman,

         
     I am using "GetRouteBetweenPoints", its not working for india(Hyderabad) map but it is working for u.s maps. can u give some suggestions regarding this issue.

Thanks & regards
Asif
Coordinator
Feb 26, 2009 at 2:00 PM
ask google ;}
Mar 20, 2009 at 7:04 AM
Hi radioman,

          Using the following code i am setting the route color for a specified route, my question is how can i decrease the thickness of route color??
                    

Route

r = new Route(route, "first");

 

r.Color =

Color.Pink;                                              // here i am setting the route color,

 

gMapControl1.AddRoute(r);

Thanks & Regards
Asif Basha.Dodem

Coordinator
Mar 20, 2009 at 11:02 AM
custom routes are in progress..