[Google Maps API v3] Re: Printing issue on Internet Explorer only

2011-10-21 Thread Kesuke
Which cutePDF package did you use to create that? On Oct 21, 2:51 pm, MymsMan wrote: > I also got strange results printing (cutePDF) with IE9 Win7 x64, > (hotel_plan2) > a second attempt was more successful but not perfect (streetview man appear > below map) (hotel_plan2) > > I also get missing t

[Google Maps API v3] Re: Convert google maps into an image

2011-10-21 Thread Kesuke
if you have their map layer with your own overlay, would obviously breach the ToS. On Oct 21, 9:51 am, Andrew C Leach wrote: > On 21 October 2011 08:59, Kesuke wrote: > > > This means > > any solution will almost certainly involve a serverside script that > > stitches y

[Google Maps API v3] Re: Convert google maps into an image

2011-10-21 Thread Kesuke
a heatmap overlay on my map and i want to > export all that data into an image.  currently, i'm using the static > maps api and programmatically merging a generated heatmap image on top > to produce the image i want.  was wondering if there's an easier way > to d

[Google Maps API v3] Re: How to trigger a Tile Server to dynamically update tiles

2011-10-20 Thread Kesuke
How does it perform in the end? I'd love to see a link as am thinking of implementing something similar to smooth out transitions in my custom overlays. I was wondering whether the need for 5 second updates couldn't be changed to perhaps 10 or even 15+? At 5 seconds isn't there a danger than tile

[Google Maps API v3] Re: Adding code to getTileUrl

2011-10-20 Thread Kesuke
October 2011 15:29, Kesuke wrote: > > > Nevermind, rewrote it and it works. From what I can see it was the > > lowercase M in math.pow(). > > Did that not produce an error which would help in the diagnosis? > Something like "math is not defined" or "cannot us

[Google Maps API v3] Re: Adding code to getTileUrl

2011-10-20 Thread Kesuke
Nevermind, rewrote it and it works. From what I can see it was the lowercase M in math.pow(). On Oct 20, 2:48 pm, Rossko wrote: > > But it doesn't work - infact, putting any code into getTileURL except > > '{ return "/url" }' seem to make it to fail. > > If only we could see what "fail" meant --

[Google Maps API v3] Adding code to getTileUrl

2011-10-20 Thread Kesuke
I am trying to implement a way of hiding all the tiles on the left or right half of the map based on a user input. It is easy to figure out whether a tile exists on the left or right half of the projection just by using its' x-coordinate and zoom level: if (coord.x >= 0.5 * math.pow(2, zoom level)

[Google Maps API v3] Adding code to getTileUrl

2011-10-20 Thread Kesuke
I am trying to implement a way of hiding all the tiles on the left or right half of the map based on a user input. It is easy to figure out whether a tile exists on the left or right half of the projection just by using its' x-coordinate and zoom level: if (coord.x >= 0.5 * math.pow(2, zoom level)

[Google Maps API v3] Re: Convert google maps into an image

2011-10-20 Thread Kesuke
>> Google Static Maps But static maps won't work with custom overlays will it? On Oct 20, 10:30 am, davie strachan wrote: > Hi > Google Static Mapshttp://code.google.com/apis/maps/documentation/staticmaps/ > Regards Davie > > On Oct 20, 1:29 am, Geoff wrote: > > > > > > > > > Is there a way to

[Google Maps API v3] Re: Calculating distance based on "Blocks" rather than miles

2011-08-24 Thread Kesuke
It sounds like the polygon solution will work best for you as the delivery areas could end up being very complex shapes, such as where they hug state boundaries or are impeeded by obstacles like rivers. That wouldn't work very well with simple bounding boxes. Rather than try to jump straight into

[Google Maps API v3] Re: Calculating distance based on "Blocks" rather than miles

2011-08-23 Thread Kesuke
I have to admit I'm slightly ignorant on blocks as a measurement since we don't use that system in Europe. The problem is they don't have a fixed unit of distance which makes calculating a block distance arbitrary. I am not aware of any built in function to calculate the distance in blocks, since t

[Google Maps API v3] Re: Google Maps V3 Resize and Center in the same time. (with jQuery resize)

2011-08-17 Thread Kesuke
Ideally option 1 would work, but sometimes the animation complete function in JQuery fires before the DOM has actually finished rendering the animation - especially on older devices/mobile devices. You could try enclosing the resize in a setTimeout() method, probably with a generous time on it like

[Google Maps API v3] Re: Draw thousands of objects (markers, infowindow, polylines, circles, polygons)

2011-08-15 Thread Kesuke
It may help if you could explain a little about what it is you are trying to do that requires such a large number of objects. We might be able to suggest better ways of achieving it. On Jul 18, 9:20 pm, AlbertoHN wrote: > Hi! The problem is that I need to draw thousands of objects (not cluster >

[Google Maps API v3] Re: force refresh of getTile function

2011-08-14 Thread Kesuke
Hmmm, never the less that function is throwing off an error which is stopping it progressing. I'm not sure what is causing it in that case. On Aug 14, 3:11 pm, Esa wrote: > Kesuke. None of the syntax issues you pointed are not against > JavaScript rules. > > Curly brackets wit

[Google Maps API v3] Re: Is it possible to create a single overlay that doesn't move with the map?

2011-08-13 Thread Kesuke
Does your map have a fixed width/height or is it fluid? On Aug 13, 6:15 pm, Matt wrote: > I'm trying to create an overlay that sits above the map tiles and below any > markers and controls. It needs to be statically positioned - not pan with > the map. > > I'm trying to create something akin to

[Google Maps API v3] Re: Adding Sliding panel.

2011-08-12 Thread Kesuke
If enough people are interested I will do a guide on how to replicate the maps.google.com side panel witj JQuery. It isn't as complicated as it seems, but it does have to be done in quite a precise way. Is this something people want? On Aug 12, 9:24 pm, Esa wrote: > I see quite tricky to duplicat

[Google Maps API v3] Re: force refresh of getTile function

2011-08-12 Thread Kesuke
I was just taking another look at this and there is another problem with that setRedye function, the (document.dir.redye_check.checked) throws up an "Unable to get value of the property 'checked': object is null or undefined" error. I'm not sure why that is, I would have thought it should work but

[Google Maps API v3] Re: force refresh of getTile function

2011-08-11 Thread Kesuke
Your function setRedye (){ has an error *I think*, could this be the cause? function setRedye(){ if (document.dir.redye_check.checked) redye=true; else redye=false; } Should be; function setRedye() { if (document.dir.redye_check.checked) { redye=true; } else { redye=false; } Out of my own c

[Google Maps API v3] Re: Adding Sliding panel.

2011-08-11 Thread Kesuke
Are you talking about the entire left panel - or the panels within the map? The left panel (where the directions are shown) on maps.google.com could be easily reproduced using CSS and JQuery. Your page will look something like: Stuff you want in the panel Then, you will give your map-c

[Google Maps API v3] Re: Show/hide Overlays (2)

2011-08-10 Thread Kesuke
changes need to be made (e.g. displaying or hiding a merged-layer). The checkboxes would then be adjusted to simply reflect whatever settings the array currently holds. But after about 72 hours of trying I'm really hitting a wall with how to actually make it work. On Aug 7, 6:48 pm, K

[Google Maps API v3] Re: Google Map API, Phonegap & JQuery ui

2011-08-07 Thread Kesuke
#1 As far as I have heard WatchPosition() seems to update faster in most circumstances than re-calling CurrentPosition() on an interval loop. This link is where I first saw it: http://stackoverflow.com/questions/1948952/watchposition-vs-getcurrentposition-w-settimeout but its far from conclusive. T

[Google Maps API v3] Show/hide Overlays (2)

2011-08-07 Thread Kesuke
Continued from: http://groups.google.com/group/google-maps-js-api-v3/browse_thread/thread/b7d796cfa05a40de/48816cfff2d6807e (can't bump the old thread for some reason). A year on the project is very nearly complete, but I have a final problem; Each diagram uses about ~130 layers/overlays. To imp

[Google Maps API v3] 'tilesloaded' event on custom overlays

2011-08-01 Thread Kesuke
I can't get the tilesloaded event to fire when using a custom tile overlay in V3. Is this a normal/intention limitation or perhaps I have made a mistake somewhere? -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this

[Google Maps API v3] Re: Bad requests on custom tile overlays

2011-07-30 Thread Kesuke
x27;m assuming you mean the "/&x="  and  "/ > &y="? I thought so too but the odd thing is it works fine without the > forward slashes in Firefox or IE but in Chrome the tiles don't load > without having the forward slashes there. > > Not sure why that

[Google Maps API v3] Re: Bad requests on custom tile overlays

2011-07-30 Thread Kesuke
n in the map code changing the return statement to: > > return "/merge/tiles.php?z=" + zoom + "/&x=" + coord.x + "/&y=" + > (Math.pow(2,zoom)-coord.y-1) + ".png"; > > seems to work for me. I have a google base layer, tiles and no 404s. > &

[Google Maps API v3] Re: Bad requests on custom tile overlays

2011-07-30 Thread Kesuke
suspect you need to change it a bit (look at the . "_" . parts especially). Let me know how it goes. On Jul 30, 8:50 pm, Jason wrote: > Thanks for posting that Kesuke! It would be great to get this working. > Those 404s have been a headache for quite a while. > > I've im

[Google Maps API v3] Re: conversion to V3 questions

2011-07-30 Thread Kesuke
1.) This guide should help explain how to call the map in V3: http://code.google.com/apis/maps/documentation/javascript/tutorial.html Essentially your map code will go in a javascript function, and in the body tag you will call that function. In the 'hello world' example over at that link you will

[Google Maps API v3] Re: Bad requests on custom tile overlays

2011-07-30 Thread Kesuke
with me feeding it the same 1px clear.png image from different URLs but it doesn't seem to appreciate that is the lesser of two evils. So I set a very long expiry on the clear.png and PNGcrushed it down to a massive 69 bytes and PageSpeed seems to be ignoring it now. On Jul 30, 3:19 pm, K

[Google Maps API v3] Re: Bad requests on custom tile overlays

2011-07-30 Thread Kesuke
Okay, thanks everyone – the PHP solution works great! So here is a guide for Jason or anyone else who stumbles across this; 1.) Make a new PHP file with the following code: Basically this PHP script will check to see if the file exists. If it does it will return the file. If it doesn't, it will

[Google Maps API v3] Bad requests on custom tile overlays

2011-07-27 Thread Kesuke
I am using custom tile overlays on a map. To fetch the tiles I use the generic method: function createImageMapType(id, opacityvalue) { return new google.maps.ImageMapType({ getTileUrl: function(coord, zoom) { return "/tiles/" + id + "/"+ zoom + "_" + coord.x + "_" + coord.y + ".

[Google Maps API v3] Re: MarkerManager V3 Markers Do Not Load Consistently

2011-05-06 Thread Kesuke
Opps, my bad - ignore me. On May 6, 1:36 am, Luke Mahé wrote: > This is incorrect - we do not limit the number of markers that you can add > to a map. > > -- Luke > > On Thu, May 5, 2011 at 5:22 PM, Kesuke wrote: > > Google limit the number of markers visible on a single

Re: Tr.lời: Re: [Google Maps API v3] Re: Tr.lời: Re: Bug in IE8: Overlay tiles are not transparent in IE8. Works fine in Chrome, Firefox and IE9.

2011-05-06 Thread Kesuke
g. 85%) to the tiles you will get artefacts around the alpha parts of the image - which isn't googles fault, it's the best that can be done with those versions of IE. I take it all back, google have taken care of this nicely. On May 3, 11:38 pm, Nghi Nguyen wrote: > Great advice, than

[Google Maps API v3] Re: Convert pixel position to latlng.

2011-05-06 Thread Kesuke
Thanks all, got it working. I had originally tried the fromLatLngToPoint(point) method but it didn't work so I moved on. HOWEVER, it turns out the problem was I was not feeding it points properly. I was trying to give it pixel coords or tile coords - what it actually wants are world coords! Like ma

[Google Maps API v3] Re: MarkerManager V3 Markers Do Not Load Consistently

2011-05-05 Thread Kesuke
Google limit the number of markers visible on a single page to ensure good performance. Over a few hundred markers and even a modern browser starts slowing down, so google seem to have settled on 200 as a practical limit. Could this be the reason why you are getting a random selection of markers?

[Google Maps API v3] Re: Basic Question about Google API configuration

2011-05-05 Thread Kesuke
> Thanks > > On May 5, 6:13 pm, Kesuke wrote: > > > > > This is the V3 group, is there any reason why you are using the > > deprecated V2 for this? This question would better be asked in the V2 > > group else people searching in the V3 group find the answers t

[Google Maps API v3] Re: Convert pixel position to latlng.

2011-05-05 Thread Kesuke
se gudermannian function but it is at this point my knowledge and understanding of maths is clutching at straws. Does anyone have such a function that I can copy paste into my code to convert a % latitute position on a square map into a trye latitude value? On May 5, 10:54 pm, Kesuke wrote: >

[Google Maps API v3] Re: Basic Question about Google API configuration

2011-05-05 Thread Kesuke
This is the V3 group, is there any reason why you are using the deprecated V2 for this? This question would better be asked in the V2 group else people searching in the V3 group find the answers to V2 questions and get confused (sorry to be pedantic!) - A few points though, you add your

[Google Maps API v3] Re: Convert pixel position to latlng.

2011-05-05 Thread Kesuke
Hate to bump, but someone must have done this as it's been asked here a lot before (just with no clear answer). I'm sure one of us has the maths for this ready to go. On May 2, 4:48 pm, Kesuke wrote: > How do I convert a pixel position to a latlng. I've searched and

[Google Maps API v3] Re: Tr.lời: Re: Bug in IE8: Overlay tiles are not transparent in IE8. Works fine in Chrome, Firefox and IE9.

2011-05-03 Thread Kesuke
I'm very glad this subject has come up again. From what I can see there are TWO types of opacity and confusion is arising from what we are all calling opacity; 1.) There is the files own opacity (alpha channel). 2.) There is the browsers opacity rendering. In v3.3 google said they fixed IE opacit

[Google Maps API v3] Re: Tiling performance for an animation

2011-05-03 Thread Kesuke
So probably best to stick with IMG elements for tiles if you want to > listen for that IMG onload event. > > Martin. > > On May 2, 11:29 pm, Kesuke wrote: > > > > > You could try adding an event handler for the 'tilesloaded' event. The > > V3 Referenc

[Google Maps API v3] Re: Tiling performance for an animation

2011-05-02 Thread Kesuke
#x27;m probably getting a little greedy at this point, but does > the API provide any mechanism for checking load status?  I am sure I > can come up w/some roundabout way to do this but I wasn't sure if > there might already be something in place. > > On May 2, 12:30 pm, Kesuk

[Google Maps API v3] Re: Question about TOS

2011-05-02 Thread Kesuke
I wouldn't use google maps for this purpose. Google maps is designed for displaying 2D representations of spherical data, and gets incredibly complex for this sort of purpose. Google 'Zoomify' instead - it is specifically designed to do what you want to do (display enormous images in a google-maps

[Google Maps API v3] Re: Tiling performance for an animation

2011-05-02 Thread Kesuke
I actually think your 'rough' version is quite quick - and I'm using an old 1.86Ghz/2Gb RAM laptop from ~ 2004. As a user I wouldn't be irrirated by its speed and am impressed by its performance. 1.) Use pngcrush or something similar to make your files as small as possible if you don't already. It

[Google Maps API v3] Convert pixel position to latlng.

2011-05-02 Thread Kesuke
How do I convert a pixel position to a latlng. I've searched and searched but its suprisingly hard to get a clear answer. For example, at zoom level 2 lets say I want to get the latlng of a position that is 40% along the x axis and 60% along the y-axis. So; 2^zoomlevel * 256 = 1024 pixel map. x

[Google Maps API v3] Re: Load ImageMapType tiles ONLY within defined bounds.

2011-04-03 Thread Kesuke
nt tile. > > > Converting coords to a GLatLngBounds object has been asked before: > > >https://groups.google.com/group/google-maps-js-api-v3/browse_frm/thre... > > >https://groups.google.com/group/google-maps-js-api-v3/browse_frm/thre... > > >https://groups.goog

[Google Maps API v3] Load ImageMapType tiles ONLY within defined bounds.

2011-04-02 Thread Kesuke
I am playing around with an idea, which involves ONLY loading ImageMapType tiles that lie within a defined area. So far I have created a simple map to test the idea using googles own traffic-data example of ImageMapsType. The test is here: http://bodymap.ukmedicalschools.com/test.html I have made

[Google Maps API v3] Anyone in touch with William

2011-03-05 Thread Kesuke
Bit off topic from maps - I was wondering if anyone is still in touch with William (http://groups.google.com/groups/profile? enc_user=cIvU0hYAAACNlgmCvDXWVdSjPCNpvywzo4cocwWvDVg2RHsu8f1bCg). He was pretty prolific in the group and helped a lot of people including me. Then all of a sudden stopped po

[Google Maps API v3] Re: Animate Radar Version 3

2010-10-31 Thread Kesuke
The problem with migrating the animation effect to V3 is that is doesn't support show/hide of tiles. You can add (insertAt) and remove (removeAt) custom tile layers but I'm not sure how that will work for performance - I actually couldn't get the animation to work on your V2 link using FF3.6 and IE

[Google Maps API v3] Re: Custom tiles in v3

2010-10-16 Thread Kesuke
On a side note - if you plan to use a large number of custom .png tiles on your map try using pngcrush (available from sourceforge). I was able to reduce 135mb of .png tiles down to 45mb - not bad for lossless compression. Faster load times + cheaper bandwidth. On Oct 15, 11:51 am, bory wrote: >

[Google Maps API v3] Re: Charset problems!

2010-09-14 Thread Kesuke
code is UTF-8 and ISO-8859 > isn't that old? Can't Google Maps handle UTF-8? > > On 14 Sep, 19:27, Kesuke wrote: > > > > > Try changing your MySQL dataset to ISO-8859-1 or Latin-1. > > > Can you also link us to the URL that is showing this. > > >

[Google Maps API v3] Re: Charset problems!

2010-09-14 Thread Kesuke
Try changing your MySQL dataset to ISO-8859-1 or Latin-1. Can you also link us to the URL that is showing this. On Sep 14, 6:22 pm, 3D-kreativ wrote: > Hi! > > I try to find why I get strange signs when i use swedish letters like > Å Ä Ö in the markers title? I get correct letters in infowindows

[Google Maps API v3] Re: Advanced Drawing

2010-09-14 Thread Kesuke
Depending on the size of the map I would consider rasterizing the tracks into transparent .pngs and doing a tile overlay. This will work in all browsers that support V3 and would also work much more consistently on devices with reduced processing abilities (like netbooks, tablets, smartphones etc.)

[Google Maps API v3] Re: Trying to understand KML Layers

2010-09-12 Thread Kesuke
This sounds like it might have exceeded the memory available to IE. I would test your app/map in the different browsers with taskmanager running to get an idea of how you are managing resources. If it turns out that you're clipping IE's memory you could try to run the map in a less intense way (e.g

[Google Maps API v3] Re: Show/Hide Overlays

2010-09-10 Thread Kesuke
have its control:false but its rules still evaluate)? Example: http://anatomy.study-medicine.co.uk/testk4.html On Aug 10, 11:38 pm, William wrote: > On Aug 9, 9:21 pm, Kesuke wrote: > > > > > The second problem is with the actual construction of the controller, > > I&

[Google Maps API v3] Re: IE very slow :(, Chrome fast :)) others not tested yet

2010-08-13 Thread Kesuke
On Aug 13, 7:08 am, Jurgis Stepanovs wrote: > Dear, all! > > Where there might be problem with IE? IE has an older javascript rendering engine so is not as fast as FF/ Webkit. IE9 is due out later this year and appears to be considerably faster (although it will be many years before we can stop s

[Google Maps API v3] Re: Map without wrapping

2010-08-11 Thread Kesuke
Background colour can be controlled by using the BackgroundColor (note US spelling) property. See http://code.google.com/apis/maps/documentation/javascript/reference.html#MapOptions. There are also style variables that alter other aspects of the map styling. There are loads of examples in the tuto

[Google Maps API v3] Re: update map when new entry in database

2010-08-11 Thread Kesuke
You might be able to do it without a full browser refresh, by creating a periodic function which runs every ~30 seconds. This would probably begin by clearing your existing markers from the map, then loading the new markers from their source again. Alternatively, a very easy (though less elegant)

[Google Maps API v3] Re: Map doesn't display

2010-08-10 Thread Kesuke
You are calling a style sheet for JQuery UI 1.8.4 but load JQuery UI 1.8.3, is that intentional? Also, though probably not the cause of the problem, it would help to clean up the document a bit. I would move your stylesheet links up so they are below the

[Google Maps API v3] Re: after the autocomplete, zoom and center

2010-08-10 Thread Kesuke
Can you provide us with a link to your code so far per http://groups.google.com/group/google-maps-js-api-v3/browse_thread/thread/2b3f101fd509919e On Aug 10, 4:47 pm, inotipiedideipitoni wrote: > Hi, i have a question. > > I have a input id named "autocomplete" that use a function of "jquery > ui

[Google Maps API v3] Re: Invalid Character %7B in IE8

2010-08-10 Thread Kesuke
Can you link to the map on your website that is experiencing the error? I cannot reproduce the error on XP+IE8 (v8.0.6001) with the sample page you linked. What OS + Browser version did you get this on? What exactly happens, does the map load at all? On Aug 10, 5:43 am, Don Green wrote: > I am

[Google Maps API v3] Re: How do i solve the stack overflow at line: 28 problem??

2010-08-10 Thread Kesuke
It would be orders of magnitude more useful if we could see your full code (HTML + JS + Anything else) in its entirety online - especially for something as bespoke as this. Can you also explain what the code is trying to accomplish? On Aug 10, 3:58 pm, "geocode...@gmail.com" wrote: > On Aug 10,

[Google Maps API v3] Re: Show/Hide Overlays

2010-08-09 Thread Kesuke
I'm having a bit of trouble getting this working, but its getting there slowly. The first problem is that some layers are subject to both ANY and ALL rules, and have different layer-lists for show and hide - but I think I can get around that by adding new properties for hide/show as the concept re

[Google Maps API v3] Re: Serious Memory Leak problems

2010-08-06 Thread Kesuke
I can also confirm this. In V2 we used to put onUnload="GUnload()" in the body tag, and if you look at the V2 'hello world' example (which includes the GUnload) you should notice that it does not have this memory issue. But I'm not aware of a V3 equivalent or workaround and have also seen effectiv

[Google Maps API v3] Re: Full screen on iphone

2010-08-06 Thread Kesuke
Can you provide a link to the webpage you are making. It's impossible for us to debug your code without seeing it. On Aug 6, 8:13 pm, "Stefano.pass" wrote: > Hi to all, I've a problem creating a web page for iPhone. > I need to create a web page with only a map div that fit all the > screen (w

[Google Maps API v3] Re: How to build a legend

2010-08-04 Thread Kesuke
1. Your map isn't working in IE (but is in Firefox). 2. The root to 'main.css' is broken (or the file is non-existent) which may well be causing some of your problems. 3. Try replacing your doctype with - to load in standards mode. Personally, I wouldn't link a css document for this. You're only

[Google Maps API v3] Re: Using HTML Checkboxes to toggle polylines on and off

2010-08-04 Thread Kesuke
I haven't tested this and am not very experienced with polylines, but one method might be to change their opacity to 0 when you want to hide them. As for checkboxs (I think OP means inside the same page - but outside the map div) thats simple HTML/Javascript. Add a checkbox input type, and give it

[Google Maps API v3] Re: Using HTML Checkboxes to toggle polylines on and off

2010-08-04 Thread Kesuke
I haven't tested this and am not very experienced with polylines, but one method might be to change their opacity to 0 when you want to hide them. As for checkboxs (I think OP means inside the same page - but outside the map div) thats simple HTML/Javascript. Add a checkbox input type, and give it

[Google Maps API v3] Re: Show/Hide Overlays

2010-08-01 Thread Kesuke
I've got the new layers I spoke about online to allow for more testing of the method. Rather than go into detail here about what I've done, I've created an explanation here: http://anatomy.study-medicine.co.uk/update.html And you can see where the map is at so far, here: http://anatomy.study-medi

[Google Maps API v3] Re: Still confused if I need an API key

2010-07-30 Thread Kesuke
Presumably the ToS covers all active versions of the map API, including V2 - which would explain why that section remains in there. Also, V2 was deprecated on the 19.5.09, and that was only last updated on the 27.5.09 so its possible that it just hasn't been updated yet to make clear how exactly s

[Google Maps API v3] Re: Still confused if I need an API key

2010-07-30 Thread Kesuke
On Jul 30, 5:01 pm, Anya wrote: > I tried searching this discussion group and read the documentation and > terms of service about the use of API keys. I am still confused. The > front page of JavaScript API V3 clearly says that this version no > longer requires API key, but all the legal document

[Google Maps API v3] Re: maps.google.com shadow effect

2010-07-29 Thread Kesuke
On Jul 29, 4:38 pm, jmdall wrote: > The problem is that you can't interact with the maps, for example if > you have a marker under the shadow right ? So the shadow need to be as > small as possible. Yes, that would be an issue. Ultimately I decided not to use the shadows for aesthetic reasons. Ho

[Google Maps API v3] Re: Show/Hide Overlays

2010-07-29 Thread Kesuke
On Jul 29, 4:40 am, William wrote: > I imagine if you want to view layer B when layer A is visible, > and if parts of B are above A and parts below A, then A needs > to become two layers C and D, to be displayed in order C,B,D. This controller idea sounds perfect, and your absolutely right about

[Google Maps API v3] Re: Show/Hide Overlays

2010-07-29 Thread Kesuke
On Jul 29, 4:40 am, William wrote: > I imagine if you want to view layer B when layer A is visible, > and if parts of B are above A and parts below A, then A needs > to become two layers C and D, to be displayed in order C,B,D. This controller idea sounds perfect, and your absolutely right about

[Google Maps API v3] Re: Show/Hide Overlays

2010-07-28 Thread Kesuke
Thanks William, this is amazingly useful and particularly creative! I'm very optimistic about your concept as it removes a lot of the complexity from loading the many layers. In the next few days I plan to upload tiles for each of the ~30 layers in the head region. This way I'll have some additiona

[Google Maps API v3] Re: maps.google.com shadow effect

2010-07-28 Thread Kesuke
e z-index propertyhttp://www.w3schools.com/css/pr_pos_z-index.asp > or a div element within the map element. > > On Jul 28, 10:06 am, Kesuke wrote: > > > > > Onhttp://maps.google.com, the map container has a small ~5px drop > > shadow running the length of the top

[Google Maps API v3] maps.google.com shadow effect

2010-07-28 Thread Kesuke
On http://maps.google.com, the map container has a small ~5px drop shadow running the length of the top and left sides. My guess is its a simple .png with transparency judging by how it reacts with the map. Any ideas how they achieved this? - making the .png image is easy enough, but how did they

[Google Maps API v3] Re: Thank you all - v2 map viewer upgraded to v3. Comment on browser detect.

2010-07-25 Thread Kesuke
rote: > On Jul 25, 5:26 am, Kesuke wrote: > > > Personally I like broswer detection scripts. I use a 'high-standards' > > version, where I won't accept anything below firefox 3, IE8 and > > similar. The key thing is to make sure you direct people to a messag

[Google Maps API v3] Re: Thank you all - v2 map viewer upgraded to v3. Comment on browser detect.

2010-07-25 Thread Kesuke
Personally I like broswer detection scripts. I use a 'high-standards' version, where I won't accept anything below firefox 3, IE8 and similar. The key thing is to make sure you direct people to a message explaining why they weren't able to see your site and how they can upgrade (rather than just st

[Google Maps API v3] Re: Zoom Buttons Not Disappearing

2010-07-24 Thread Kesuke
use these in your map options instead: mapTypeControl: false, navigationControl: false, If you want to re-enable the controls later, you can probably just make a button or event and get it to call a function like; function enableUI(){ map.setOptions({ navigationControl: true, mapTy

[Google Maps API v3] Re: It works but I think I have 2 extra lines of code!

2010-07-24 Thread Kesuke
position: geoloc }); On Jul 25, 1:21 am, "geocode...@gmail.com" wrote: > On Jul 24, 5:10 pm, slindsey3000 wrote: > > > Thank you for responses. @William... tried that before didn't work. > > Seems it needs code in top part. > > > @Kesuke

[Google Maps API v3] Re: Problem with opacity for ImageMapType in Internet Explorer (IE)

2010-07-24 Thread Kesuke
Are you both talking about the same problem? - I understood the OP to be talking about a problem where he wants the directions overlay to have 50% opacity. But this only seems to work when its in compatability view. Viewing the example in firefox you can see the overlay is at 50% opacity and is ver

[Google Maps API v3] Re: Show/Hide Overlays

2010-07-24 Thread Kesuke
The layers have a z-index heirarchy, so the lowest elements (e.g. the skeleton) do not appear above higher elements (e.g. the skin). If I have understood your question, you mean could I create a linear heirarchy where for example everything above a certain point could be switched off? But there ar

[Google Maps API v3] Re: It works but I think I have 2 extra lines of code!

2010-07-23 Thread Kesuke
You fundamentally need the part you "don't want" especially map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); That line effectively creates the map and connects it to the target div (#map_canvas). Then your later statements feed into it to tell it more precisely what yo

[Google Maps API v3] Re: Size of map in %s

2010-07-23 Thread Kesuke
I use something like this code on my map to handle resize events, it will probably need modification to achieve the exact results you want but the concept is applicable; // when the broswer is resized trigger function window.onresize = function(){ // find the center of the map (see why lat

[Google Maps API v3] Re: Show/Hide Overlays

2010-07-23 Thread Kesuke
commas so that we can > split them apart and add/remove the layer as needed. This might help you? > > The code might be a little confusing if you're not familiar with jQuery but > it's pretty self explanatory. Let me know if I need to explain further. > > > > On We

[Google Maps API v3] Re: Help with Automatic File Cutter and Alignment tool

2010-07-22 Thread Kesuke
Hi browndash, your problems relate to your use/understanding of zoom levels. Google.maps displays the world as a cascade of square tiles. Each zoom level is made up of these square tiles, increasing by a power of 2 each time. So; Zoom level 0 = 1 tile (1 by 1) (the entire world is made up from on

[Google Maps API v3] Re: Show/Hide Overlays

2010-07-21 Thread Kesuke
gt; not the most elegant solution, but it seems to work. > > > > On Wed, Jul 21, 2010 at 8:47 AM, Kesuke wrote: > > Thanks for the suggestions, however I'm having two major problems with > > this approach; > > > 1.) It works the first time its clicked, but I

[Google Maps API v3] Re: Show/Hide Overlays

2010-07-21 Thread Kesuke
Thanks for the suggestions, however I'm having two major problems with this approach; 1.) It works the first time its clicked, but I think its trying to insertAt or removeAt where objects have already been removed. I'm wondering if when an element is 'removeAt', everything moves down the MCV array

[Google Maps API v3] Show/Hide Overlays

2010-07-21 Thread Kesuke
I'm moving a project from V2 to V3 and am having some trouble showing and hiding custom overlays (added using overlayMapTypes). In V2 it was a pretty straightforward job of using the show() and hide() methods that were part of the GLayer class. But in V3 i'm not sure how to go about the same thing

[Google Maps API v3] Re: "Background color for googlemap"

2010-07-21 Thread Kesuke
var myOptions = { zoom: 2, center: latlng, mapTypeId: google.maps.MapTypeId.ROADMAP, backgroundColor: '#FF' }; In V3, use the backgroundColor property (note the 'color' spelling if you're from the UK) and give it a color code as a string. Search the API reference for more info. However, you ca