V
V
Vas3K2011-07-31 17:36:18
OpenStreetMap
Vas3K, 2011-07-31 17:36:18

Own server with maps instead of Yandex?

Who does not need a background, can immediately go to the penultimate paragraph.
A rather long and unpleasant story, in short: one of the components of the site we were developing was supposed to be a map of the city. At first, everything was done beautifully and conveniently through Yandex.Maps, since the required city was best drawn on them. At the end of the development, it turned out that the customer was not satisfied with this and he wanted his own map and forced the designers to draw it. We understood the idea that people want a more detailed map. The map was drawn, cut through the well-known Yandex tylerand inserted there. It turned out well and fully satisfied the desires to make a detailed map. However, the customer said that this did not suit him either and threatened to sue, because he did not want to see "some kind of Yandex" on his site. This is where the question arose.
You need to provide the customer with a map on your server in a fairly short time. I have already resigned myself to having to rewrite kilobytes of JS code for a new engine, but I am asking for help in choosing this engine, because I have never dealt with similar ones. The Yandex and Google APIs have always suited me.
Googled a lot, I realized that OpenLayers on the client and MapServer on the server now rule in this area. And both of them are real monsters in their field. I found 5 different mana, in each of which cards were created in different ways. To read half of them, you generally need to look at Wikipedia every sentence, because they are clearly aimed at GIS professionals, which I am not.
Now we have a huge raster (!) high-resolution map file, we would like something that would allow us to make a map on the client in the minimum time. Everything was very simple with Yandex: I cut it into tiles with a special program, indicated the URL from where to get them and you're done. I would like something like this, there is simply no time to redraw the map in other formats. After all, still rewrite the floor of the site. In this regard, I ask for help from Habr.
We need technology, both server-side and client-side, that can quickly turn a large PNG with a map into something suitable for insertion into a website. Well, if it doesn't make it difficult, at least a link to a couple of articles written in a language understandable to the programmer, or a specific place in the documentation, and not just the names. And if the case goes to court and we are all imprisoned, I promise to cut out with a nail under the bunks the nicknames of everyone who helped me.

Answer the question

In order to leave comments, you need to log in

8 answer(s)
B
bachin, 2011-08-01
@Vas3K

Is the client aware of legal issues?
Roughly speaking, if he is not Yandex, then he does not have the right to put on his site even a hand-drawn map of directions from the metro to the office, not like a map with tiles.

A
Alexander, 2011-07-31
@Awake

My IMHO is that if there are no indications in the TOR what cards should be, then the customer goes through the forest, because this claim is nonsense

S
spmbt, 2011-08-01
@spmbt

Search for "License to Cartographic Activity". Must be if own maps are published.

I
Ivan, 2011-07-31
@IvanTheCrazy

1. You can use the same OpenLayers (I'm currently participating in a project using it), cut your file into a bunch of small files and connect them as a TMS layer to OpenLayers.
To do this, it will help you:
wiki.osgeo.org/wiki/Tile_Map_Service_Specification - it seems to be not even difficult to describe what and how
www.tilecache.org/ - here is a ready-made server, although I think you can do without it
2. You can take OSM + OpenLayers. OSM maps are often quite detailed. For my city (Samara) OSM is much more detailed than, for example, Google maps.
Plus for OSM there is software for drawing maps.
I can’t say anything in more detail here, we only have our own server in the plans for now :-)

J
Jazzist, 2011-08-01
@Jazzist

Excuse me, but $$??

Y
yourmary, 2011-08-01
@yourmary

Maybe it will come in handy: I ​​found this plugin in my bookmarks: playground.mobily.pl/jquery/mobily-map/demo.html With drag and drop, markers, no zoom

A
Alexander, 2013-08-24
@lenux

I suppose to get away from GIS topics, maybe you'd better just cut the PNG into parts, and when the user wants to see in more detail part of the map, he will download a square of this file, and not the whole one? (To speed up loading, you can cut them in advance)

V
Vladimir Sergeevich, 2016-01-27
@VladimirZhid

For the server, look towards PostGis, it helps a lot and the functionality is huge. There is also the functionality of cutting into tiles, working with geometry, etc. Quite good documentation
profyclub.ru/docs/41
198.199.124.81
And on the client there are: leafet, openlayer, mapBox
I haven’t worked with them yet, I can’t specifically advise, but as far as I paid attention, Leafet is the most popular option, which means it will not be problematic find documentation and crutches (if needed) I'll be
happy to look at the result.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question