Code Monkey home page Code Monkey logo

Comments (4)

peaceshi avatar peaceshi commented on May 29, 2024

Feature request

希望能以TMS或者WMTS形式的瓦片,想试图在JOSM里添加为瓦片源,尝试用OSM的数据形式重绘提瓦特地图

Description

图片 图片

https://github.com/kongying-tavern/map-tile-generator/blob/master/RFC_UseOrthographicCoords.md

var mapCenter = [3568, 6286],
mapSize = [12288, 15360]
// var mapPixelScale = [mapPixelSize[0] / mapSize[0], mapPixelSize[1] / mapSize[1]];
var mapCRS = L.Util.extend({}, L.CRS.Simple, {
transformation: new L.Transformation(1, 0, 1, 0),
projection: {
project: function (latlng) {
return new L.Point(latlng.lat + mapCenter[0], latlng.lng + mapCenter[1])
},
unproject: function (point) {
return new L.LatLng(point.x - mapCenter[0], point.y - mapCenter[1])
},
},
bounds: L.bounds(L.point(0, 0), L.point(mapSize[0], mapSize[1])),
})
var map = L.map('map', {
crs: mapCRS,
center: [-528, 1742],
zoomDelta: 0,
zoomSnap: 0.5,
maxZoom: 2,
minZoom: -4,
zoom: -4,
tap: false,
maxBounds: L.latLngBounds(
L.latLng(-mapCenter[0], -mapCenter[1]),
L.latLng(mapSize[0] - mapCenter[0], mapSize[1] - mapCenter[1])
),
attributionControl: false,
zoomControl: false,
})

Because of the non-geographic tiles, you can do that by yourself if you want to be like TMS or WMTS.

from yuan-shen-map.

LaoshuBaby avatar LaoshuBaby commented on May 29, 2024

https://github.com/kongying-tavern/map-tile-generator/blob/master/RFC_UseOrthographicCoords.md

I noticed that those tiles are rendered by this website

http://ysmap.projectxero.top/?url=yuanshen.site/default.json&size=4096

This rendering process is very interesting. I would like to know what data source it is based on.
If I want to set up a similar rendering server like that locally, how should I prepare?
Or is it actually just processing of image tiles from the observation-pivot using super-resolution methods such as waifu2x?
Because it provides tiles that support retina, so I raised this guess.

from yuan-shen-map.

XeroAlpha avatar XeroAlpha commented on May 29, 2024

https://github.com/kongying-tavern/map-tile-generator/blob/master/RFC_UseOrthographicCoords.md

I noticed that those tiles are rendered by this website

http://ysmap.projectxero.top/?url=yuanshen.site/default.json&size=4096

This rendering process is very interesting. I would like to know what data source it is based on. If I want to set up a similar rendering server like that locally, how should I prepare? Or is it actually just processing of image tiles from the observation-pivot using super-resolution methods such as waifu2x? Because it provides tiles that support retina, so I raised this guess.

感谢关注我整的这个地图瓦片生成器。不过我想先提一嘴,这个ysmap.projectxero.top并不是用来生成瓦片而是用来渲染带有修饰图层的大地图(或者大地图的一部分)的,其图片数据来源也并非是来自这个地图瓦片生成器,而是来自于早期版本地图的瓦片。
地图瓦片生成器本身需要提供大地图的完整图片或者几张可以被拼成大地图的图片(以下称“原始图片”),这些图片我从其他途径得到,没有commit到repo里。地图瓦片生成器生成的瓦片清晰度并不能比原始图片更高,提高分辨率所使用的方法也并不是waifu2x等方法,只是简单的双线性插值。支持retina只是因为leaflet支持retina,所以顺带整了下。

Thanks for noticing my Map Tile Generator. By the way, ysmap.projectxero.top is not for tiles generation, it is invented to render huge map with decorating layers. The images are from former version of the map, rather than this tile generator.
Full image of the huge map, or serveral images which can be merged into a huge map, are needed for the tile generator. These images are so-called "original images". The tile generator can not generate images to higher resolution. We did a bilinear interpolation to make higher resolution, and it is not like what waifu2x do. Moreover, we made some adjustments since Leaflet supports tuning for Retina.

from yuan-shen-map.

github-actions avatar github-actions commented on May 29, 2024

This issue is marked as stale because it has not had recent activity. Issues marked with stale will be closed if they have no activity within 3 days.

from yuan-shen-map.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.