Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

z-index problem with info window #268

Open
juergenweb opened this issue Jan 23, 2018 · 0 comments
Open

z-index problem with info window #268

juergenweb opened this issue Jan 23, 2018 · 0 comments

Comments

@juergenweb
Copy link

Hello,

I am using the google map in a modal window.

screenshot

If I am clicking on the close button of the info window the modal window closes. This is the usual behavior of the modal - so far so good.
To prevent this I have tried to add a very high z-index to the info window with this command:

$infoWindow->setOption('zIndex', 1000000000000000);

Unfortunately the z-index will not be added to the div container of the info-window, but it will be added to the Javascript.

Excerpt from the JS:

contact_map_modal_container.overlays.info_windows.infowindow5a66e988393fd706437518 = infowindow5a66e988393fd706437518 = new google.maps.InfoWindow({ "content": "<address><b>Welser Messe<\/b><br \/>Messeplatz 1<br \/>4600 Wels<br \/>Ober\u00f6sterreich<br \/>\u00d6sterreich<\/address><div><a href=\"http:\/\/www.google.at\" rel=\"nofollow\" target=\"_blank\" title=\"Opens the homepage in an external window\" data-uk-tooltip=\"pos: top\"><span data-uk-icon='icon: arrow-right'><\/span>To the homepage<\/a><\/div>", "zIndex": 1000000000000000 });

As you can see the z-index is present in the JS Part, but if I am looking at the container of the info window there is no z-index added.

This is the complete code part of my info window:

$infowindowcontent ='Here goes my content'; 
$infoWindow = new InfoWindow('content');
$infoWindow->setOption('zIndex', 1000000000000000);
$infoWindow->setContent($infowindowcontent);
$infoWindow->setAutoOpen(true);

$marker->setInfoWindow($infoWindow);

So is there something I am missing to get it work?

Best regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant