2

I am having issues with the Smart Map infoBubble pointer position...

Smart Map InfoBubble position bug

As you see the shadow is positioned correctly, but the white overlay triangle is too low down. Or the other way of thinking about it would be that the white overlay triangle is correct and the rest is too high. However, I think the problem can best be described as the former, that the white triangle is too low, knowing that the marker it is attached to is hidden away just showing behind the white triangle.

After inspecting this in Chrome, I cannot see the element / pseudo-element that generates this pointer visual... so cannot debug. Can anybody offer any assistance on how to fix this anomaly?

Thanks in advance,

Adam.

2
  • This is odd... Is it happening in other browsers? If you were to comment out the customized buttons in the infoBubble template, do you still see this effect? Do you have any JS on the page which might be affecting that?
    – Lindsey D
    Nov 28 '15 at 5:22
  • Hello, It is happening in both Chrome and Safari. If I simply put 'hello' into the info bubble, no other markup or content, it still occurs. Dec 1 '15 at 16:52
1

I'm going to guess that there is some sort of CSS or JS conflict which is causing this peculiar behavior. Smart Map must be bumping up against some other styling on the page.

Check through your existing CSS/JS to see if you can find the source of the conflict.

1

OK I found it!

I'm using the Marx CSS reset Sass library.

In its _sanitize.scss file it has the rule:

* { border-style: solid; }

So by altering my own css to include:

.smartmap-mapcanvas * { border-style: none; }

That removed the anomaly.

1
  • 1
    This keeps biting me on various map implementations (not just smart map) - one of my most revisited answers! Thanking my former self.... Oct 31 '18 at 10:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.