SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Jul 2012
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Google Maps and jQuery window size issue

    I am trying to incorporate a Google map in my website. Using samples from Google I have my map... but no markers. So... I have found a sample (here someplace) that uses javascript to load multiple markers called markers.js. I am now trying to change what I can in the *.js file to reflect "my" map.



    First of probably a number of problems. I want my map to be 100%, the code in the *.js seems to regulate the size of the map by...



    $(document).ready(function() {

    $("#map").css({

    height: 500,

    width: 600

    });


    My good map does it this way



    <style type="text/css">

    html { height: 100% }

    body { height: 100%; margin: 0; padding: 0 }

    #map_canvas { height: 100% }

    </style>



    Can anyone advise me on what / how I can change this?

    Thanks again for your time

    Ralph

  2. #2
    SitePoint Member
    Join Date
    Jul 2012
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Question now moot, using a different approach . Thanks to anyone that considered my problem


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •