Using a custom share URL is a great way to have users stay within the page the map is embedded on. This is optional, but allows consistency with URLs and branding. To set up a custom share URL, there are two steps.
*Note: You must have already included the iframe code within your website for this passthrough javascript to work. Find instructions on embedding your map within an iframe here.
HOW TO ADD THE URL TO THE CONTENT MANAGEMENT SYSTEM (Step 1)
1. Log in to the CMS.
2. Choose the Extensions tab.
3. Enter the Sharing URL and save your changes. The sharing URL will be the same URL for the page the map is embedded on. Example - https://school.edu/map
HOW TO PASS THE HASH WITH CUSTOM JAVASCRIPT (Step 2)
In order for the sharing URL to correctly point to the location, a snippet of custom javascript must be added after the iframe.
1. Just before the closing </body>
tag on your site copy and paste our script tag.
<script type="text/javascript" src="https://cdn.concept3d.com"></script>
map_frame"
. Example id="map_frame"
3. Ensure that your iframes' src attribute has the proper url and proper map_id
. Example src="http://map.concept3d.com/?id=[your_mapID_here]"
- To embed a specific view of the map, utilize the Global Share function to generate a specific URL for the iframe. Copy the custom URL and replace your iframe's src attribute with the custom URL.
- Example
https://map.concept3d.com/?id=[mapID]#!t/[tourID]:[tourStopNumber]
4. Republish your site
5. Test sharing a location to make sure the javascript was included correctly!