How can I delete the Location Box from Google Maps that appears in the top left corner?

My goal is to display all warehouse locations from Google Maps on my website by utilizing Google Map's iframe:

<iframe src="http://maps.google.com/maps?q=118+Lamington+Rd.+–+Bateman+Student+Center,+Branchburg,+NJ+08876&amp;output=embed" frameborder="0" style="border:0" allowfullscreen=""></iframe>

I am currently facing a challenge in removing the location box (top left) while using an iframe. Is there a way to eliminate this part of the location box within the iframe?

<div style="position: absolute; left: 0px; top: 0px;">
    <div style="background-color: white; margin: 10px; padding: 1px; box-shadow: rgba(0, 0, 0, 0.3) 0px 1px 4px -1px; border-radius: 2px;">
        <div jstcache="0" style="">
            <div jstcache="117" class="place-card place-card-large">
                <div class="place-desc-large">
                    <div jstcache="36" class="place-name" jsan="7.place-name">Raritan Valley Community College</div>
                    <div jstcache="37" class="address" jsan="7.address">118 Lamington Rd, Branchburg, NJ 08876</div>
                </div>
                <div jstcache="38" class="navigate">
                    <div jsaction="placeCard.directions" class="navigate">
                        <a target="_blank" jstcache="52" href="https://maps.google.com/maps?ll=40.609526,-74.688894&amp;z=16&amp;t=m&amp;hl=en-US&amp;gl=US&amp;mapclient=embed&amp;daddr=Raritan%20Valley%20Community%20College%20118%20Lamington%20Rd%20Branchburg%2C%20NJ%<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="ffcdcfcfc7c7c8c9bfcbcfd1c9cfc6cacdcac7">[email protected]</a>,-74.6888942" class="navigate-link">
                            <div class="icon navigate-icon"></div>
                            <div jstcache="53" class="navigate-text">Directions</div>
                        </a>
                    </div>
                    <div class="tooltip-anchor">
                        <div class="tooltip-tip-outer"></div>
                        <div class="tooltip-tip-inner"></div>
                        <div class="tooltip-content">
                            <div jstcache="54">Get directions to this location on Google Maps.</div>
                        </div>
                    </div>
                </div>
                <div jstcache="39" class="navigate-separator"> </div>
                <div jstcache="40" class="star-entity">
                    <div jsaction="placeCard.star" class="star-button">
                        <div class="star-entity-icon-large">
                            <div jstcache="67" class="icon can-star-large" jsan="7.icon,7.can-star-large"> </div>
                            <div jstcache="68" class="icon logged-out-star" style="display:none"> </div>
                        </div>
                        <div jstcache="69" class="star-entity-text hidden" jsan="7.star-entity-text,7.hidden,t-PmAZCbgKmDw">Saved</div>
                        <div jstcache="70" class="star-entity-text" jsan="7.star-entity-text,t-bbrD6GAQ-ds">Save</div>
                    </div>
                    <div jstcache="71" class="tooltip-anchor">
                        <div class="tooltip-tip-outer"></div>
                        <div class="tooltip-tip-inner"></div>
                        <div class="tooltip-content">
                            <div jstcache="72">Save this place onto your Google map.</div>
                        </div>
                    </div>
                </div>
                <div jstcache="41" class="review-box">
                    <div jstcache="42" class="review-number" jsan="7.review-number">4.0</div>
                    <div jstcache="43" jsinstance="0" class="icon rating-star rating-full-star" jsan="7.icon,7.rating-star,7.rating-full-star"></div>
                    <div jstcache="43" jsinstance="1" class="icon rating-star rating-full-star" jsan="7.icon,7.rating-star,7.rating-full-star"></div>
                    <div jstcache="43" jsinstance="2" class="icon rating-star rating-full-star" jsan="7.icon,7.rating-star,7.rating-full-star"></div>
                    <div jstcache="43" jsinstance="3" class="icon rating-star rating-full-star" jsan="7.icon,7.rating-star,7.rating-full-star"></div>
                    <div jstcache="43" jsinstance="*4" class="icon rating-star rating-empty-star" jsan="7.icon,7.rating-star,7.rating-empty-star"></div> <a target="_blank" jstcache="44" href="http://www.google.com/search?q=Raritan+Valley+Community+College,+118+Lamington+Rd,+Branchburg,+NJ+08876&amp;ludocid=1578495031502184362#lrd=0x89c3937dc5acab1f:0x15e7f0de30681faa,1" jsaction="mouseup:placeCard.reviews" class="review-box-link" jsan="7.review-box-link,8.href,0.target,22.jsaction">69 reviews</a> </div>
                <div jstcache="45" class="saved-from-source-link" style="display:none"></div>
                <div class="bottom-actions">
                    <div class="google-maps-link"> <a target="_blank" jstcache="46" href="https://maps.google.com/maps?ll=40.609526,-74.688894&amp;z=16&amp;t=m&amp;hl=en-US&amp;gl=US&amp;mapclient=embed&amp;cid=1578495031502184362" jsaction="mouseup:placeCard.largerMap">View larger map</a> </div>
                </div>
            </div>
        </div>
    </div>
</div>

I attempted to use CSS to hide the undesired elements but it was unsuccessful:

div[style*="position: absolute; left: 0px; top: 0px;"] {
    display: none;
}

I also experimented with adding iwloc=near or iwloc=A to the URL, but unfortunately, that did not solve the issue as well.

Answer №1

At the moment, there is no option to remove the location card in the Maps Embed API. However, you can submit a Feature Request on the Issue Tracker to have engineers assess the possibility of adding this feature. Alternatively, you can explore a workaround mentioned in this issue. I hope this information is helpful.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

What is the reason that textContent assignment does not function properly when used with HTML tags?

I have been attempting to insert additional text into an existing element using the textContent property. However, when I use the += operator for addition assignment, it seems to strip away the formatting of pre-existing tags like b. I expected that the ne ...

What strategies can I use to handle components that rely on changes in the angular $state when launching a new window via $state.href?

I need to show a specific angular view in a new window without certain elements like the header or footer displayed. Currently, I am accomplishing this by checking for the current state name in the layout view and using $window.open with $state.href: In ...

The validation feature in 1000hz Bootstrap seems to be malfunctioning

I've been working on implementing validation using the 1000hz bootstrap validation plugin. Most things are going smoothly, but I'm encountering two issues: 1). The data-match attribute doesn't seem to be working even when I enter the same p ...

How can you showcase a background on both the top and bottom of a div at the same time? #dual

Trying to add a gray rectangle (indicated by the red circle) at both the top and bottom of a div that contains thumbnails. This div may have 2 or 3 rows of thumbnails. Image: Current code snippet: .jq_thumbnails { background: url("/site_media/static ...

What is the reason for all the buttons activating the same component instead of triggering separate components for each button?

I am facing an issue with my parent component that has 3 buttons and 3 children components. Each button is supposed to open a specific child component, but currently all the buttons are opening the same child component when clicked. The children components ...

validating schemas with yup - checking tuples and alternative data structures

I searched through yup's documentation but couldn't find any information on validating tuple arrays and alternative objects. Can someone provide guidance on how to validate an object with these specific properties using yup? interface Example { ...

"Enhance Your Website with jQuery: Organized Lists with Fixed Length, Connected,

I currently have a list that is separated into three columns, structured as follows: Column1 Column2 Column3 1 4 7 2 5 8 3 6 9 The list ranges from 1 to 9 and each column consists of a fixed number of rows (3). I am lo ...

Bootstrap 5 introduces a new feature where col-sm-6 will take precedence over col-md

When using Bootstrap 5, I encountered an issue where the columns were not sizing evenly in a row. Specifically, on small screens, I wanted them to be exactly size 6. In this case, the columns should have been size 3 for screens larger than md, but they end ...

What measures do websites such as yelp and urbandictionary implement to avoid multiple votes from unregistered users?

It is interesting to note that on urbandictionary, you do not need to be logged in to upvote a definition. For example, if you visit and upvote the first word, it will record your vote. Even if you open an incognito window and try to upvote again, or use ...

Combining arrays using checkboxes in React.js

As someone completely new to coding, my current endeavor involves learning React by developing a flashcard app for studying Japanese. The concept revolves around incorporating a series of checkboxes that facilitate the selection of either Hiragana or Kat ...

"Converting circular structure into JSON" - Inserting BigQuery Data using Cloud Function in Node.js

I am currently facing an issue while attempting to load an array of JSON objects into a BigQuery Table from a Cloud Function built in NodeJS. Despite not having any circular references, I encountered the error message "Converting circular structure to JSON ...

Unable to dynamically add an element to a nested array in real-time

I'm currently developing an angular tree structure that contains a large nested array. nodes : public fonts: TreeModel = { value: 'Fonts', children: [ { value: 'Serif - All my children and I are STATIC ¯\ ...

A rightward sliding submenu that appears upon clicking a button

I have a vision of creating an admin control panel for my website, featuring a set of buttons. I envision that when one of the buttons is clicked, the corresponding sub-menu will appear alongside it. For instance, if "My Account" is selected, its sub-menu ...

Creating a customized function in javascript/jquery with the ability to override it

Currently, I am utilizing Visual Studio for writing JavaScript/jQuery. For instance, when I input: $('#selector').text('foo') and then highlight text and hit F12, Visual Studio directs me to the file jquery-2.2.3.intellisense.js, auto ...

The ngMessages validation feature in AngularJS fails to remove error messages from the CSS styling

Can anyone help me figure out why I keep getting a red color underline error even though there is no actual error and validation is successful? https://i.sstatic.net/AESLl.png I created my own directive to validate passwords and I am using Angular materi ...

How do you update the icon for a webpage in HTML?

I'm looking to update the icon on a button when it is clicked. It would be helpful to know if I can also add an animation to the icon after the button click. ...

Retrieve the value of a hidden field set within the document.ready function in the asp.net code-behind

Is it possible to access the value of a hidden field in code behind that is being set during jQuery's document.ready event? I have tried using Page_Load, Page_LoadComplete, Init and Prerender but with no success. Any suggestions on how to achieve this ...

Angular 4 is unable to attach to 'formGroup' as it is not recognized as a valid property of 'form'

As a beginner with Angular 4, I decided to explore model driven forms in Angular 4. However, I keep encountering this frustrating error. Template parse errors: Can't bind to 'formGroup' since it isn't a known property of 'form ...

Retrieve the data stored in a JSON object

After making an ajax call, the json object that gets returned looks like this: Object {0: "1", 1: "jake", 2: "#00ff00", tip_id: "1", tip_details: "jake", tip_color: "#00ff00"} Object {0: "2", 1: "jakee", 2: "#00ff00", tip_id: "2", tip_details: "jakee", t ...

PHP is unable to properly process JSON data that contains HTML tags

I'm encountering an issue with my website that communicates with a Java REST server using Jersey. Everything is functioning properly except when I try to receive a JSON object with HTML tags embedded in the content. After running a println statement ...