PTP 820 NMS street view configuration for offline access

This document explains how to setup street view for offline access in PTP 820 NMS. This document contains a guide for setting up a locally hosted Map Server on Windows.

The street view in offline will help to view the device location in the PTP 820 NMS without internet access.

Necessary tools and resources required:

XAMPP application

It’s the application that allows user to configure, start and stop all the other resources. It is available for Windows, Linux and OS X. XAMPP can be downloaded from the below link:

Opensource Tile Server PHP

Tile Server distributes maps to desktop, web, and mobile applications from a standard Apache+PHP web hosting. It is a free and open-source project and can be downloaded from the below link

Maperitive

Maperitive is a free desktop application for drawing maps based on OpenStreetMap and GPS data. This application can be used to generate custom MBTiles files, which are required by the Tiles Server. It is available for Windows, Linux and Mac, from the below link we can download:

http://maperitive.net/

Specific map

Tile Server works with pre-rendered map tiles available as MBTiles files which support Leaflet. MBTiles files [format .mbtiles] can be downloaded from the internet from various providers like https://openmaptiles.com/ . For a free solution Maperitive application can be used to generate .mbtiles files.

Configure local hosted Tile Server

After downloading and installing XAMPP the next step is to configure XAMPP Apache Service.

Apache Server Port

The default port for Apache is 80 but you can change it.

Open XAMPP Controller (<XAMPP_install_Path>/xampp-control.exe) and Click on Apache > Config > Apache (httpd.conf) and add the listening port to any available port.
NMS1

Example:

Firewall

If firewall is installed, ensure that you add the “Listen port” to exceptions and allow to listen.

Copy Tiles Server PHP files

Unzip Tiles Server PHP file [downloaded previously] and copy them in XAMPP htcdocs folder [eg: c:\xampp\htcdocs]

Copy .mtbiles file

Copy the desired .mbtiles file [downloaded or created by you] in XAMPP htcdocs folder [eg: c:\xampp\htcdocs]

Start local hosted Tile Server

From XAMPP Controller start all listed applications:

  • Apache
  • MySQL
  • FileZilla
  • Mercury
  • Tomcat

Check the log displayed at the bottom on XAMPP Controller view and correct any port conflicts that may appear.

Check local hosted Tile Server

Open your WEB Browser browse to http://<serverIP>:<port>/tileserver.php. Your maps should be loaded, and you can also preview them.

Choose the map you want to use, click on XYZ located in the right top right corner and copy the link.

Configure PTP 820 NMS to use the local hosted Tile Server

The copied link should look like this:

http://192.168.0.8/tileserver.php?/index.json?/map/{z}/{x}/{y}.png

In order to use it for PTP 820 NMS, remove the part: /{z}/{x}/{y}.png

The remaining part of the link, paste it in PTP 820 NMS Preferences/System Settings/Topology/Open Street Map ‘Server Address’ field.

Remaining link: http://192.168.0.8/tileserver.php?/index.json?/map [make sure NOT to include the last ‘/’]. Below is the sample screenshot:
NMS4