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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T18:33:07+00:00 2026-05-30T18:33:07+00:00

I am using the JS API to display my map. Here is the code:

  • 0

I am using the JS API to display my map.
Here is the code:

<script type="text/javascript">
  function initialize() {
        var _lat = 10;
        var _long = 200;
        var myLatlng = new google.maps.LatLng(_lat, _long);
    var myOptions = {
      center: myLatlng,
      zoom: 15,
      mapTypeId: google.maps.MapTypeId.ROADMAP
    };
    var map = new google.maps.Map(document.getElementById("map_canvas"),
        myOptions);

        var image = 'target.png';
        var beachMarker = new google.maps.Marker({
            position: myLatlng,
            map: map,
            icon: image
        });

        beachMarker.setMap(map);
  }
</script>

Now i want to remove few things from the map.

  1. Remove the zoom controls + user should not be able to zoom using
    mouse or anything
  2. User should not be able to move around the map using mouse. It
    should stay like a static image
  3. Remove the MAP|SATELLITE option from map.

How do i achieve this.

enter image description 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-05-30T18:33:09+00:00Added an answer on May 30, 2026 at 6:33 pm
    scrollwheel: false,
    

    This option is used for disable zoom on mouse.

    scaleControl: false,
    

    This option is used for disable zoom by scale.

    draggable: false,
    

    This option is used for disabling drag.

    mapTypeControl: false,
    

    This option will hide map type.

    Put them as following:

    var myOptions = {
       center: myLatlng,
       zoom: 15,
       mapTypeControl: false,
       draggable: false,
       scaleControl: false,
       scrollwheel: false,
       navigationControl: false,
       streetViewControl: false,
       mapTypeId: google.maps.MapTypeId.ROADMAP
    };
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Google map API to display map in simple javascript popup. While popup
here is my code - I've tried using the google maps api and other
Hi I am using a bing maps 7.0 ajax api to display map. I
I am using Google Maps API to display a map on a certain page.
I’m downloading maps using Static Maps V2 API then display map on my mobile
I need a simple way to display a map, using the API v3, which
I'm trying to create map (using the Google Maps JavaScript API V3 ) which
Here is the snippet I am using to display Google map on my app
I am using the Google Maps API to code a campus map for my
I'm using Google Maps API to display a map and some markers on it.

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.