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 9117269
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T04:51:53+00:00 2026-06-17T04:51:53+00:00

I’m working on a project where I use a google map. I use HTML5

  • 0

I’m working on a project where I use a google map. I use HTML5 geolocalization to set up the map.
If the geolocalisation is not supported or refused then I arbitrarly set the map center.

My problem is about two things:

  • A first one about google map loading : when the geolocaization is accepted, the map is anormaly slow to load (I’m in China right now, could it be a reason ?). In firefox it even never load… There is no javascript error though.

  • More generally the display of the entire website is very buggy. After zooming out the map enough you should see a marker displayed. That’s fine, but a specific content is normally visible under the map. This content is barely visible, or hidden by an uggly black block spreading on the whole width of the window…

I’m using bootstrap (including responsive CSS file and the javascript plugin), awesomefont, and some additional javascript code.

Would you have any idea ? Especially for the second point that drives me crazy…

Thanks

EDIT
How could you help me if I don’t give the URL to check out the problems:it’s here

  • 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-17T04:51:54+00:00Added an answer on June 17, 2026 at 4:51 am

    There is an error in http://victorinox.pythonanywhere.com/static/js/manager_functions.js , Line 143:

    map.setCenter(google.maps.LatLng(loc.coords.latitude, loc.coords.longitude));
    

    has to be

    map.setCenter(new google.maps.LatLng(loc.coords.latitude, loc.coords.longitude));
    //------------^

    What else: Firefox doesn’t fire the error-callback when the user denies the permission for HTML5-geolocation. Because of that and the fact that there hasn’t been set a center for the map anywhere else the map will not load, because center is a required option.

    You may think the center will be set in initialize, but in firefox initialize never will be called when the user denies the permission for geolocation. Take a look at this:

    $(function() {
         //creates the map, no center will be set in createMap()
        map = createMap();
         //in firefox there will not be set a center
         //when user denies permission, because error-callback will not execute
        geolocalize();
         // when the map 
        center = map.getCenter();
         //will never run, because when the map doesn't have a center 
         //there will no tiles load
        google.maps.event.addListenerOnce(map, 'tilesloaded', function() {
            initialize();
        });
    })
    

    suggestion:
    Currently you have a flickering present for the markers. You reload the markers on multiple events(zoom_changed, dragend,resize), delete all markers and create them new based on a XHR-response.

    Instead you should create a cache for the markers(where you can identify them, e.g. based on some ID given by the XHR-response).
    When you got a new response create new markers only when they are not inside the cache, the other markers keep visible on the map(I don’t see any benefit when you remove/hide markers that are not visible inside the viewport)

    Also it should be sufficient to update the markers on bounds_changed only instead of the 3 events.

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

Sidebar

Related Questions

I want use html5's new tag to play a wav file (currently only supported
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am confused How to use looping for Json response Array in another Array.
I am trying to understand how to use SyndicationItem to display feed which is
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
I need a function that will clean a strings' special characters. I do NOT
I'm not entirely sure how I managed to jack this up. http://pretty-senshi.com If you
I'm trying to use string.replace('’','') to replace the dreaded weird single-quote character: ’ (aka
I'm working with an upstream system that sometimes sends me text destined for HTML/XML

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.