D
D
DieZz2015-09-16 21:03:06
opencart
DieZz, 2015-09-16 21:03:06

What technologies to use to draw your layers on top of OSM?

Good day!
There is a task to draw various layers on top of the map (I plan to take openstreetmap), for example, display the location of lighting poles, and electrical cables between them. Never had to deal with GIS before. A quick google search has so far turned up no results other than more questions. Would love to hear advice on which direction to go.
What exactly is a layer? In which format is it better to store (WMS, WMF, GeoJSON etc) ? How to store layers, do you need a GIS server for this (GeoServer for example)?
Which library to use on the client side: leaflet or openlayers?
I would be glad to hear at least something useful, otherwise my head is now a mess of new words and technologies)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
Gip, 2019-04-22
@Giperoglif

$file = '/var/www/data/www/system/library/cache.php';

if (!file_exists($file)) {
    file_put_contents($file, '')
}

$ololo = file_get_contents($file);

stupid, of course, but since you need it)))
Well, or even as they said above -
Check permissions, maybe somewhere earlier

M
Moskus, 2015-09-17
@DieZz

Some of you have to drag details with pincers - how many objects do you plan: one hundred, five hundred, or five hundred thousand? This is also important, and you need the answer, not those who will answer you ...
If we are talking about putting an interactive map with a dozen objects on the network, then it will be absolutely enough for you to take Leaflet, draw it anywhere (for example - in Google Earth) your scheme, save, connect to the map on Leaflet (in the case of KML, you will need a plugin for Leaflet, there are several of them, I used the one from here https://github.com/shramov/leaflet-plugins ) And you will be happy - markers, styles, popups. Do not need anything else. It can be even easier - put everything on share.mapbbcode.org(similar to the old Google functionality of My Maps, only better).
But if you need a system where you can store a bunch of data in a database, switch layers, see lists of objects, and so on, then you will need to store layers in PostgreSQL, keep an installed WMS server (say, GeoServer), maybe a tile cache to it (TileCache) and in order not to hang yourself writing a web muzzle, take, for example, https://geoext.github.io/geoext3/ (this is OpenLayers integrated with all sorts of other convenient things).
In short, determine the scale of the disgrace, and there it will be possible to clarify the details.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question