Static map width error

This topic contains 5 replies, has 3 voices, and was last updated by  pascala 6 years, 4 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #487895

    pascala
    Free User
    Post count: 2

    Hi friends,
    I’m trying to add a GD>Map widget to a detail page, but setting the width to 100% does not work with “Enable static map” ticked. It seems to simply strip the % sign off and use the number as px value in the request to maps.googleapis.com. So the static map image shows as 100×425 image instead of scaling to 100% width. When clicking the static image, the map scales correctly to the canvas size. Using a number without % works as expected, but obviousely doesn’t scale. I’m using the latest GeoDirectory with WP 5.1 and Beaver Themer. Does anybody have a clue for this?
    Thanks, Pascal

    #487926

    Kor
    Moderator
    Post count: 16516

    Hi pascala,

    Thanks for your post. Kindly share your Website WP admin access here in private reply and I’ll check on it.

    #487957

    Alex Rollin
    Moderator
    Post count: 27815

    Static maps require a pixel value in the width input, like 500px.

    #488034

    pascala
    Free User
    Post count: 2

    Thanks for your reply, Alex. Maybe the popup help and your documentation should mention this somewhere. At least it’s documented here now 🙂
    Btw, do you have a hint how to make the map image scale to the container width while using pixel values for width (and height?)
    Thanks!

    #488111

    Alex Rollin
    Moderator
    Post count: 27815

    No, static maps are images, though, so should respond to CSS.

    #488187

    pascala
    Free User
    Post count: 2

    Thanks Alex, I will try to solve this with css in your widget.

Viewing 6 posts - 1 through 6 (of 6 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount