Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8127051
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T07:23:00+00:00 2026-06-06T07:23:00+00:00

I am creating a web app that uses the Google Maps API to display

  • 0

I am creating a web app that uses the Google Maps API to display a map. When I reload the page it does not initialize the map where my coordinates tell it to and is “fuzzy”. Once I zoom out using the toolbar on the left and zoom back in everything is fine. Here is my code:

<!DOCTYPE html>
<html>
<head>
<title>Google Maps JavaScript</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta charset="UTF-8">
<style type="text/css">
  html, body, #map_canvas {
    margin: 0;
    padding: 0;
    height: 50%;
  }
</style>
<script type="text/javascript"
    src="https://maps.googleapis.com/maps/api/js?sensor=false"></script>
<script type="text/javascript">
  var map;
  function initialize() {
    var myOptions = {
      zoom: 14,
      center: new google.maps.LatLng(2.3584170693, -71.065063476),
      mapTypeId: google.maps.MapTypeId.ROADMAP
    };
    map = new google.maps.Map(document.getElementById('map_canvas'),
        myOptions);

  var bikeLayer = new google.maps.BicyclingLayer();
  bikeLayer.setMap(map);

    var marker = new google.maps.Marker({
    position: new google.maps.LatLng(42.346872819794896, -71.06643676757812),
      map: map,
      title: 'REPORT'
    });

    var marker = new google.maps.Marker({
    position: new google.maps.LatLng(42.363363955820496, -71.08978271484375),
      map: map,
      title: 'REPORT'
    });
  }

  google.maps.event.addDomListener(window, 'load', initialize);
</script>
</head>
<body>
<div id="map_canvas" style="width: 90%; height: 300%"></div>
</body>
</html>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T07:23:02+00:00Added an answer on June 6, 2026 at 7:23 am

    I noticed your markers are around (42.3, -71), Boston, but the map’s center as written in the options, is missing a ‘4’ and sending the initial location to Colombia at (2.3, -71).

    About the fuzzyness, could it just be the bicycling layer taking a while to load? I am unable to reproduce this effect.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am interested in creating a web app that uses JSP , Servlets and
i'm creating a web app that's running on an Advantage Database server, not my
I am creating a web app that uses Rails built-in helper functions to add
I'm coding up a REST/RPC API for a web app that I'm creating. From
I am working on creating a web app that will query event logs on
I am creating a Java web app that is meant for use by Facebook
I am creating a custom membership provider for a web app that already has
I'm creating a .net app that manages some feeds from various web services. I've
When creating a web application that some how displays the display of a unique
I am creating a web app that requires the use of a Java Object

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.