Here we will see what is image mapping, how to create an image map path and how we can use it in SharePoint online using a script editor web part.
YouTube Channel: https://www.youtube.com/c/EnjoySharePoint
Today I am going to explain how to insert links in an image with respect to the position of the image. Say for an example: In FB, we will have a tag on photos. In any location or a specific part of the image, we do tag a person. Similarly, we can refer a link to the image when they click on a specific part of the image.
To implement this first,
1. Create a site page in the SharePoint 2013 site.
2. Insert an image in the page.
Then we have to write code to display links on the page.
3. Open the page in designer and give a propety usemap=”#country” in the image tag.
<img alt="globe.png" src="/teams/CreditPoint32/1.5.2Site/SiteAssets/SitePages/Test2Page/globe.png" usemap="#country" style="margin:5px;" />
Now add rectangle, circle and polygon shape of links to cove a part in the image.
In the above image we have countries. To insert links to specific country when we click on the “ASIA” or any other country in the image
Add rectangular type of mapping in the page (Below <img> tag
<area shape="rect" value="multireg" coords="69,20,270,79″ href="http://www.google.com"> <area shape=" rect " value=" america " coords="12,265,80,80″ href="http://www.google.com"> <area shape=" rect " value=" asia " coords="332,260,255,80″ href="http://www.google.com"> <area shape="rect" value="europe" coords="69,320,270,268″ href="http://www.google.com">
This we can find hot spots and give links to navigate the location. Hope this will help you in your development
You may like following SharePoint tutorials:
- How to make image map and use in SharePoint online or SharePoint 2016/2013?
- Configure alternate access mappings SharePoint 2016
- SharePoint Online Image Slider or Carousel Example
- Open html file in a browser in SharePoint 2013/2016
I hope this will be helpful to create and use image mapping in SharePoint Online and sharepoint image with multiple links.
I am Bijay from Odisha, India. Currently working in my own venture TSInfo Technologies in Bangalore, India. I am Microsoft Office Servers and Services (SharePoint) MVP (5 times). I works in SharePoint 2016/2013/2010, SharePoint Online Office 365 etc. Check out My MVP Profile.. I also run popular SharePoint web site SPGuides.com