ImageMapper, is anybody using it? -...

User 2699991 Photo


Registered User
4,874 posts

Stonecherub wrote:
Hoping to put this monstrous thread out of its misery, my responsive image maps ALMOST work, but not quite. Yesterday, I re-read all of the posts, was amazed at my stupidity, took Inger's exercise in hand (because it worked), and started over again in Foundation this time. In an hour I had a working map that resized, had regular tooltips, and URL links.

Adding tooltipster as shown by Eric's pumpkinpoo, I got the more robust tooltips - very nice.

But, when I tried to port it to Materialize, something broke! Tooltips are formatted, URLs link, but the map is no longer resizable. I tried adding ImageMapResizer but that didn't work, either.

So close...

It's posted to
http://pppotscom.coffeecup.com/index.html

Suggestions appreciated.


Foundation & Materialize don't work together, you have to choose one or the other

Unless you export the foundation thingy with the working stuff,, then put it into an HTML element within Materialize. But then again therein will start the responsiveness all ovr again
Mastering The Understanding With Hands-On Learning
NEW TO "COFFEECUP SITE DESIGNER" FOUNDATION 6 FRAMEWORK?
STUCK ON SOMETHING?

LEARNING & UNDERSTANDING "THE HOW TO"? THE WHY'S & THE WHEREFORE'S?
WITH WAYAN'S STEP BY STEP TUTORIALS
Contact Me For One To One Assistance
https://alphathemes.coffeecup.com/forms … uman-lina/
User 122279 Photo


Senior Advisor
14,474 posts

I'm just at the end of my holiday now, so I have plenty to do preparing for departure, but after June 1st I could redo that wee excercise of mine in materialize, if that would be of interest.
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 2792467 Photo


Registered User
161 posts

Check the location of the javascript imageMapResizer.min.js
The reference:
<script type="text/javascript" src="../js/imageMapResizer.min.js"></script>
is not valid; therefore this script :
<script>$(document).ready(function() {
$('map').imageMapResize();
});</script


(just before the </body> tag) does not work.
Eindhoven :: Netherlands

It's easy to see, once you see it.
User 187934 Photo


Senior Advisor
20,200 posts

> is missing from the end of this script.
<script type="text/javascript" src="../js/imageMapResizer.min.js"></script>
is not valid; therefore this script :
<script>$(document).ready(function() {
$('map').imageMapResize();
});</script

But remove all of this completely as you already have code inserted above it.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2040390 Photo


Registered User
95 posts

The project was rebuilt from zero on Saturday using foundation because Inger's wee exercise was in foundation. Then, on Sunday, I completely rebuilt the project in Materialize using the same script calls that worked in foundation. The problem clearly has to be the function that resizes the map because everything else does in Materialize what it did in foundation.

I tried MapResizer just before I shut down and should have taken it out before I published because it changed nothing. Wouldn't it be nice if CC could integrate Notepad++ as a text editor to replace the tiny-font boxes we have to work with now.

I am organizing my writing and my images to use the functions available in Materialize, I don't want to go back to foundation.
User 244626 Photo


Registered User
811 posts

Here is a project file that may help using a different re-sizing plugin called mapify.js and also tooltipster.

Its done in Materialize.

(You can only use the polygon tool - no circles or rectangles in Image Mapper)

I am using a transparent png for the main map image and using background images on the html-element to get the responsive downloading.

http://gluexp.coffeecup.com/toolmap/



Attachments:
Bootstrap 5 CSS Grid.
User 2040390 Photo


Registered User
95 posts

Twinstream writes: <<I am using a transparent png for the main map image and using background images on the html-element to get the responsive downloading.>>

Sorry, I don't understand that. I see calls to .mapify in lines 49-52 but don't know what they do. Nor do I understand .mapify-hover at line 17.

I like the container-grid tooltip_templates.

Thanks, I need this to work.
User 187934 Photo


Senior Advisor
20,200 posts

Eric Rohloff wrote:
> is missing from the end of this script.
<script type="text/javascript" src="../js/imageMapResizer.min.js"></script>
is not valid; therefore this script :
<script>$(document).ready(function() {
$('map').imageMapResize();
});</script

But remove all of this completely as you already have code inserted above it.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2040390 Photo


Registered User
95 posts

Eric:

ImageMapResizer was a late addition and a mistake, it accomplished nothing. The problem seems to be with rwdImageMaps that won't resize the map in Materialize.

Twinstream sent a kludge that works, I'm waiting for him to explain some things I don't understand.
User 244626 Photo


Registered User
811 posts

On your current web example at http://pppotscom.coffeecup.com/index.html

you need to change the code you pasted into the html box for the img only....from

<img src="Bing25May.jpg" usemap="#bing25may" border="0">

to

<img src="Bing25May.jpg" usemap="#bing25may" border="0" class="responsive-img">

and it will begin to work.
Bootstrap 5 CSS Grid.

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.