Using a custom share URL is a great way to have users stay within the page you are embedding your map. This is optional, but allows consistency with URLs and branding. To set up a custom share URL, there are two parts.
Note: You must have already included the iframe code within your website for this passthrough javascript to work. You can find instructions on embedding you map within an iframe here.
ADDING THE URL TO THE CONTENT MANAGEMENT SYSTEM
1. Log into 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.
PASSING THE HASH WITH CUSTOM JAVASCRIPT
In order for the share URL to correctly point to the location, a snippet of custom javascript must be added after the iframe. In addition, there needs to be a jquery library included in the page. If you do not have jquery, add the below:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
1. Within your webpage html, include the applicable script below within a opening <script> tag and a closing </script> tag
If your direct map link beings with www.myatlascms.com, use this code:
If your direct map link begins with https://map.concept3d.com, use this code:
2. Test sharing a location to make sure the javascript was included correctly.
Comments
0 comments
Please sign in to leave a comment.