Quantcast
Channel: GMap.NET - Great Maps for Windows Forms & Presentation
Viewing all 3384 articles
Browse latest View live

Commented Unassigned: Color error on adding multiple routes to an overlay [16118]

$
0
0
I have found a bug inside the GMaps.NET control. If you add multiple routes to an overlay, the routes are always shown with the last color given.

Example:
Route1: Color.Green
Route2: Color.Blue
Route3: Color.Yellow

Result:
All routes are yellow.

```
foreach (GefahreneTour gefahreneTour in gefahreneTouren)
{
List<PointLatLng> points = ShowLeerungen(gefahreneTour.LeerungenCollection);
//Route
GMapRoute oGMapRoute = new GMapRoute(GetTrackingRoute(gefahreneTour.TrackingCollection), string.Format("My_Route_{0}", routesOverlay.Routes.Count));
oGMapRoute.Stroke.Width = 4;
oGMapRoute.Stroke.StartCap = LineCap.Flat;
oGMapRoute.Stroke.EndCap = LineCap.ArrowAnchor;

// Farbe berechnen, mit der die Route angezeigt wird
int nMod = routesOverlay.Routes.Count % this.dColors.Count;
if (this.dColors.ContainsKey(nMod))
oGMapRoute.Stroke.Color = this.dColors[nMod];
else
oGMapRoute.Stroke.Color = this.dColors[0];

//oGMapRoute.Stroke.Color = Color.Green;

// Route dem Overlay hinzufügen
routesOverlay.Routes.Add(oGMapRoute);

// Position und Zoom berechnen
gmap.ZoomAndCenterRoute(oGMapRoute);

// Label zur Anzeige der Tour
Label oLabel = new Label();
this.gmap.Controls.Add(oLabel);
oLabel.Text = string.Format("Tour: {0}", gefahreneTour.TourBezeichnung);
oLabel.Parent = this.gmap;
oLabel.ForeColor = oGMapRoute.Stroke.Color;
oLabel.BackColor = Color.Transparent;
oLabel.Location = new Point(3, (routesOverlay.Routes.Count * 22) + 5);
oLabel.Font = new Font(oLabel.Font.FontFamily, 16, FontStyle.Bold);
}
```
Comments: Works! THX a lot! Code: __Pen myStroke = new Pen(Color.Gold, 1);__ GMapRoute route5= new GMapRoute(routePoints5, "route5"); __route5.Stroke = myStroke;__ //route5.Stroke.Color = Color.Gold; //route5.Stroke.Width = 1; routes5.Routes.Add(route5); __Pen myStroke1 = new Pen(Color.Red, 2);__ GMapRoute route6= new GMapRoute(routePoints6, "route6"); __route6.Stroke = myStroke1;__ //route6.Stroke.Color = Color.Red; //route6.Stroke.Width = 2; routes6.Routes.Add(route6);

Commented Unassigned: Route.Stroke with Problems [16134]

$
0
0
Hello all

I use followed codes:

GMapRoute route1 = new GMapRoute(points1, "myroute1");
GMapRoute route2 = new GMapRoute(points2, "myroute2");

route1.Stroke.Color = Color.Red;
route2.Stroke.Color = Color.Blue;

when I change the second color to blue, the color of the first is also changed to blue.

Someone help me?
Comments: http://greatmaps.codeplex.com/workitem/16118

New Post: Winforms FromLocalToLatLng is Not Accurate

Created Unassigned: GMAP.Net Google Satellite map error in C#? [16137]

$
0
0
Tried to use GMAP.NET in winform using C#, when I set map properties to GoogleSatelliteMapProvider it gives an error. Exception :The remote Server returned in error:(404) Not found.

I am using latest GMAP.Net version. 1.7.0.0

New Post: How can I cache a customized google map.

$
0
0
hi i'm a newbie in using great maps GMap.NET. Is it possible to cache my customized map in google map? i'm using a fusion table. If possible, can I ask a code snippet for that instance? or if no. is there another way caching a customized map?

New Post: How to update marker image

$
0
0
I have a Marker with a custom image.

Markerarray(i2) = New GMap.NET.WindowsForms.Markers.GMarkerGoogle(New PointLatLng(lat(i2), lon(i2)), custom-img)
overlayOne.Markers.Add(Markerarray(i2))

I can update de position. for example:

Markerarray(i2).Position = New PointLatLng(lat(i2), lon(i2))

but how can update the custom-image????with other image to this marker???

Thanks

New Post: viewarea

$
0
0
I am trying to viewarea to see if markers are visable. But the view area's lng is 180 until I zoom in. Can I do anything to force this to be right before I zoom in or is there a good way to tell if a marker is in the visable area of a map

New Post: no onPolygonEnter or onRouteEnter event

$
0
0
Hi,

Looking at the code, it seems that in order for the OnPolygonEnter / Leave events to work your polygon needs to be visible (IsVisible) and have its IsHitTestVisible=True

I'm not sure if it's considered a bug, but try to change IsHitTestVisible in your relevant GMapPolygon to True.

Nitay

New Post: Mouse over Marker

$
0
0
I'm moving marker constantly

overlayOne.Markers(i2) = New GMap.NET.WindowsForms.Markers.GMarkerGoogle(New PointLatLng(lat(i2), lon(i2)), img)

when the mouse is over one marker and this marker move the mouse icon change to hand icon and never change to original icon. always with hand icon. I don't not why.

thanks

Commented Unassigned: GMAP.Net Google Satellite map error in C#? [16137]

$
0
0
Tried to use GMAP.NET in winform using C#, when I set map properties to GoogleSatelliteMapProvider it gives an error. Exception :The remote Server returned in error:(404) Not found.

I am using latest GMAP.Net version. 1.7.0.0
Comments: Hi, I'm facing the problem too. Could anyone can tell me how to fix this?

Commented Unassigned: Google or Yahoo satellite image providers I'm no longer able to get imagery in some areas [16120]

$
0
0
I'm using GMap.NET build 1.7 and when I select the Google or Yahoo satellite image providers I'm no longer able to get imagery in some areas and at higher zoom levels. I suspect the API key used for these map provider s are no longer valid.
Is there a commercial version or a newer release of GMAP.NET that do not have this problem?
Our budget is from 500 to 1000 USD for this version.


Comments: Hi, I'm facing the problem with the latest build. Could anyone can tell me how to fix this?

Commented Unassigned: GMAP.Net Google Satellite map error in C#? [16137]

$
0
0
Tried to use GMAP.NET in winform using C#, when I set map properties to GoogleSatelliteMapProvider it gives an error. Exception :The remote Server returned in error:(404) Not found.

I am using latest GMAP.Net version. 1.7.0.0
Comments: works for me

New Post: VB.Net Marker and custom Marker

$
0
0
Hi ,

I am trying to make cicles arround given points and found your Code sample.
Can you post your clsEnum class to.

I need it to use this function
Public Sub ChangeImage(ByVal iShape As clsEnum.giShape, ByRef Img As Graphics)
    Dim pn As New Pen(Color.Red)
    pn.Width = 3
    Select Case iShape
        Case clsEnum.giShape.giCircle
            Img.DrawEllipse(pn, New Rectangle(_point.Lat, _point.Lng, mi_Radius * 2, mi_Radius * 2))
        Case clsEnum.giShape.giSquare
            Img.DrawRectangle(pn, New Rectangle(_point.Lat, _point.Lng, mi_Radius * 2, mi_Radius * 2))
    End Select

End Sub
Thank you

Created Unassigned: About using the library [16138]

$
0
0
I was working for my final year project about traffic simulating, I downloaded the library and want to use it, do I need to claim anything or I can just use it directly? Sorry for the first time using CodePlex.

Commented Unassigned: About using the library [16138]

$
0
0
I was working for my final year project about traffic simulating, I downloaded the library and want to use it, do I need to claim anything or I can just use it directly? Sorry for the first time using CodePlex.
Comments: how can you use it indirectly? ;} just go ahead

Closed Unassigned: About using the library [16138]

$
0
0
I was working for my final year project about traffic simulating, I downloaded the library and want to use it, do I need to claim anything or I can just use it directly? Sorry for the first time using CodePlex.

New Post: Create "driving" Markers

$
0
0
Hello,
i'd like to create Markers, which can drive a route from LatLng to Lat2Lng2 for example.

Is this possible with GMap.NET? In the example-project of GMap.NET theres the Point "transport" which shows, how points are moving from point to point.

How does this work? Have anybody a example code for me? Thank you!!

New Post: Using GMap with Zscaler

$
0
0
All of our internet traffic at work goes through the Zscaler online security platform and it is blocking GMap from loading maps, as it works fine for me at home. So, is there any way to make GMap work with Zscaler? Thanks for any help or advice.

New Post: Marker.Count not Updating on Dispose()

$
0
0
I discovered
activeOverlay.Markers.RemoveAt(i);
activeOverlay.Markers[i].Dispose();
Which does keep the marker count correct. But I hope it does not cause memory leaks.

Any comments welcome.

New Post: How to change a marker custom bitmap?

$
0
0
I found a way but it is not very elegant.

Is there a way to avoid the loop?
gMapControl1.OnMarkerClick += Marker_Click;

private void Marker_Click(object sender, EventArgs e)
{
            GMapMarker m = sender as GMapMarker;
            
            string ttip = m.ToolTipText;
            double lat = m.Position.Lat;
            double lng = m.Position.Lng;

            int I = 0;
            for (int i = 0; i < activeOverlay.Markers.Count; ++i)
            {
                if (activeOverlay.Markers[i] == m)
                {
                    I = i;
                    break;
                }
            }
            activeOverlay.Markers.RemoveAt(I);
            m.Dispose();

            Bitmap bmp = Resources.ResourceManager.GetObject("green_tristar", Resources.Culture) as Bitmap;
            activeOverlay.Markers.Add(new GMarkerGoogle(new PointLatLng(lat, lng), bmp));

            int II = activeOverlay.Markers.Count - 1;
            activeOverlay.Markers[II].ToolTipText = ttip;
}
Viewing all 3384 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>