Common config. for 3rd party tilemap?


#1

I tested Mapd 3.5. New added custom tile map function is awesome!!!
But it’s not perfect to me.

  1. I don’t need auto-login.
  2. I need map setting for all user, not one specific user.

Can you show me sample servers.json for above way?


#2

Hi,

Do you mean you need a different tilemap setup for each user? Or just for each user to login as individual user?

If its individual users, I think you should find what you need in this previous post

Also see docs at https://www.mapd.com/docs/latest/immerse-user-guide/servers_json/?highlight=servers%20json

Basically you just need to leave the username and password fields empty

Let us know if there is anything missing.

regards


#3

I mean “just for each user to login as individual user”, and I already used systemd.
( installed using aws mapd ami. )

I tried as your reply, to leave the username and password fields empty.
But at that time, I cannot see custom map list on chart editing by any user.

This is my servers.json. ( hostname changed. )

  • I added another user besides mapd super user, and tried both.

$ cat servers.json
[
{
“username”: “”,
“password”: “”,
“database”: “mapd”,
“host”: “my host”,
“port”: “9090”,
“protocol”: “http”,
“mapboxCustomStyles”: [
{
“label”: “Dark-local”,
“value”: “mapbox://styles/hey-jude/cjdzr9lyr0x1u2smqw1mofi7i”
},
{
“label”: “Dark-simpler”,
“value”: “mapbox://styles/hey-jude/cj7fld2d42w5m2rni50l483n7”
},
{
“label”: “xdworld-Base”,
“value”: {
“version”: 8,
“sources”: {
“openstreetmap”: {
“type”: “raster”,
“tiles”: [
http://xdworld.vworld.kr:8080/2d/Base/201710/{z}/{x}/{y}.png
],
“tileSize”: 256
}
},
“layers”: [{
“id”: “openstreetmap”,
“type”: “raster”,
“source”: “openstreetmap”,
“minzoom”: 0,
“maxzoom”: 22
}]
}
},
{
“label”: “xdworld-gray”,
“value”: {
“version”: 8,
“sources”: {
“openstreetmap”: {
“type”: “raster”,
“tiles”: [
http://xdworld.vworld.kr:8080/2d/gray/201710/{z}/{x}/{y}.png
],
“tileSize”: 256
}
},
“layers”: [{
“id”: “openstreetmap”,
“type”: “raster”,
“source”: “openstreetmap”,
“minzoom”: 0,
“maxzoom”: 22
}]
}
},
{
“label”: “xdworld-Hybrid”,
“value”: {
“version”: 8,
“sources”: {
“openstreetmap”: {
“type”: “raster”,
“tiles”: [
http://xdworld.vworld.kr:8080/2d/Hybrid/201710/{z}/{x}/{y}.png
],
“tileSize”: 256
}
},
“layers”: [{
“id”: “openstreetmap”,
“type”: “raster”,
“source”: “openstreetmap”,
“minzoom”: 0,
“maxzoom”: 22
}]
}
},
{
“label”: “xdworld-midnight”,
“value”: {
“version”: 8,
“sources”: {
“openstreetmap”: {
“type”: “raster”,
“tiles”: [
http://xdworld.vworld.kr:8080/2d/midnight/201710/{z}/{x}/{y}.png
],
“tileSize”: 256
}
},
“layers”: [{
“id”: “openstreetmap”,
“type”: “raster”,
“source”: “openstreetmap”,
“minzoom”: 0,
“maxzoom”: 22
}]
}
},
{
“label”: “xdworld-Satellite”,
“value”: {
“version”: 8,
“sources”: {
“openstreetmap”: {
“type”: “raster”,
“tiles”: [
http://xdworld.vworld.kr:8080/2d/Satellite/201710/{z}/{x}/{y}.jpeg
],
“tileSize”: 256
}
},
“layers”: [{
“id”: “openstreetmap”,
“type”: “raster”,
“source”: “openstreetmap”,
“minzoom”: 0,
“maxzoom”: 22
}]
}
}
]
}
]

servers.json.txt (3.3 KB)


#4

Hi

@jude it appears you have found a bug, we are working to resolve this currently.

Sorry for the confusion. Will let you know when a fix is available.

Currently it will not work for multiple users.

regards