Our platform allows you to add your own map layers. This will come in handy if you need to track vehicles in a restricted access area that gets blurred on publicly available maps or if you need to add routes that don't exist on other maps (e.g. marine routes).
There are 2 parameters this application can have:
- Name of the App - %name
- External link to it - %link_to_the_tiles
Note: if you are using HTTPS connection, the link to the app must be HTTPS as well. Otherwise you will encounter a mixed content error.
Once you have that data ready you just need to add a line to your MySQL DB
Layers can be added for the whole dealer account or only for certain users
INSERT INTO google.plugins2dealers (dealer_id, plugin_id, parameters) VALUES (1, 50, '{"layers":[{"name":"%name","tiles":["%link_to_the_tiles"]}]}');
Parameters you should change are highlighted in bold
INSERT INTO google.plugins2users (user_id, plugin_id, parameters) VALUES (%user_id, 50, '{"layers":[{"name":"%name","tiles":["%link_to_the_tiles"]}]}');
In this case, a new parameter is added - %user_id
Please substitute it with the ID of the user that should have this map layer
If you need to add the layer to several users, each user will require their own request.