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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T21:35:41+00:00 2026-05-13T21:35:41+00:00

I was playing with Google maps for last two days and started understanding little

  • 0

I was playing with Google maps for last two days and started understanding little bit about its functionality.

I was using Large Map i.e. 700 X 300 resolution map size and i was trying to implement controls used in small maps.

eg.

var map = new GMap2(document.getElementById("map_canvas"));
 map.setCenter(new GLatLng(37.4419, -122.1419), 18);
 map.setMapType(G_HYBRID_MAP);
 **map.setUIToDefault();**
 map.enableContinuousZoom();

 var customUI = map.getDefaultUI();     
 customUI.controls.smallzoomcontrol3d=true;   //1. trying to override largezoomcontrol3d 
 customUI.controls.menumaptypecontrol=true;   //2. trying to override largezoomcontrol3d 
 map.setUI(customUI);

 map.enableRotation(); //3. Enabling rotation

Here in 1(a). Small zoom control is not getting visible until i remove the line map.setUIToDefault() and add one more line customUI.controls.largezoomcontrol3d=false. Although I was expecting that by writing above code those control will get overridden.

1(b). I tried to use map.removeControl(Control:GControl) where i was not able to pass the correct parameter. I wanted to remove largezoomcontrol3d from map but i was not able to make out how to refer to this control in the current map.

  1. Same overriding problem is occuring here also. The only difference here is that both the controls are visible here menumaptypecontrol and maptypecontrol, here menumaptypecontrol is overlapping on maptypecontrol

  2. I am trying to enable rotation on map but it is not working for me.

  • 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-13T21:35:42+00:00Added an answer on May 13, 2026 at 9:35 pm

    thinking about map.removeControl you were quite closely to solution (if I got what you need). take a look here:

    Controls

    so, you need just use map.addControl function to add exactly what you need instead of what you did.

    sorry, forgot about map rotation. I think the following simple example of Google Map can help you (I just never played with rotation, but example looks very simple to learnt from it):
    Google Map rotation example

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

Sidebar

Related Questions

I'm playing with ASP.NET MVC for the last few days and was able to
I'm playing with google Maps and I need some directions :-) I'd like a
I am playing with Google App Engine and Python and I cannot list the
I'm currently playing with Google Go. There's a lot of ways to declare and/or
I'm a newbie person that try to playing with Google API. I try to
I am playing around with implementing a REST service on the Google AppEngine. I
Just started playing with Tornado and want to offer multiple methods of authentication. Currently
Playing with log4net, I have seen the possibility to use a per-thread stack of
Just playing around with the now released Silverlight 2.0. I'm trying to put a
While playing around with regexps in Scala I wrote something like this: scala> val

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.