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

2011-07-29 Thread John Coryat


On Friday, July 29, 2011 6:20:03 PM UTC-5, Jason wrote:
>
> Sorry for the noob question but does this require any other 
> configuration changes (ie. htaccess)? I've included this in my 
> index.html and it is still showing 404 errors in Chrome. 
>
> Thanks 
>
>
You'll have to be more specific. What did you try? What's the URL of your 
map? 

-John Coryat 

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-js-api-v3/-/lXUg11ct0YkJ.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



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

2011-07-29 Thread Jason
Sorry for the noob question but does this require any other
configuration changes (ie. htaccess)? I've included this in my
index.html and it is still showing 404 errors in Chrome.

Thanks

On Jul 29, 2:19 pm, Barry Hunter  wrote:
> 
> $filename = 
> "tiles/".intval($_GET['z'])."/".intval($_GET['x'])."/".intval($_GET['y']).".png";
>
> header("Content-Type: image/png");
> header("Cache-Control: max-age=84600");
>
> if (file_exists($filename)) {
>   header("Content-Length: ".filesize($filename));
>   readfile($filename);} else {
>
>   header("Content-Length: 95");
>   readfile("transparent1x1.png");
>
> }
>
> Change to suit your needs.
>
> On Fri, Jul 29, 2011 at 4:52 PM, Jason  wrote:
> > Does anyone know of a page or an example where this is done with PHP?
> > Makes sense but I haven't done much PHP.
>
> > Thanks
>
> > On Jul 28, 11:40 pm, Martin™  wrote:
> >> Why not make all tile requests to a PHP script?
>
> >> The script can check if the requested tile exists.
> >> If the tile exists then the script can return it to the map, otherwise
> >> it can return a blank transparent tile.
>
> >>http://php.net/manual/en/function.file-exists.php
>
> >>http://www.php.net/manual/en/function.file-get-contents.php
>
> >> A transparent 1 x 1 pixel PNG image can be used where there is no tile
> >> and that could be as small as 95 bytes:
>
> >>http://code.martinpearman.co.uk/deleteme/transparent_1x1.png
>
> >> Martin.
>
> >> On Jul 28, 1:28 pm, Jason  wrote:
>
> >> > I'd really like to know a fix for this too. It's been a problem for me
> >> > for quite a while and I can't easily get write permission
> >> > to .htaccess.
>
> >> > On Jul 27, 1:46 pm, Kesuke  wrote:
>
> >> > > 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 + ".png";
> >> > >       },
> >> > >       tileSize: new google.maps.Size(256, 256),
> >> > >       isPng: true,
> >> > >       opacity: opacityvalue
> >> > >     });
> >> > >   }
>
> >> > > Here is the problem: My map uses lots of transparent PNG tiles, and
> >> > > infact some tiles are completely transparent. So rather than have
> >> > > thousands of 3kb empty PNG files, I just don’t have those tiles.
>
> >> > > This works but it technically generates a lot of 404 bad request
> >> > > errors. An average user visit can make as many as 300 bad requests.
> >> > > This really hurts page load time and also looks bad for search
> >> > > engines.
>
> >> > > So, does anyone have an idea how I could only fetch tiles that
> >> > > actually exist?
>
> >> > > One other idea I have had is could I setup an .htaccess rule that
> >> > > redirects to a universal empty PNG file for any tile that can’t be
> >> > > found (so it doesn’t return a bad request).
>
> >> > > I don’t want to generate empty tiles as I have over 130 custom tile
> >> > > overlays for zoom levels 1 through 5. Just at zoom level 5 that would
> >> > > be something like 140,000 files and my server is limited.
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Google Maps JavaScript API v3" group.
> > To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > google-maps-js-api-v3+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/google-maps-js-api-v3?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



[Google Maps API v3] Re: disable 45 degree view

2011-07-29 Thread JKurtock
Have you tried the setTilt method?
http://code.google.com/intl/en/apis/maps/documentation/javascript/maptypes.html#Enabling45DegreeImagery
Does that not work?

- Jeff

On Jul 28, 8:41 pm, rich  wrote:
> the api says:
>
> "The existing google.maps.MapTypeId.SATELLITE and
> google.maps.MapTypeId.HYBRID map types support 45° perspective imagery at
> high zoom levels (where available) provided that you explicitly enable this
> functionality."
>
> I don't think I have 'explicitly enabled' the functionality, yet it is
> appearing on my maps.
>
> I dont' want it; how can I explicitly DISABLE it?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



[Google Maps API v3] Re: how to access overlay argument in v3

2011-07-29 Thread JKurtock
The documentation 
http://code.google.com/intl/en/apis/maps/documentation/javascript/events.html
for V3 says that only a single argument is sent to your event handler
(the only one I've actually researched is the click event, which as
the documentation says passes a mouseEvent, with a latLng property,
and nothing else).

If you want to handle click events on overlays separately (the first
argument in V2 is a GOverlay object, which you appear to refer to as
"section"), you can just attach a event handler directly to each
overlay.

- Jeff

On Jul 29, 7:43 am, mariovi  wrote:
> Hi, I have the following code in v2:
>
> mylistener = GEvent.addListener(map2,'click',mapClick);
> ..
> ..
>
> function mapClick(section, clickedPoint){
> 
> if (section == null))
> 
>
> }
>
> As you can see, I use the argument section in my application,
> In v3, I have:
>
>         google.maps.event.addListener(map2, 'click', mapClick);
>
> function mapClick(???
> I tried as in v2, but it doesnt work
> thanks a lot
> mariovi

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



Re: [Google Maps API v3] Re: their different between the google maps and the api i got why?

2011-07-29 Thread Andrew Leach
On 29 July 2011 19:46, Sa3Q  wrote:
> ok i found the problem  appear from  license .  but if have coreldraw
> file that descrip roads in this area how can i overlays it . thank
> you

By asking a question with a relevant subject line, rather like this
one: 
http://groups.google.com/group/google-maps-js-api-v3/browse_thread/thread/ee4f7547f44d9eb8#
-- I expect you might get some sort of answer there in due course.

It's not good practice to muddle threads and queries: it doesn't help
other people find the answers they may be looking for.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



[Google Maps API v3] Re: their different between the google maps and the api i got why?

2011-07-29 Thread Sa3Q
ok i found the problem  appear from  license .  but if have coreldraw
file that descrip roads in this area how can i overlays it . thank
you
--

On Jul 29, 8:09 pm, Rossko  wrote:
> >  i didn't found any details their .. why ???
>
> See other postings in this group for this 
> areahttp://groups.google.com/group/google-maps-js-api-v3/search?group=goo...

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



[Google Maps API v3] Printing Problem using Markers With Labels

2011-07-29 Thread elc
 

I am using Google Maps v3 and I am showing makers with labels by using the 
class " MarkerWithLabel".  When printing using Internet Explorer version 7, 
the text will not show.  I have checked Firefox and there is no printing 
problem.  At one time the printing was working.

I have looked at the Google Example " 
http://google-maps-utility-library-v3.googlecode.com/svn/tags/markerwithlabel/1.1/examples/basic.html";
 
and it has the same printing problem in the Internet Explorer browser.

Does anyone have a solution?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-js-api-v3/-/ZPPUeudhXesJ.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



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

2011-07-29 Thread John Coryat
One advantage of using a tile server is you can add some security to your 
tile requests. 

In my experience, anything not protected will eventually be abused by 
someone or something. Adding a simple layer of security, such as a key code 
or even a simple algorithm like Google uses, will keep the unauthorized from 
abusing your bandwidth and intellectual property. Of course, anyone 
sufficiently motivated will figure out how to bypass any security measure 
but by doing at least a single level of security, you're indicating you 
don't want to be abused and that often is enough to keep the problem under 
control.

-John Coryat

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-js-api-v3/-/pmmh3I_g3NAJ.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



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

2011-07-29 Thread Barry Hunter
 wrote:
> Does anyone know of a page or an example where this is done with PHP?
> Makes sense but I haven't done much PHP.
>
> Thanks
>
> On Jul 28, 11:40 pm, Martin™  wrote:
>> Why not make all tile requests to a PHP script?
>>
>> The script can check if the requested tile exists.
>> If the tile exists then the script can return it to the map, otherwise
>> it can return a blank transparent tile.
>>
>> http://php.net/manual/en/function.file-exists.php
>>
>> http://www.php.net/manual/en/function.file-get-contents.php
>>
>> A transparent 1 x 1 pixel PNG image can be used where there is no tile
>> and that could be as small as 95 bytes:
>>
>> http://code.martinpearman.co.uk/deleteme/transparent_1x1.png
>>
>> Martin.
>>
>> On Jul 28, 1:28 pm, Jason  wrote:
>>
>> > I'd really like to know a fix for this too. It's been a problem for me
>> > for quite a while and I can't easily get write permission
>> > to .htaccess.
>>
>> > On Jul 27, 1:46 pm, Kesuke  wrote:
>>
>> > > 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 + ".png";
>> > >       },
>> > >       tileSize: new google.maps.Size(256, 256),
>> > >       isPng: true,
>> > >       opacity: opacityvalue
>> > >     });
>> > >   }
>>
>> > > Here is the problem: My map uses lots of transparent PNG tiles, and
>> > > infact some tiles are completely transparent. So rather than have
>> > > thousands of 3kb empty PNG files, I just don’t have those tiles.
>>
>> > > This works but it technically generates a lot of 404 bad request
>> > > errors. An average user visit can make as many as 300 bad requests.
>> > > This really hurts page load time and also looks bad for search
>> > > engines.
>>
>> > > So, does anyone have an idea how I could only fetch tiles that
>> > > actually exist?
>>
>> > > One other idea I have had is could I setup an .htaccess rule that
>> > > redirects to a universal empty PNG file for any tile that can’t be
>> > > found (so it doesn’t return a bad request).
>>
>> > > I don’t want to generate empty tiles as I have over 130 custom tile
>> > > overlays for zoom levels 1 through 5. Just at zoom level 5 that would
>> > > be something like 140,000 files and my server is limited.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Maps JavaScript API v3" group.
> To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-maps-js-api-v3+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-maps-js-api-v3?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



[Google Maps API v3] dropdownmenu in infowindow doesn't work in FF

2011-07-29 Thread Nico Oudshoorn
go to this page http://www.meerijden.nu/ritinvoerenmaps.php?codet=en and 
enter rideshare to and from city and click on one of the icons in the map. 
The dropdown menu's in the infowindow act strange and doesn't work. In IE 
and chrome there is no problem. I work with api 3.4.
 
Anu suggestions? 

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-js-api-v3/-/vpWZR-3LR3sJ.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



[Google Maps API v3] Re: Direction Service Request problem

2011-07-29 Thread Rossko
> Can anyone tell me any idea to solve this problem?

You might implement a queue.
Send a request for the first item in the queue.
When the response comes, process it.
Remove the completed item from the queue.
Look to see if there is  a next request in the queue, and send that.

Beware of the terms of use, regarding displaying Directions results
and saving data extracted from results.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



[Google Maps API v3] Re: Display all the lats and longs in my mysql tables.

2011-07-29 Thread Rossko
> I would be very thankful if someone help me solve my problem . which is I
> have website to display all retailer's in one map.
> providing the google map api with each retailer longitude and latitude . how
> to do that ?

http://code.google.com/apis/maps/articles/phpsqlajax_v3.html

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



[Google Maps API v3] Re: can i change the thickness of the border on a google.maps.Circle

2011-07-29 Thread Rossko
> subject pretty well says it all.
> I would like to change the thickness of the google.maps.Circle border

You could always try the documentation
http://code.google.com/apis/maps/documentation/javascript/overlays.html#Circles
strokeWeight option looks promising
http://code.google.com/apis/maps/documentation/javascript/reference.html#CircleOptions

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



[Google Maps API v3] Re: their different between the google maps and the api i got why?

2011-07-29 Thread Rossko
>  i didn't found any details their .. why ???

See other postings in this group for this area
http://groups.google.com/group/google-maps-js-api-v3/search?group=google-maps-js-api-v3&q=israel&qt_g=Search+this+group

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



[Google Maps API v3] i have CorelDrow map how can overlays it ??

2011-07-29 Thread Sa3Q
Hi

that's it in which  type i must save it to  overlays it on  the google
maps. I don't to save it like  jpg or any  thing like this because the
file size is 12MB and if i want to save it JPG it will be very large
and appear not reliable.

thank you

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



[Google Maps API v3] their different between the google maps and the api i got why?

2011-07-29 Thread Sa3Q
Hi,

If you open  maps.google.com  on  this position  31.522032,34.446809
(RoadMap)

http://maps.google.com/maps/ms?doflg=ptk&ie=UTF8&hl=en&oe=UTF8&msa=0&msid=214978957104795364684.0004a931553d55aed1c20&z=13&iwloc=0004a93155436fa75f682


  you will  find  some  details for the roads and buildings  but if
you  opened this page that i  got from  api  example for the same
place of  31.522032,34.446809 (online) http://fadyhere.com/~mft1net/gm/1.html
 i didn't found any details their .. why ???

thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



[Google Maps API v3] can i change the thickness of the border on a google.maps.Circle

2011-07-29 Thread randyp
subject pretty well says it all.
I would like to change the thickness of the google.maps.Circle border

thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-js-api-v3/-/1WtdSmKp0vIJ.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



[Google Maps API v3] BindTo Polygon

2011-07-29 Thread shah
I am drawing a polygon on map which will allow users to modify the
area of polygon by resizing the vertex.
When the path for polygon changes , I want to change the center point
of the polygon as well, which currently resides as a marker.

Is there a way to use MVCArray bindto concept for changing the
marker's position when the polygon path changes.

Thanks,
Shah

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



[Google Maps API v3] 3D-Environment in Streetview

2011-07-29 Thread Andreas Schwersenz
Hi,

there seems to be some information about the surrounding buildings within a 
Streetview panorama. My cursor changes whether I'm over the street or the 
wall of a building etc. Is there a way to get this information – where does 
the street end, where are walls of buildings, ... – vie the API?

Thanks
Andreas

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-js-api-v3/-/2B5uDQFIIDcJ.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



[Google Maps API v3] Display all the lats and longs in my mysql tables.

2011-07-29 Thread Alsaket
Hello All, 
I would be very thankful if someone help me solve my problem . which is I 
have website to display all retailer's in one map.
providing the google map api with each retailer longitude and latitude . how 
to do that ?
Thank you in advance

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-js-api-v3/-/4Maf_L5QGNAJ.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



[Google Maps API v3] Direction Service Request problem

2011-07-29 Thread Carlos Cabanes
Hello, 
First sorry about my English...

I´m working in a application using DirectionServices. I need to  know the 
distance betwen a cup of points.
Mi problem is that I have a For bucle in my javascript source and I send the 
route in DirectionService.route().  After that I use the response 
(DirectionResutl) to analice the legs and steps about the route.

I know the response of this function is asyncronous, and I only can save 
data if I use an alert message after every route, but It can be a solution 
because I have a lot of points to study. If i dont stop the application, the 
javascript code run faster than the google response and the appiclation dont 
work.

Can anyone tell me any idea to solve this problem?

Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-js-api-v3/-/TtulsXoWwdAJ.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



[Google Maps API v3] disable 45 degree view

2011-07-29 Thread rich
the api says: 

"The existing google.maps.MapTypeId.SATELLITE and 
google.maps.MapTypeId.HYBRID map types support 45° perspective imagery at 
high zoom levels (where available) provided that you explicitly enable this 
functionality."

I don't think I have 'explicitly enabled' the functionality, yet it is 
appearing on my maps. 

I dont' want it; how can I explicitly DISABLE it?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-js-api-v3/-/jH-tuT0V960J.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



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

2011-07-29 Thread Jason
Does anyone know of a page or an example where this is done with PHP?
Makes sense but I haven't done much PHP.

Thanks

On Jul 28, 11:40 pm, Martin™  wrote:
> Why not make all tile requests to a PHP script?
>
> The script can check if the requested tile exists.
> If the tile exists then the script can return it to the map, otherwise
> it can return a blank transparent tile.
>
> http://php.net/manual/en/function.file-exists.php
>
> http://www.php.net/manual/en/function.file-get-contents.php
>
> A transparent 1 x 1 pixel PNG image can be used where there is no tile
> and that could be as small as 95 bytes:
>
> http://code.martinpearman.co.uk/deleteme/transparent_1x1.png
>
> Martin.
>
> On Jul 28, 1:28 pm, Jason  wrote:
>
> > I'd really like to know a fix for this too. It's been a problem for me
> > for quite a while and I can't easily get write permission
> > to .htaccess.
>
> > On Jul 27, 1:46 pm, Kesuke  wrote:
>
> > > 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 + ".png";
> > >       },
> > >       tileSize: new google.maps.Size(256, 256),
> > >       isPng: true,
> > >       opacity: opacityvalue
> > >     });
> > >   }
>
> > > Here is the problem: My map uses lots of transparent PNG tiles, and
> > > infact some tiles are completely transparent. So rather than have
> > > thousands of 3kb empty PNG files, I just don’t have those tiles.
>
> > > This works but it technically generates a lot of 404 bad request
> > > errors. An average user visit can make as many as 300 bad requests.
> > > This really hurts page load time and also looks bad for search
> > > engines.
>
> > > So, does anyone have an idea how I could only fetch tiles that
> > > actually exist?
>
> > > One other idea I have had is could I setup an .htaccess rule that
> > > redirects to a universal empty PNG file for any tile that can’t be
> > > found (so it doesn’t return a bad request).
>
> > > I don’t want to generate empty tiles as I have over 130 custom tile
> > > overlays for zoom levels 1 through 5. Just at zoom level 5 that would
> > > be something like 140,000 files and my server is limited.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



[Google Maps API v3] how to access overlay argument in v3

2011-07-29 Thread mariovi
Hi, I have the following code in v2:

mylistener = GEvent.addListener(map2,'click',mapClick);
..
..

function mapClick(section, clickedPoint){

if (section == null))

}

As you can see, I use the argument section in my application,
In v3, I have:

google.maps.event.addListener(map2, 'click', mapClick);

function mapClick(???
I tried as in v2, but it doesnt work
thanks a lot
mariovi

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



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

2011-07-29 Thread Barry Hunter
On Fri, Jul 29, 2011 at 11:05 AM, Martin™  wrote:
> Just a thought.
>
> Will a browser cache tiles served via a server-side script or not?

It can. Needs the script to set the right caching headers.

At one time many proxies wouldnt cache a request with a ? in it. But
most now do, when they have the proper cache headers. The browser
cache doesnt care about the ?, it would cache it anyway.


>
> Any idea?
>
> Martin.
>
>
> On Jul 29, 5:43 am, John Coryat  wrote:
>> Martin's suggestion is the standard way of doing it. Make a tile server that
>> does this simple function and you'll notice your server runs faster.
>> Processing a 404 is time consuming.
>>
>> If you'd like to see a Perl example, 
>> seehttp://www.usnaviguide.com/ws-2008-02- look for download.zip
>>
>> -John Coryat
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Maps JavaScript API v3" group.
> To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-maps-js-api-v3+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-maps-js-api-v3?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



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

2011-07-29 Thread Barry Hunter
>
> One other idea I have had is could I setup an .htaccess rule that
> redirects to a universal empty PNG file for any tile that can’t be
> found (so it doesn’t return a bad request).

Thats what I do. In my experience its lighter weight than using a
custom handler (say php)

Use the rewrite engine to perform the redirect, rather than a
ErrorDocument, that has too much overhead.


RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /img/transparent_1x1.png [L]

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



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

2011-07-29 Thread Martin™
Just a thought.

Will a browser cache tiles served via a server-side script or not?

Any idea?

Martin.


On Jul 29, 5:43 am, John Coryat  wrote:
> Martin's suggestion is the standard way of doing it. Make a tile server that
> does this simple function and you'll notice your server runs faster.
> Processing a 404 is time consuming.
>
> If you'd like to see a Perl example, 
> seehttp://www.usnaviguide.com/ws-2008-02- look for download.zip
>
> -John Coryat

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



[Google Maps API v3] Re: Problem implementing mapTypeIds

2011-07-29 Thread en4ce
i never liked this behavior, best is you do a custom map type
control... there should be a lot of easy to understand tutorials =)

On 28 Jul., 23:31, William  wrote:
> On Jul 29, 2:07 am, dondmcg  wrote:
>
> > I am trying to simply add
> > TERRAIN to the controls of my map
> >http://staging.nybg.org/science/geographic-area-programs.php
>
> > But no matter what I try I still only get the default roadmap and
> > satellite.
>
> on your map, when you select the roadmap maptype, then "Terrain" is
> available as a tickbox under the "Map".
>
> I think V3.3 is the only current version which still shows Terrain as
> separate button.
>
> But I'd expect V3.3 to be retired soon, with the schedule for the next
> release due early in August?
>
> ...

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.