Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to use the Map with a different, selfe defined Map? #173

Open
StraussM opened this issue Jul 23, 2020 · 0 comments
Open

Is it possible to use the Map with a different, selfe defined Map? #173

StraussM opened this issue Jul 23, 2020 · 0 comments

Comments

@StraussM
Copy link

I have my own Map Definition, normaly we use Telerik Controls (including a Map Control) but our Map has different requirements. The zoomlevels follow another logic like the ones in Google.Map. We have a local coordinate System,...
The SharpMap also can not deal with this requirements.

So I found your control which looks like I can do it with this.
What I do is prerender a Offline Map with Tiles renderd by an Oracle MapViewer. These tiles are transfered to the tablet.
I like to display these Tiles in the diferent zoom levels and overlay it with marker, linestrings and areas stored also for offline usage in a sqlite database on the tablet.

What I like to avoid is make my own "AnotherGreatSharpMap" and use an existing, solide base therefore.

In short can I do this wit the greatmaps (WPF Control) and when, is there an documentation to hint me in the direction how to implement my own MapProvider with the greatmaps, but not as part of the GMap.NET.Core because my SRID 262148 is not common.

MapDefinition:
{"mapTileLayer":"TL_OSM_FMG","mapSource":"TL_OSM_FMG","dataSource":"OSM","format":"PNG","xyzStorageScheme":"false","utfgrid":"false","transparent":true,"coordSys":{"srid":262148,"type":"LOCAL","distConvFactor":1.0,"minX":-7500.0,"minY":-6500.0,"maxX":34000.0,"maxY":18500.0},"zoomLevels":[{"zoomLevel":0,"name":"level0","scale":"87528.1214848144","tileWidth":5928.571428571428,"tileHeight":5928.571428571428,"tileImageWidth":256,"tileImageHeight":256},{"zoomLevel":1,"name":"level1","scale":"47130.52695336161","tileWidth":3192.3076923076924,"tileHeight":3192.3076923076924,"tileImageWidth":256,"tileImageHeight":256},{"zoomLevel":2,"name":"level2","scale":"24507.874015748035","tileWidth":1660.0,"tileHeight":1660.0,"tileImageWidth":256,"tileImageHeight":256},{"zoomLevel":3,"name":"level3","scale":"9882.20726441453","tileWidth":669.3548387096774,"tileHeight":669.3548387096774,"tileImageWidth":256,"tileImageHeight":256},{"zoomLevel":4,"name":"level4","scale":"7957.101953164946","tileWidth":538.961038961039,"tileHeight":538.961038961039,"tileImageWidth":256,"tileImageHeight":256},{"zoomLevel":5,"name":"level5","scale":"6449.4405304600095","tileWidth":436.8421052631579,"tileHeight":436.8421052631579,"tileImageWidth":256,"tileImageHeight":256},{"zoomLevel":6,"name":"level6","scale":"4981.275206452852","tileWidth":337.3983739837398,"tileHeight":337.3983739837398,"tileImageWidth":256,"tileImageHeight":256},{"zoomLevel":7,"name":"level7","scale":"3978.550976582473","tileWidth":269.4805194805195,"tileHeight":269.4805194805195,"tileImageWidth":256,"tileImageHeight":256},{"zoomLevel":8,"name":"level8","scale":"2988.7651238717112","tileWidth":202.4390243902439,"tileHeight":202.4390243902439,"tileImageWidth":256,"tileImageHeight":256},{"zoomLevel":9,"name":"level9","scale":"1995.7552130087977","tileWidth":135.17915309446255,"tileHeight":135.17915309446255,"tileImageWidth":256,"tileImageHeight":256},{"zoomLevel":10,"name":"level10","scale":"1498.0363090310534","tileWidth":101.46699266503667,"tileHeight":101.46699266503667,"tileImageWidth":256,"tileImageHeight":256},{"zoomLevel":11,"name":"level11","scale":"999.5054655688432","tileWidth":67.69983686786297,"tileHeight":67.69983686786297,"tileImageWidth":256,"tileImageHeight":256},{"zoomLevel":12,"name":"level12","scale":"749.9349454023267","tileWidth":50.79559363525092,"tileHeight":50.79559363525092,"tileImageWidth":256,"tileImageHeight":256},{"zoomLevel":13,"name":"level13","scale":"499.7527327844216","tileWidth":33.849918433931485,"tileHeight":33.849918433931485,"tileImageWidth":256,"tileImageHeight":256},{"zoomLevel":14,"name":"level14","scale":"249.97831513410884","tileWidth":16.931864545083638,"tileHeight":16.931864545083638,"tileImageWidth":256,"tileImageHeight":256},{"zoomLevel":15,"name":"level15","scale":"199.9663349848893","tileWidth":13.544386422976501,"tileHeight":13.544386422976501,"tileImageWidth":256,"tileImageHeight":256},{"zoomLevel":16,"name":"level16","scale":"149.98698908046532","tileWidth":10.159118727050183,"tileHeight":10.159118727050183,"tileImageWidth":256,"tileImageHeight":256},{"zoomLevel":17,"name":"level17","scale":"99.99948594641764","tileWidth":6.773298514770687,"tileHeight":6.773298514770687,"tileImageWidth":256,"tileImageHeight":256},{"zoomLevel":18,"name":"level18","scale":"49.99974297320882","tileWidth":3.3866492573853435,"tileHeight":3.3866492573853435,"tileImageWidth":256,"tileImageHeight":256},{"zoomLevel":19,"name":"level19","scale":"19.999897189283526","tileWidth":1.3546597029541374,"tileHeight":1.3546597029541374,"tileImageWidth":256,"tileImageHeight":256}]}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant