Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
I want to know how to change the MapControl pic.
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  8 messages - Expand all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
haochi.tk/QQS  
View profile  
 More options Oct 2 2005, 11:18 am
From: "haochi.tk/QQS" <haochi.c...@gmail.com>
Date: Sun, 02 Oct 2005 15:18:51 -0000
Local: Sun, Oct 2 2005 11:18 am
Subject: I want to know how to change the MapControl pic.
I want to do it like this one...
http://www.toeat.com/
Thanks.

    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Will  
View profile  
 More options Oct 2 2005, 3:28 pm
From: Will <wjam...@nyc.rr.com>
Date: Sun, 02 Oct 2005 15:28:08 -0400
Local: Sun, Oct 2 2005 3:28 pm
Subject: Re: I want to know how to change the MapControl pic.
if you look at the javascript for that page you should be able to find it.


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike Williams  
View profile  
 More options Oct 2 2005, 3:59 pm
From: Mike Williams <nos...@econym.demon.co.uk>
Date: Sun, 2 Oct 2005 20:59:44 +0100
Local: Sun, Oct 2 2005 3:59 pm
Subject: Re: I want to know how to change the MapControl pic.
An easy way to do it (apart from the zoom slider) is to not use the
Google map control, and just place your own control icons with position
absolute and a high z-index over the top of the map div. Use onclick
functions on your icons to perform the pan and zoom actions.

    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
J. Shirley  
View profile  
 More options Oct 3 2005, 8:20 am
From: "J. Shirley" <jshir...@gmail.com>
Date: Mon, 03 Oct 2005 12:20:37 -0000
Local: Mon, Oct 3 2005 8:20 am
Subject: Re: I want to know how to change the MapControl pic.
Here's the best way to do this, as far as what we have found:
    var local = "http://yourhost.com/path/to/images/";
    var Gb = local + "center.png";
    var Hb = local + "east.png";
    var Lb = local + "west.png";
    var Ib = local + "north.png";
    var Kb = local + "south.png";
    var Jb = local + "panBackground.png";
    var Mb = local + "zoom-plus.png";
    var Nb = local + "zoom-minus.png";

    GLargeMapControl.prototype.createPanningControls = function(a,b) {
        var c =
mapObject.create(Jb,50,50,3,4,0,false,null,a.ownerDocument);
        b.appendChild(c);
        var d =
mapObject.create(Ib,18,14,19,0,1,false,null,a.ownerDocument);
        setCursor(d,"pointer");

GEvent.bindDom(d,"click",this,function(h){a.pan(0,Math.floor(a.viewSize.
height*0.5));z(h)});
        d.title=_mPanNorth;b.appendChild(d);var
e=mapObject.create(Hb,14,18,42,1
8,1,false,null,a.ownerDocument);setCursor(e,"pointer");

GEvent.bindDom(e,"click",this,function(h){a.pan(-Math.floor(a.viewSize.w
idth*0.5),0);z(h)});
        e.title=_mPanEast;b.appendChild(e);var
f=mapObject.create(Kb,18,14,19,42
,1,false,null,a.ownerDocument);setCursor(f,"pointer");

GEvent.bindDom(f,"click",this,function(h){a.pan(0,-Math.floor(a.viewSize
.height*0.5));z(h)});f.title=_mPanSouth;b.appendChild(f);var
i=mapObject.create(
Lb,14,18,0,18,1,false,null,a.ownerDocument);setCursor(i,"pointer");

GEvent.bindDom(i,"click",this,function(h){a.pan(Math.floor(a.viewSize.wi
dth*0.5),0);z(h)});i.title=_mPanWest;b.appendChild(i);var
g=mapObject.create(Gb,
18,18,19,19,1,false,null,a.ownerDocument);setCursor(g,"pointer");

GEvent.bindDom(g,"click",this,function(h){a.closeInfoWindow();if(a.lastP
ageCenter){if(a.lastPageZoom!=a.zoomLevel){a.centerAndZoom(a.lastPageCenter ,a.la
stPageZoom)}else{a.recenterOrPanToLatLng(a.lastPageCenter)}}else
if(a.lastLatLng
){a.recenterOrPanToLatLng(a.lastLatLng)}z(h)});
        g.title=_mLastResult;b.appendChild(g);
    }

__END__

Note that this looks awfully similar to Google's code... that is
because it is just copied straight out while updating the image.  The
downside of this is that you'll have to be mindful for when Google
changes their API to make sure that the code continues to function.

If you are interested in an actual control, complete with icon and
effects, I'm working on releasing something for that as well.  It may
take me a few more days to polish out the kinks in it.  I have some
weird IE issues -- if anybody is good at debugging IE issues, please
give me a hand :)

-J

--
http://www.toeat.com
toEat.com: Where do you want to eat?


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
haochi.tk/QQS  
View profile  
 More options Oct 3 2005, 5:17 pm
From: "haochi.tk/QQS" <haochi.c...@gmail.com>
Date: Mon, 03 Oct 2005 21:17:57 -0000
Local: Mon, Oct 3 2005 5:17 pm
Subject: Re: I want to know how to change the MapControl pic.

Mike Williams wrote:
> An easy way to do it (apart from the zoom slider) is to not use the
> Google map control, and just place your own control icons with position
> absolute and a high z-index over the top of the map div. Use onclick
> functions on your icons to perform the pan and zoom actions.

I had try this one before I post this thread.
I don't know why I can make it work though...

    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
haochi.tk/QQS  
View profile  
 More options Oct 3 2005, 5:21 pm
From: "haochi.tk/QQS" <haochi.c...@gmail.com>
Date: Mon, 03 Oct 2005 21:21:59 -0000
Local: Mon, Oct 3 2005 5:21 pm
Subject: Re: I want to know how to change the MapControl pic.
Thank you everybody especially J. Shirley...Star This thread!

    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
dave42@gmail.com  
View profile  
 More options Oct 14 2005, 1:01 am
From: "dav...@gmail.com" <dav...@gmail.com>
Date: Fri, 14 Oct 2005 05:01:55 -0000
Local: Fri, Oct 14 2005 1:01 am
Subject: Re: I want to know how to change the MapControl pic.
J. Shirley,
Thanks for the code.  I have tried and have been unsuccessful.
Originally I got some JS errors but I have sorted out the carriage
returns and a stray dash (-).
Now I don't get any javascript errors now but I only get the stalk
images.  Does it overwrite the stalk images?  Do I need to call the
map.addControl(new GLargeMapControl());

Do I need to call the new code some place?
Thanks for holding a NewBe's hand.
Test URL: http://gallery2.ca/test/map.php

Dave


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
pmj7  
View profile  
 More options Oct 14 2005, 8:21 am
From: "pmj7" <jones...@shaw.ca>
Date: Fri, 14 Oct 2005 05:21:40 -0700
Local: Fri, Oct 14 2005 8:21 am
Subject: Re: I want to know how to change the MapControl pic.
Another option is to place the map controls elsewhere.  If your map is
just inserted into a article, then yes, you'd want to have the controls
on the map itself.  However, if you're designing a page with a map as
the focus, there's no need for the controls to be on the map itself.
Close by, yes.  That's the approach I used for Virtual Google Earth.
The map types are under a menu, and the zoom control is very different.

http://www.pixeldevelopment.com/virtualgoogleearth.asp

Peter


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2010 Google