Forum

Thread tagged as: Question, Field-Types

Responsive Map - How to set the dimensions on the static version?

Hi Guys,

When using the map field type and creating a responsive map (based on the docs). We have to remove the width and height values, which I think are used to generate the fallback static image.

Without these it seems to be generating this static image at 460x320px - how or where do I set this to control the size this static image is created but to keep the map responsive (no width/height values).

Thanks Terry

Terry Upton

Terry Upton 0 points

  • 7 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

I'm not sure I have an answer. I think the Google API needs map dimensions to be set.

OK thanks Drew. No ideas where it is getting 460px and 320px from then?

Drew, it looks like it is being set in PerchFieldTypes.class.php ?

Drew McLellan

Drew McLellan 2638 points
Perch Support

That's right. As far as I'm aware, the Google API needs map dimensions.