Files
The download package contains mapplic-routes-install.zip, the installable WordPress plugin file.
The example (mall demo) map files can be found in the maps directory.
This version of Routes requires Mapplic 5.0.1 or later.
Update
Updates and support are included for one year after the purchase. Renewal costs 80% of the license price.
Getting Started
Installation
The easiest way to install the extension is by navigating to Plugins > Add New > Upload Plugin on your WordPress dashobard and upload the mapplic-routes-install.zip file.
You can also install the extension by extracting the same .zip file to your site's wp-content/plugins directory using FTP.
It's important to assign mapplic-routes ass class attribute to the mapplic shortcode where the extension will be used.
[mapplic id="mapplic" class="mapplic-routes"]
A preinstalled [Example] Mall Routes map will appear on your map list after activating the extension.
Pathway Setup
Once the extension has been successfully installed, you have to set up the pathways on your existing Mapplic SVG map by simply adding a new layer and drawing all the viable routes so the add-on can automatically calculate the shortest path from any A to any B along the "walkable lines".
Please note that only .svg vector maps are supported.

This process couldn't be more natural and straightforward, only the map (.svg) file(s) have to be edited, no further modifications are required.
We are using Adobe Illustrator CC in this tutorial, however older versions of Illustrator can also be used. Inkscape is a free alternative for creating vector graphics, but due to its popularity, the steps are presented in Adobe Illustrator.
The easiest way to get started is by examining the example map. If you get stuck somewhere please compare your map carefully with the included .svg files to find the issue.
1Elements
Start by creating a new layer/group and give it a name that starts with "routes" (case sensitive) and does not contain spaces.
Correct: routes-test, routes-shopping, routes-level1
Incorrect: Route, test_routes, rutesshopping
Supported: line, polyline, polygon
Now it's time to draw the pathways and add them to the group created above. The supported element types are line, polyline and polygon, so you can only use straight lines and not curved paths.
Curves will not be recognized by the extension and an error message will appear. Use short straight lines to mimic curves as seen below:

Feel free to add any number of valid elements using the Pen and Line editor tools.

Combining elements
Two elements are automatically "combined" through overlapping anchor points. This can be easily achieved thanks to vector editors' snap/align feature. As seen below, dragging an anchor point towards another will trigger this behavior and the points will overlap.

Elements are only combined through PERFECTLY overlapping points.
2Location waypoints
Now that we can add svg elements and create connected (combined) pathways, it's time to connect the locations/landmarks too.
There are two ways to achieve this.
A. Location combined with path elmement (New in 2.0)
Location elements can be combined with routes through overlapping anchor points, just like in case of pathways. This method only works with simple, point based location elements (polygons, paths with points attribute). Complex shapes with curves (d attribute) are not supported.
Using this method, the same location can be connected through different paths. This is extremely useful when a place has more than one entrances/exits.
B. Named path element with p- prefix
In this method, one separate route element (line or polyline) is required for the location and the name of the element MUST be the location's name, prefixed with p- (red lines on the example below).
Use this method with markers (when there's no location element), or when the route line shouldn't touch the location element.

For example, if the landmark ID is loc1, the route element's name should be p-loc1

3Linking floors
One of the coolest and definitely the most unique feature of Mapplic is the multi-level functionality, which is also supported by Routes.
Feel free to skip this section if your map has only one floor/level.
Just like location waypoints, level connections (stairs, elevators, escalators) require one route element (line or polyline) per floor (red lines on the example below). The prefix is now pf- and suffix is also required in order to avoid duplicate IDs.

Possible route element names for the above example would be pf-mystairs-ground and pf-mystairs-level1.
the prefix MUST be pf-
the middle part can be anything but it MUST be same on both/all floors
the suffix can be anything, just make sure the name is unique
Options
Below you can find the full list of options available for Routes. These can be found on the map backend, by the end of Settings panel.
Opened by default (true) - make the Routes panel opened by default.
Fixed starting location ID (false) - if set to an existing location ID, the from filed will disappear and all routes will be calucalted with that starting location. This is extremely useful in case of fixed screens/kiosks.
Smoothing (5) - size of corner rounding, defined in pixels. Set false or 0 to disable smoothing.
Line Width (2) - width of the animated route (line).
Animation speed (1) - speed of the route animation (pixel/10*ms). It takes 1 second to draw a 100px long route using the default value.
Line Color (#f23543) - hex color code of the animated route (line).
Others
Thank you for reading the docs carefully. In case you found anything wrong or incomplete please let us know. We are working hard to provide a premium quality custom map solution.
Changelog
Version 2.0 - February 20th, 2019
- SMOOTHING added - fixed-from feature - updated UI/UX - connect locations with paths directly - more than one path per location - options: opened, from, smoothing, linecolor, linewidth, speed - backend settings
Version 1.0 - March 1st, 2018
- first release!