Skip to content
Sign inCreate account

Integration instructions

On Edit Sales Map, open Actions and choose Integration Instruction.

Sales Module Integration Instructions gives you code that is ready to paste. It already includes your sales map key and this map’s ID. Copy it from the dialog. The samples below use YOUR_KEY and map 24 so the shape of the code is clear.

mapID is the number at the top of the Edit Sales Map sidebar, labeled Map ID.

Edit Sales Map sidebar with the Map ID at the top.

API Map puts the map in a div you place on the page.

Step 1. Include the MIR script in the <head> of the page.

<script id="MIRSALESAPI" type="text/javascript" async src="https://app.mapitright.com/Sales/mirSalesAPI.js?mirKey=YOUR_KEY&InitCallBack=mirCallBack"></script>

Step 2. Add a <div> with a unique id where the map should appear. One sales map needs one div. A sales group needs two: one for the menu and one for the map.

<div id="mirMapViewDivID"></div>

Step 3. Add this function in the <body>. Set mapID to the Map ID from the Edit Sales Map sidebar. viewDivID is the div from step 2.

function mirCallBack() {
var mapParams = {
mapID: 24,
viewDivID: 'mirMapViewDivID',
};
mirSalesAPI.displayMap(mapParams, (response) => {});
}

IFrame Map is one tag. Paste it where the map should appear. The dialog fills in your key and the Map ID from the Edit Sales Map sidebar. Width and height follow the sales map’s Map Width and Map Height.

<iframe name="mirMapsIframe" src="https://app.mapitright.com/Sales/mirSalesMaps.html?mirKey=YOUR_KEY&MapId=24&Mode=m" width="800" height="600"></iframe>

Last updated: