radioman / greatmaps Goto Github PK
View Code? Open in Web Editor NEWGMap.NET - Great Maps for Windows Forms & Presentation
GMap.NET - Great Maps for Windows Forms & Presentation
When you set start and end point and click on Add Route, it doesn´t work, it mounts a url which return code 404 from google.
at this time,only a provider can use to show the map ,but i want add two or more maps onetime,so how can i do this?
If the mouse is currently over a marker and then IsHitTestVisible is set to false on that marker, the OnMarkerLeave event is never fired and marker.IsMouseOver stays true. Additionally, this permanently locks the cursor to be a hand. Expected behavior is that when IsHitTestVisible is switched to false, the OnMarkerLeave event will be fired if IsMouseOver was previously set to true.
GMap.NET.Core couldn't build with .NET4
The type or namespace name 'SQLite' does not exist in the namespace 'System.Data' (are you missing an assembly reference?)
But, .NET2 could build successed.
This is really wonderful library, I would like to use it iny my next project.
I've read some legal flames with yandex/google on codeplex forum :-) Nice reading :)
However, is there some safest
option from the list? Openstreetmaps does not work (server returned forbidden). And I would like avoid legal battle with google or other companies.
My usage would be small, probably up to 100 tiles downloaded per day (by different users though, but displaying map is not core feature of the application so it will be rarely used).
how to remove it?thanks
If the ZoomAndCenterMarkers method change the map zoom, the OnMapZoomChanged event is not fired.
Function "RegenerateShape" in "GMapPolygon.cs" and "GMapRoute.cs" need "Position = Points[0];" in section "if(Points.Count > 1) {...}".
In WPF GMapRoute constructor exists call to virtual RegenerateShape, it looks very odd.
Now if i create an new instance of class, derived from GMapRoute, RegenerateShape with null parameter will be called before new class constructor.
Is there a code to tell the map to click on the top most polygon on the map control using coordinates.
Or a way when we place a marker to tell it to click on that marker?
Thanks.
Is it possible to implement the possibility to get an overlay in one request?
I have a provider, that breaks the labels if I pull every map matrix element for himself.
I can get the background in multiple requests splitted in the tile matrix.
I want to get other layers in another like GoogleHybridMapProvider.
But I need to get the overlay (for streetlabels, POIs and so on) in one request. Not splitted in a Martrix.
Regards,
Christian.
It appears the fractional zoom capability is not working as stated in the code itself. I have attempted to resolve this for a few days now with no luck. Although it works fine when zooming from a 'centered' location, once the map is panned a little and then I attempt to zoom in (with fractional zoom on) the map appears to be off center until the zoom level reaches a whole number again, at which point it gets centered to the correct location.
Does anyone have any insight on how to resolve this? I suspect the fix is in the DrawGraphics method, but I still have a long way to go to understand how the Core.renderOffset is utilized in order to resolve the problem itself.
Hi.
I want to update the marker's image after I add it. I tried to change location of the marker and it is OK but image is marker's public property. How can I solve this problem. I need to change the icon image continously. For example I need to rotate an airplane icon.
Thanks...
Field Design from Microsoft: https://msdn.microsoft.com/en-us/library/ms229057(v=vs.110).aspx
GMapControl have a lot of public fields, it also make source code less readable
i give the mapControl a provider, mapControl.provider = XXXX.instance
but when i debug,the code can't enter the provider's PureImage function,and the tile can't be load,what's wrong?
I faced an issue, when modified files: you have different from default visual studio 2015(tab size 4, indent size 4) edit setting.
I think, we can add Editorconfig(like here https://github.com/nunit/nunit/blob/master/.editorconfig), so everyone will use same edit settings.
Is possible to set the map continuous?
Hi.
I'm using the WPF control with BingSatelliteMapProvider
. When I initialize the control with zoom level <= 19, the map works perfectly. But when I do it with zoom >= 20, the tiles won't load. Unless you zoom out one level and then zoom in again. This is probably due to the max zoom level of Bing Maps API. At a certain level, it stops giving the response.
Can I derive a new class from BingSatelliteMapProvider
and add a hackish routine that checks if the zoom level is 20+, it gives the scaled up version of level 19. If so, can you give any pointers?
Thanks.
CC: @radioman
just to let you know:
I will do a GTK# implementation under MONO. If you want to follow my process here is my fork: https://github.com/peterus/greatmaps
I've run into the same issue as http://stackoverflow.com/questions/30922211/overlays-in-gmap-net-wpf where it would be really nice to have an overlays collection like in the winforms control. This would be useful for complex overlays with disjoint geometry where you aren't simple dealing with a marker.
This is a great open source library and application. Thank you for that. But a few enhancement would make the demo application even better and comparable to its counterparts e.g. Marble.
I will try to add these features in future as soon as I got the time. Any feedback is appreciated.
Thanks
I noticed a bug with the drag action of the Map, after opening a new Window and closing, it starts dragging automatically just by moving the Mouse over the map.
I could debug GMapControl.cs and there's an "if" on OnMouseMove method that checks if "cursor has moved beyond drag tolerance", this check calls "Core.BeginDrag" even if the user is not dragging the Map.
Note: I am working on a Pull Request.
Thanks
Hi everyone,
I would ask if anybody has similar issue as i am having
I use a GmapControl in a main tab, it working fine if I don't change tab page. Whenever I switch tab page and switch back to map tap, all markers disappear, but the new marker add after switch back they still display fine?
Sorry if this duplicate with other issue?
I would like to add an GMap.NET control to my WPF MVVM application. However I am new in MVVM and I do not know how to manage (add markers, changing map provider) my control without reference to its name from View.
For now on I'm doing it like that:
gmap.MapProvider = GMap.NET.MapProviders.GoogleMapProvider.Instance; GMap.NET.GMaps.Instance.Mode = GMap.NET.AccessMode.ServerOnly; gmap.DragButton = MouseButton.Left; gmap.SetPositionByKeywords("Paris, France"); gmap.ShowCenter = false;
but how to adjust it to MVVM? I will be grateful for solutions, links, references, etc...
[EDIT] For now on I've came up with an idea to create all GMap.NET control in ViewModel and bind whole control like: <UserControl Content="{Binding GMapC}"/>
I had a correct program with Gmap.Net. But if I add a log4net's logFileAppender in config file, there is a System.TypeInitializationException in new GMap.NET.WindowsForms.GMapControl().
now i just click the map and add points to draw line or polygon,but i want to draw line when mouse move,just like the greatmaps self has a function,hold ALT button and use mouse's right button and move to draw a rectangle,how to do like that?
Hi,
How to catch OnRouteEnter event for Windows mobile?
Is there any plans to implement pinch zoom? This is something I need and have implemented this locally in our team fork and was hoping I could merge that change back here since it could be useful for other projects out there. If this is something that could be used in the main repo I can create a pull request.
I would love to see graphhopper support an open source route planner based on OpenStreetMap data. Feel free to ping me to get a free api key of our API to integrate it.
Hi,
I'm creating a program for testing and comparing Satellite receivers and have been using Gmap.Net quite sucessfully.
Now I'd like to add a feature whereby I add a round/square marker (the colour will vary by the number of satellites being tracked) to display the route driven.
i.e
3 or less satellites the markers would be red
4 to 10 satellites the markers would be orange
11 to 15 satellites they would be yellow
16+ satellites they would be green
An example of what I mean can be seen in the picture below.
With the current markers in Gmap it looks like this:
Which is kinda naff looking.
Is there a way to add plain round markers that can have their colours changed?
Thanks
Adam
The latest version on Nuget is version 1.7.1 which is from 2015, is there plans to update to the latest version? We are using the nuget package and need to update to the latest version and can no longer use nuget because it is out of date
I have done a lot of research and a majority of what I have found is a few years old. Is there any update in regards to using any of the providers in a commercial application (for profit)? This is by far the best framework that I have worked with. I hope it continues to grow. My only concern is that if I was to publish an application to the market, what issues I would be dealing with. I am fully aware of the articles and posts online about this a few years ago, however I am not fully understanding of the innerworkings of the framework.
Just looking for some insight...
Keep up the great work.
function on the line 495 and the comment
function on the line 473 and the comment
thanks , focus
It looks like the latest package on nuget is 1.7.1 from 1/17/2015. However the latest release in this repo is GreatMaps-v2015.23 from 12/29/2015.
Hello. I recently received this error when trying to use OpenStreetMap provider and was able to fix it by setting UserAgent = NULL in the source code.
I hope this post will be useful, before the author will fix the problem.
i want to hide a map or a overlay,how to do this?i can't find the visible property or something like that.TKS
when i double click the mapcontrol the event trigger order is
mouse down --> mouse click --> mouse up --> mouse down --> mouse double click --> mouse up
i just want trigger the "double click" event but i still need other event ,how to do that?
What the point of use Core.position (field public PointLatLng position) insteed Core.Position (public property) in https://github.com/radioman/greatmaps/blob/master/GMap.NET.WindowsForms/GMap.NET.WindowsForms/GMapControl.cs?
Can we use public property and make field is private?
Is there a way to use a single large image as a map source? I am looking for a map provider that uses a single image, lat/lon, zoom, and bearing.
Is there a way to convert a single image into a set of map tiles that can be picked by maps? I came across MapTiler, but it is paid and close-sourced.
Adding a README lets people know what your project is about without reading all your code.
Few days ago .GoogleMapProvider.Instance.GetRoute stopped working.
Any ideas?
The only working provider for routing (for me) is OpenStreetMapProvider.Instance.GetRoute
Also bing and yahoo don't seem to work any more.
I have been using this great program for a few months and now i have a very large database in my app. Can anyone help me how to extract / split a small location database cache from a very large gmdb database...
i want add line or poly to the map with mouse,how to do this
Is there any support for something like GroundOverlay
in GMap.net?
I need to put some simple bitmaps on my map, without using any custom map provider. Is there any built-in support for this? If not, then is there any hack?
I want use binding with control, first with Markers. So with property i can`t do it at all. What do you think if i change it to ReadOnly DependencyProperty?
I'm using Gmap.NET WPF and I'm trying to understand how to draw my custom marker in order to match the map point with the bottom mid shape point.
Clicking on my map, I create a new marker on the mouse position but the marker is drawn starting from the top left corner of my custom shape:
I would like to draw the marker using the RenderTransforOrigin as pivot, in order to put the marker shape in the correct position like that:
Marker XAML:
<Rectangle x:Name="rectangle" Width="18" Height="26" Cursor="Hand" RenderTransformOrigin="0.5,1">
<Rectangle.Fill>
<ImageBrush x:Name="MarkerImage" Stretch="None"/>
</Rectangle.Fill>
</Rectangle>
What can I do for doing that?
I use GMap.net in a wpf app,and I find that the UI will be stucked when map is loading.Is there any way to solve this??
I want set the popup of marker always open in wpf application.
But when the size of window changed or zoom map, the location of popup did't follow the marker.
Can you help me?
Tank you.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.