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

  • Home
  • SEARCH
  • 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 8133531
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T09:38:10+00:00 2026-06-06T09:38:10+00:00

So, I have created many map applications before, but the one that I am

  • 0

So, I have created many map applications before, but the one that I am working on currently actually has some interaction to it.

Users can click markers and accept them and the data is saved after they click a button external to the map but on the same page.

At that point I am displaying a bunch of data regarding what happened in some divs outside the map.

What I want to occur now is that I want the map to darken kind of like a transparent black to give it the look that it is no longer functional and disable the map alltogether.

If you have ever worked with fancybox it would be similar to what the background screen looks like when a fancybox pulls up.

Any thoughts or ideas on this would be greatly appreciated I have been searching around but really haven’t found any way to do this yet.

  • 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-06T09:38:12+00:00Added an answer on June 6, 2026 at 9:38 am

    I might as well make it an answer with a fiddle.

    jsFiddle -> http://jsfiddle.net/HB324/

    The HTML ->

    <div id="hide_map">
      <a href="#"> Click Me To Hide Map </a>
    </div>
    <div id="map_canvas"></div>
    

    The CSS ->

    #map_canvas{
     position:relative;
     height:300px;
     width:300px;    
    }
    
    .overlay{
      position:absolute;
      top:0;
      left:0;    
      width:100%;
      height:100%;
      background:rgba(0,0,0,.5);
    }
    

    The JavaScript ->

    var geocoder;
    var map;
    var latlng;
    jQuery(document).ready(function() {
    
            geocoder = new google.maps.Geocoder();
              var address = 'United States';
              geocoder.geocode( { 'address': address}, function(results, status) {
                if (status == google.maps.GeocoderStatus.OK) {
                  latlng=results[0].geometry.location;
                  var myOptions = {
                    zoom: 16,
                    center: latlng,
                    mapTypeId: google.maps.MapTypeId.HYBRID
                  }
                  map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
                  var marker = new google.maps.Marker({
                      map: map,
                      position: latlng,
                      title:address
                  });
                }
              });
        });
    

    Edit: Forgot CSS, added CSS

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

Sidebar

Related Questions

I have created many tables using <table> tag but don't know how to get
I am working on an application with many html pages. I have created these
I have two classes in an owned one-to-many relationship. The parent is Map, and
I have an existing app that has many, many models. I'd like to log
I have created many TestProjects with Visual-Studio-2010 Ultimate . All tests were executed successfully
Im using c# .net windows application form. I have created many databases with many
I have created Twitter bots for many geographic locations. I want to allow users
Many programs have created a huge amount of swap files. They annoy me, because
I have created a great stand-alone web form in asp.net utilizing many jQuery features
Here is my problem. I have created a pretty heavy readonly class making many

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.