1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Google Maps question

Discussion in 'jQuery' started by Chetan Tudor, Dec 3, 2015.

  1. #1
    I have a header, at the top of the page, the rest , is al filled with a google map. My question is how can I check how much to zoom so a particular country would be fully visible( in the center of the page ). Thank you.
     
    Chetan Tudor, Dec 3, 2015 IP
  2. qwikad.com

    qwikad.com Illustrious Member Affiliate Manager

    Messages:
    7,151
    Likes Received:
    1,656
    Best Answers:
    29
    Trophy Points:
    475
    #2
    qwikad.com, Dec 3, 2015 IP
  3. Chetan Tudor

    Chetan Tudor Greenhorn

    Messages:
    35
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    6
    #3
    I was thinking that when the user changes his smartphone's orientation( for example ), the map has to change his zoom so that the country will be centered as well. Let's say that the map has 100x200 then it changes to 300x100( it's just an example ). When the change occurs, the left and right "parts" of the map won't be visible so I should zoom it out but I don't know how much... Maybe there's an easier way for doing that.
     
    Chetan Tudor, Dec 3, 2015 IP
  4. qwikad.com

    qwikad.com Illustrious Member Affiliate Manager

    Messages:
    7,151
    Likes Received:
    1,656
    Best Answers:
    29
    Trophy Points:
    475
    #4
    Last edited: Dec 3, 2015
    qwikad.com, Dec 3, 2015 IP
  5. Chetan Tudor

    Chetan Tudor Greenhorn

    Messages:
    35
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    6
    #5
    Thank you ! Other suggestions are welcome
     
    Chetan Tudor, Dec 3, 2015 IP
  6. qwikad.com

    qwikad.com Illustrious Member Affiliate Manager

    Messages:
    7,151
    Likes Received:
    1,656
    Best Answers:
    29
    Trophy Points:
    475
    #6
    It's a fluid design, so if you shrink the page and then reload it the map will be centered. It will be centered on both cell phones and regular browsers.
     
    qwikad.com, Dec 3, 2015 IP
  7. Chetan Tudor

    Chetan Tudor Greenhorn

    Messages:
    35
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    6
    #7
    Thank you. It really helped me.
     
    Chetan Tudor, Dec 5, 2015 IP