0

Got as far as editing scripts.js for PSET8 and it seems that for this part of the code:

var options = {
    center: {lat: 42.3770, lng: -71.1256}, // Cambridge, Massachusetts
    disableDefaultUI: true,
    mapTypeId: google.maps.MapTypeId.ROADMAP,
    maxZoom: 14,
    panControl: true,
    styles: styles,
    zoom: 13,
    zoomControl: true
};

Even though I've changed the lat & lng to make the map center Cambridge, Massachusetts and saved, the map centre remains the same as before. Additionally, even though I'm using the same 'add marker' code as I had last year, no markers are on the page. This leads me to believe that the map isn't updating properly with my code. Any help on this much appreciated!

3

Have you tried clearing the browser cache (shift-reload or ctrl-F5)? That will cause the browser to re-download your js file. Since you mention "code from last year" is it possible apache is started in a different "path-to-root" than you expect?

1
  • Hey DCS, it seemed that the issue resolved as the next day I revisited and the changes updated. The issue then popped up again with some new revisions and the browser cache didn't help but I successfully submitted anyway, thanks for the help! – Fede B Mar 24 '16 at 14:38

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .