Google Map sizing

Phoca Gallery - image gallery extension
gooner67
Phoca Member
Phoca Member
Posts: 20
Joined: 14 May 2020, 19:12

Re: Google Map sizing

Post by gooner67 »

Hi Christine

As you can see in your posted image, the map is narrow and deep not 600x400. Also the map is always off to the left, probably because the window size is wrong, and you have to drag the map to the right to see the pinned point on the map where the photo was taken.

Thanks for your help, I have no hair left trying to fix this.

Alan

Tags:
User avatar
christine
Phoca Hero
Phoca Hero
Posts: 2991
Joined: 28 Nov 2010, 17:20

Re: Google Map sizing

Post by christine »

Hi Alan,

Code: Select all

#pgCategoryModalIframe, .modal iframe, iframe.aspect, iframe.map  {
width: 100%;
height: 100%;
aspect-ratio: 600/400;
pointer-events: none; /*touchscreen*/
}
add: aspect-ratio > ev. with different values
then I see the pinned point

Kind regards
Christine
gooner67
Phoca Member
Phoca Member
Posts: 20
Joined: 14 May 2020, 19:12

Re: Google Map sizing

Post by gooner67 »

Does anyone have maps working correctley using the icon as I have set up so i can see it working it may be something simple i have overlooked but nothing is working.
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 10100
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Google Map sizing

Post by Benno »

Sure, but as written in post #2 with OSM. See: https://www.reisefotografien.eu/reisefo ... ypten-2024

Kind regards,
Benno
User avatar
christine
Phoca Hero
Phoca Hero
Posts: 2991
Joined: 28 Nov 2010, 17:20

Re: Google Map sizing

Post by christine »

It works when entered temporarily:
https://imgur.com/a/PbwUghf

You're using a lot of inline code. You should create a custom.css file. See here (Custom CSS Area):
https://www.joomshaper.com/documentatio ... ss-js-meta

Kind regards,
Christine
gooner67
Phoca Member
Phoca Member
Posts: 20
Joined: 14 May 2020, 19:12

Re: Google Map sizing

Post by gooner67 »

Hi Christine

I have discovered what is causing it. It is the Detail View in the Options Page. To get it to work I have had to change the view to a standard pop up menu, which I dont like, rather than the photoswipe view which I do like.

Thanks for all you efforts to try and help me find the problem, Ill just have to put up with the way it looks in the standard pop up menu.

Alan Morris.
Post Reply