Comments (5)
..yes its a tricky business, offset and scaling matrix is at play
from greatmaps.
Fantastic control by the way!
Based on what I can see, it looks like the panning is handled by the TranslateTransform. The scaling is handled by the two lines in FromLatLngToLocal:
ret.X = (int)(Core.renderOffset.X + ((Core.renderOffset.X - ret.X) * -MapRenderTransform.Value));
ret.Y = (int)(Core.renderOffset.Y + ((Core.renderOffset.Y - ret.Y) * -MapRenderTransform.Value));
The thing I have not yet figured out is why the Core.renderOffset gets updated correctly when zooming in whole number, but not when the zooming is fractional. Anyone get anywhere with this?
from greatmaps.
check https://github.com/radioman/greatmaps/blob/master/GMap.NET.Core/GMap.NET.Internals/Core.cs#L670
compensationOffset is equal positionPixel on zoom
from greatmaps.
@TAlecksen, please do share your work if you come across any solution. I've the same issue, and trying to use ScaleTransform but it's tricky and only limited to WPF.
from greatmaps.
@AliFlux I most certainly will if I manage to get anywhere.
from greatmaps.
Related Issues (20)
- help for map render delay in wpf version HOT 1
- Lack of documentation HOT 1
- Сlustering for zooming
- SetPositionByKeywords no longer working
- Exception when using Lithuania providers
- Is it possible to use the Map with a different, selfe defined Map?
- Bing Map API Key not affecting tiles
- Zoom pixel error position marker
- CR: Projection class for EPSG 31256
- Change Marker Image
- Navigation OpenStreetMap HOT 1
- Map Rotation Issue
- Openstreetmap gives me this error HOT 3
- change to framework 4.5
- Zoom
- Unable to trace routes in map | GMap.net | VB.net
- Question regarding the use of nearmaps
- MapProvider.TryGetProvider
- Add Layer
- gmap.net set map name language invalid? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from greatmaps.