[Google Maps API v3] Re: Default control zoom buttons don't send zoom_changed event

2010-09-13 Thread Ron
Answered own question: need a listener on bounds_changed to detect
scale changes made using the controls as opposed to mouse wheel and
double clicks.  Seems a bit pedantic.

On Sep 14, 3:40 pm, Ron  wrote:
> My map has the default controls, plus streetViewControl.  I have
> listeners for zoom_changed and center_changed which do 
> when called.
>
> Panning with the mouse, zooming with the mouse wheel, and panning with
> the NSEW control gizmo all invoke my listeners as expected. Changing
> the scale with the '+', '-', and slider bar do the zoom, but don't
> appear to send a zoom_changed event that is seen by my listeners.  Am
> I missing something in the configuration? Do these controls require a
> different listener?

-- 
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...@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] Overlayview not precise? Problem.

2010-09-13 Thread Erwin Quinto
Mine also looks fine when i tried to view http://nikolajp.dk/test.htm

On Tue, Sep 14, 2010 at 2:37 AM, nikolajp  wrote:

> I have an issue with using the OverlayView.
>
> My problem is, that the overlay image is not shown at the same place
> when using close to the max zoom.
> It's like the image is moving downwards on the y-axis - and the only
> thing I'm doing is zooming.
>
> I have followed the example and copied it with smaller alterations.
> The overlay image is around africa (same as the example from google).
>
> http://nikolajp.dk/test.htm
>
> Pan to afrcia.
> Notice how the rectangle is showing far below the africa-tip, when
> zoomed out completely.
> In other examples I did, my images did the same thing using zoom
> levels close to max.
>
> I have not changed the example code, except for another bounds for the
> rectangle.
>
> Any ideas why this is going wrong?
>
> .nikolajp
>
> --
> 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...@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...@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] Default control zoom buttons don't send zoom_changed event

2010-09-13 Thread Ron
My map has the default controls, plus streetViewControl.  I have
listeners for zoom_changed and center_changed which do 
when called.

Panning with the mouse, zooming with the mouse wheel, and panning with
the NSEW control gizmo all invoke my listeners as expected. Changing
the scale with the '+', '-', and slider bar do the zoom, but don't
appear to send a zoom_changed event that is seen by my listeners.  Am
I missing something in the configuration? Do these controls require a
different listener?

-- 
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...@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] KML file not displayed

2010-09-13 Thread James McGill
Your KML file 404's for me.

Regards,
James

On Tue, Sep 14, 2010 at 10:20 AM, WebEngineer  wrote:
> I am very new at Google Maps.
>
> I am trying to load a custom KML file in my site at Violette.com. I
> used the example for KmlLayer from the API web site and am able to
> display the example file shown there (cta.kml) as long as I request it
> from the same source shown in the example. I have downloaded and saved
> cta.kml in a folder at my web site but it will not display if called
> from there. The file is saved at http://violette.com/MapFiles/cta.kml.
>
> Test can be seen at http://violette.com/TestMap.aspx
>
> What could be wrong?
>
> --
> 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...@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...@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] KML file not displayed

2010-09-13 Thread WebEngineer
I am very new at Google Maps.

I am trying to load a custom KML file in my site at Violette.com. I
used the example for KmlLayer from the API web site and am able to
display the example file shown there (cta.kml) as long as I request it
from the same source shown in the example. I have downloaded and saved
cta.kml in a folder at my web site but it will not display if called
from there. The file is saved at http://violette.com/MapFiles/cta.kml.

Test can be seen at http://violette.com/TestMap.aspx

What could be wrong?

-- 
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...@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] 2010/09/14: New Release

2010-09-13 Thread Luke (Google Employee)
Hey everyone!

We've recently pushed out a new version of the API.  See the list of
changes below:
http://code.google.com/p/gmaps-api-issues/wiki/JavascriptMapsAPIv3Changelog

3.2 September 14th

Changed issues:
  * Issue 157: Support draggable driving directions
  * Issue 1852: 'rightclick' event on a google.maps.Marker is fired up
without an event
  * Issue 2673: Pegman disappears after position change

Noticeable changes:
  * Marker performance has been improved

Please test and provide feedback.

Thanks

- Luke

-- 
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...@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: Anchor setting of MarkerImage does not work

2010-09-13 Thread Chad Killingsworth
A link to your map would help instead of posting the code.

Chad Killingsworth

On Sep 13, 8:25 am, Martin Matysiak  wrote:
> Hello everybody,
>
> I have a problem with using the MarkerImages in Google Maps API V3.
> Please take a look at this picture:
>
> http://k621.de/Files/anchorProb.png
>
> The MarkerImage (the red circle) should be positioned with the center
> on the end of the blue path. The black outline is the size of the
> MarkerImage-graphic used. Although I set the anchor point when
> creating the image, the maps application still uses the bottom middle
> as an anchor point.
>
> Here is the code used when generating the Marker:
>
> ---
>
> function getDeviceIcon(online) {
>     return new google.maps.MarkerImage("./images/device/device_"+
> (online? "0" : "off") +".png",
>                 new google.maps.Size(32, 32),
>                 new google.maps.Point(0, 0),
>                 new google.maps.Point(12, 15)  // These are the coordinates 
> of the
> circle's center
>         );
>
> }
>
> [...]
>
> markerOptions = { icon : getDeviceIcon(isOnline() ?
> 'true' : 'false'; ?>),
>         title : "name; ?>",
>         map : map,
>         position : new google.maps.LatLng(getPosition()-
>
> >latitude.', '.$dev->getPosition()->longitude; ?>)
> };
>
> marker = new google.maps.Marker(markerOptions);
>
> ---
>
> Any ideas?

-- 
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...@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: Overlayview not precise? Problem.

2010-09-13 Thread Grok Lobster
Looks fine to me.

On Sep 13, 11:37 am, nikolajp  wrote:
> I have an issue with using the OverlayView.
>
> My problem is, that the overlay image is not shown at the same place
> when using close to the max zoom.
> It's like the image is moving downwards on the y-axis - and the only
> thing I'm doing is zooming.
>
> I have followed the example and copied it with smaller alterations.
> The overlay image is around africa (same as the example from google).
>
> http://nikolajp.dk/test.htm
>
> Pan to afrcia.
> Notice how the rectangle is showing far below the africa-tip, when
> zoomed out completely.
> In other examples I did, my images did the same thing using zoom
> levels close to max.
>
> I have not changed the example code, except for another bounds for the
> rectangle.
>
> Any ideas why this is going wrong?
>
> .nikolajp

-- 
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...@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: ProjectOverlay.js and AlphaImageLoader Filter

2010-09-13 Thread Maps.Huge.Info (Google Maps API Guru)
I'm not big on IE but as far as I know, that ability is coded into the
code now. Could you provide a link with the problem?

Does the sample map show this problem too? What version of IE are you
seeing the difficulty with?

-John Coryat

http://maps.huge.info

http://www.usnaviguide.com

http://www.zipmaps.net

-- 
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...@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: getPanes() alternative solutions.

2010-09-13 Thread Esa
You could hack the DOM to access the floatPane where infoWindow
resides. But how can you position your custom info window in the pane
that moves when map is dragged?

By OverlayView you get access to the panes and to the projection
object that has fromLatLngToDivPixel() method.

You can create an invisible dummy OverlayView for the purpose:

function getOverlayView(map){
  var ov = new google.maps.OverlayView();
  ov.onAdd = function(){};
  ov.draw = function(){};
  ov.onRemove = function(){};
  ov.setMap(map);
  return ov;
}

Now you can access the info window pane by:

  getOverlayView(map).getPanes().floatPane;

And get the pixel point for a location:

  getOverlayView(map).getProjection().fromLatLngToDivPixel(LatLng) ;

The function calls should not be made until the DOM is fully
initialized.

-- 
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...@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: converting v2 to v3

2010-09-13 Thread Nathan Raley
Biggest difference I found when moving over was that anything that was
previously G... like GMarker is no longer shorthanded and is now defined as
google.maps.Marker.  Same goes for just about everything.  Other than that
some of the changes are pretty significant and others not so much.  All in
all it really depends on how big your code that was using the v2 of the API
is.

On Mon, Sep 13, 2010 at 4:42 PM, geocode...@gmail.com
wrote:

> On Sep 13, 1:01 pm, knowicka  wrote:
> > hi!
> > is there a quick way to convert code which includes api v2 function to
> > api v3.
>
> Not really.  To first order, change the G* namespace to google.maps.*
> (unless you were already using that namespace).  Then address the
> differences.  There are things that don't exist (GDownloadUrl, GXml,
> GXmlHttp, ...), and things that have been changed (directions,
> polylines, polygons, markers ...)
>
> > do i have to do this manually
>
> That is the only way I know of.
>
> > or is there any programm that would be helpful in this case.
>
> Not that I know of.  It probably would be helpful if there was a guide
> to the differences (like they had when they went from v1 to v2).
>
>  --- Larry
>
> > Thak you in advance for your help.
> >
> > KN
>
> --
> 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...@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...@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: converting v2 to v3

2010-09-13 Thread geocode...@gmail.com
On Sep 13, 1:01 pm, knowicka  wrote:
> hi!
> is there a quick way to convert code which includes api v2 function to
> api v3.

Not really.  To first order, change the G* namespace to google.maps.*
(unless you were already using that namespace).  Then address the
differences.  There are things that don't exist (GDownloadUrl, GXml,
GXmlHttp, ...), and things that have been changed (directions,
polylines, polygons, markers ...)

> do i have to do this manually

That is the only way I know of.

> or is there any programm that would be helpful in this case.

Not that I know of.  It probably would be helpful if there was a guide
to the differences (like they had when they went from v1 to v2).

  --- Larry

> Thak you in advance for your help.
>
> KN

-- 
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...@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: show sql data not in infowindow but in my page

2010-09-13 Thread Greg45
thanks Dave but I search on your website without success.

I don't know how to show the marker's data outside.

Do you have any idea ?


On Sep 13, 10:20 pm, DaveGivesPHPaShot  wrote:
> Hello Greg45
> The gentleman who produced this site has a lot of examples I found
> helpful.http://econym.org.uk/gmap/basic2.htm
>
> Also, try this search in google
> site:http://gmaps-samples-v3.googlecode.com/svn/trunk/
> you will find a lot of need examples of things that can be done.
>
> On Sep 13, 4:43 pm, Greg45  wrote:
>
> > Hello,
>
> > I work actually on website based 
> > withhttp://code.google.com/apis/maps/articles/phpsqlajax_v3.html
>
> > And I want to show the data, NOT in the infowindow but on the right on
> > my website like this :
>
> >http://www.fastfoodmaps.com/
>
> > Somebody have make this on api V3 or know where I can find a
> > tutorial ?
>
> > Thanks
>
> > Regards
>
>

-- 
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...@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] ProjectOverlay.js and AlphaImageLoader Filter

2010-09-13 Thread wpaDev
Hi,

First, thanks to John D. Coryat, Mike Williams and Bratliff for the
ProjectOverlay.js functionality.

I am working on a series of Residential Parking Zone maps for the
Winnipeg Parking Authority using semi-opaque overlay graphics. The
graphics are.png files which work great in Safari and Firefox but MSIE
6 does not semi-opaque graphics. One of the fixes is  the
AlphaImageLoader filter. My question is this:

Is there a way of resolving this issue in the ProjectedOverlay.js
file? Maybe coding the AphaImageLoader filter into ProjectOverlay.js?

Any help would be greatly appreciated.

-- 
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...@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] Anchor setting of MarkerImage does not work

2010-09-13 Thread Martin Matysiak
Hello everybody,

I have a problem with using the MarkerImages in Google Maps API V3.
Please take a look at this picture:

http://k621.de/Files/anchorProb.png

The MarkerImage (the red circle) should be positioned with the center
on the end of the blue path. The black outline is the size of the
MarkerImage-graphic used. Although I set the anchor point when
creating the image, the maps application still uses the bottom middle
as an anchor point.

Here is the code used when generating the Marker:

---

function getDeviceIcon(online) {
return new google.maps.MarkerImage("./images/device/device_"+
(online? "0" : "off") +".png",
new google.maps.Size(32, 32),
new google.maps.Point(0, 0),
new google.maps.Point(12, 15)  // These are the coordinates of 
the
circle's center
);
}

[...]

markerOptions = { icon : getDeviceIcon(isOnline() ?
'true' : 'false'; ?>),
title : "name; ?>",
map : map,
position : new google.maps.LatLng(getPosition()-
>latitude.', '.$dev->getPosition()->longitude; ?>)
};

marker = new google.maps.Marker(markerOptions);

---

Any ideas?

-- 
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...@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] converting v2 to v3

2010-09-13 Thread knowicka
hi!
is there a quick way to convert code which includes api v2 function to
api v3.
do i have to do this manually or is there any programm that would be
helpful in this case.
Thak you in advance for your help.

KN

-- 
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...@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] heatmap from shapefile for custom tiles approaches

2010-09-13 Thread maplap
Hi folks,
Can anyone point to some resources that will help me understand how to
create a heatmap from shapefile data for custom data tile overlays?

I've followed John Coryat's excellent workshop on custom tiles here :
http://www.youtube.com/watch?v=IYqfT9i1las

I feel like I understand the basics and have gotten the workshop
examples working, and am now wanting to create my own heatmap similar
to Marcelo Montagna's beautiful example here : 
http://maps.forum.nu/v3/gm_customTiles.html

>From what I can tell, I need to generate an image of the appropriate
pixel dimensions to cover the entire CONUS, then cut the image into
tiles for the zoom levels.  ( Please correct if otherwise )

I have some density data in a shapefile, and realize that I need to
get it into the database so that my tilecutter script can pull it out,
generate the image and tile it, but am unclear on some things :

I am using postgres per John Coryat's workshop, but have mysql
available, too

  - what does the table schema look like .. do I simply use pg2shp to
get the shapefile in the database and let it handle the table
creation?  What, if any, settings do I need to give to pgsql
  - once I have the density data in the database, what tool or
algorithm do I need to use to get the correct data to use for creating
the image?  I imagine that it will select on the data table then map a
lat/lon to a pixel?


Any advice is greatly appreciated,
maplap

-- 
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...@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] Overlayview not precise? Problem.

2010-09-13 Thread nikolajp
I have an issue with using the OverlayView.

My problem is, that the overlay image is not shown at the same place
when using close to the max zoom.
It's like the image is moving downwards on the y-axis - and the only
thing I'm doing is zooming.

I have followed the example and copied it with smaller alterations.
The overlay image is around africa (same as the example from google).

http://nikolajp.dk/test.htm

Pan to afrcia.
Notice how the rectangle is showing far below the africa-tip, when
zoomed out completely.
In other examples I did, my images did the same thing using zoom
levels close to max.

I have not changed the example code, except for another bounds for the
rectangle.

Any ideas why this is going wrong?

.nikolajp

-- 
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...@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] getPanes() alternative solutions.

2010-09-13 Thread dc
Hi all,

I'm writing an abstract layer for the V3 maps api using MooTools and
running into a problem.

I'm trying to build a custom InfoWindow (or directly inject custom
markup to the pane).

The problem is map.getPanes() does not exist in V3 and I can not build
custom markup using my own custom class without relying on
OverlayWindow.

I've tried map.getDiv() but the problem with that is it needs to live
in the same pane as the bubble.

The solution I'm looking for isn't OverlayWindow as it does not allow
me to easily extend using MooTools.
Trying to find a way to inject markup directly at the InfoWindow pane
level.

Any help would be really appreciated!!

-- 
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...@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: Google API doesn't working in Win mobile 7 emulator

2010-09-13 Thread Chad Killingsworth
Or start with something simple - even Opera Mobile will display image
tiles. Using KMLLayers is the best bet for mobile performance and
works about anywhere that supports the base API.

Chad Killingsworth

On Sep 13, 4:17 am, Esa  wrote:
> Does WM7 browser render polylines at all? First try a simple polyline
> example 
> like:http://code.google.com/apis/maps/documentation/javascript/examples/po...

-- 
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...@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: show sql data not in infowindow but in my page

2010-09-13 Thread DaveGivesPHPaShot
Hello Greg45
The gentleman who produced this site has a lot of examples I found
helpful.
http://econym.org.uk/gmap/basic2.htm

Also, try this search in google
site:http://gmaps-samples-v3.googlecode.com/svn/trunk/
you will find a lot of need examples of things that can be done.


On Sep 13, 4:43 pm, Greg45  wrote:
> Hello,
>
> I work actually on website based 
> withhttp://code.google.com/apis/maps/articles/phpsqlajax_v3.html
>
> And I want to show the data, NOT in the infowindow but on the right on
> my website like this :
>
> http://www.fastfoodmaps.com/
>
> Somebody have make this on api V3 or know where I can find a
> tutorial ?
>
> Thanks
>
> Regards

-- 
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...@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: Here is my code that doesn't save checkboxes

2010-09-13 Thread geocode...@gmail.com
On Sep 13, 12:51 pm, DaveGivesPHPaShot  wrote:
> Thanks. I found the answer and will be happy to remove this thread.

You don't need to remove the thread (unless you want to), it might
help someone with the same question know where to look.

> How do I do that?

You can only remove your own posts.  From the web interface, on the
message you want to remove under "More options",  there is a "Remove"
option.

  -- Larry

>
> On Sep 13, 9:26 pm, "geocode...@gmail.com" 
> wrote:
>
>
>
> > On Sep 13, 12:16 pm, DaveGivesPHPaShot  wrote:
>
> > > I'm working from this 
> > > tutorialhttp://code.google.com/intl/fr/apis/maps/articles/phpsqlinfo.html
> > > which creates the form from a super-long java string. I think my
> > > problem may be from trying to do check marks with this method of
> > > creating the form.
>
> > 1. it is javascript, not java
> > 2. that still doesn't make it a Google Maps API problem, as Esa said,
> > there are better forums to search for an answer or ask the question.
> > 3. if the query string in the GDownloadUrl call to the server has the
> > checkbox data in it, the problem is in your PHP that is processing the
> > returned information and storing it in the database and has nothing to
> > do with the Google Maps API.
>
> >   -- Larry- Hide quoted text -
>
> - Show quoted text -

-- 
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...@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: Here is my code that doesn't save checkboxes

2010-09-13 Thread DaveGivesPHPaShot
Thanks. I found the answer and will be happy to remove this thread.
How do I do that?

On Sep 13, 9:26 pm, "geocode...@gmail.com" 
wrote:
> On Sep 13, 12:16 pm, DaveGivesPHPaShot  wrote:
>
> > I'm working from this 
> > tutorialhttp://code.google.com/intl/fr/apis/maps/articles/phpsqlinfo.html
> > which creates the form from a super-long java string. I think my
> > problem may be from trying to do check marks with this method of
> > creating the form.
>
> 1. it is javascript, not java
> 2. that still doesn't make it a Google Maps API problem, as Esa said,
> there are better forums to search for an answer or ask the question.
> 3. if the query string in the GDownloadUrl call to the server has the
> checkbox data in it, the problem is in your PHP that is processing the
> returned information and storing it in the database and has nothing to
> do with the Google Maps API.
>
>   -- Larry

-- 
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...@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: Here is my code that doesn't save checkboxes

2010-09-13 Thread geocode...@gmail.com
On Sep 13, 12:26 pm, "geocode...@gmail.com" 
wrote:
> On Sep 13, 12:16 pm, DaveGivesPHPaShot  wrote:
>
> > I'm working from this 
> > tutorialhttp://code.google.com/intl/fr/apis/maps/articles/phpsqlinfo.html
> > which creates the form from a super-long java string. I think my
> > problem may be from trying to do check marks with this method of
> > creating the form.
>
> 1. it is javascript, not java
> 2. that still doesn't make it a Google Maps API problem, as Esa said,
> there are better forums to search for an answer or ask the question.
> 3. if the query string in the GDownloadUrl call to the server has the
> checkbox data in it, the problem is in your PHP that is processing the
> returned information and storing it in the database and has nothing to
> do with the Google Maps API.

Oops, this is the v3 forum, no GDownloadUrl in v3, replace that with
XmlHttpRequest (althought the tutorial you pointed to is for v2 and
uses GDownloadUrl, but your page is v3...).

   -- Larry

-- 
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...@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: Here is my code that doesn't save checkboxes

2010-09-13 Thread geocode...@gmail.com
On Sep 13, 12:16 pm, DaveGivesPHPaShot  wrote:
> I'm working from this 
> tutorialhttp://code.google.com/intl/fr/apis/maps/articles/phpsqlinfo.html
> which creates the form from a super-long java string. I think my
> problem may be from trying to do check marks with this method of
> creating the form.

1. it is javascript, not java
2. that still doesn't make it a Google Maps API problem, as Esa said,
there are better forums to search for an answer or ask the question.
3. if the query string in the GDownloadUrl call to the server has the
checkbox data in it, the problem is in your PHP that is processing the
returned information and storing it in the database and has nothing to
do with the Google Maps API.

  -- Larry

-- 
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...@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: Here is my code that doesn't save checkboxes

2010-09-13 Thread DaveGivesPHPaShot
I'm working from this tutorial
http://code.google.com/intl/fr/apis/maps/articles/phpsqlinfo.html
which creates the form from a super-long java string. I think my
problem may be from trying to do check marks with this method of
creating the form.

-- 
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...@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: Not working with asp.net masterpages?

2010-09-13 Thread Rossko
> Just hoping there was some known reason! I am more than prepared
> however to post a simplified page with the rendered html if you could
> take a look?

Well it's your problem, and your decision what to do about it and what
priority to give it.
The wider the exposure and the easier you make it for people to help
you, the more likely to encourage someone with the right skills and
tools to spot your problem.

If you think its a percentage size problem, give it a fixed pixel size
as a stopgap.

-- 
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...@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: Not working with asp.net masterpages?

2010-09-13 Thread Nathan Raley
Yea, just post the bare minimum on an asp project with the page so we can
take a look at what you're doing and we can take a look and try to debug it
for you.  Otherwise there are too many unknowns.

On Mon, Sep 13, 2010 at 1:07 PM, geocode...@gmail.com
wrote:

> On Sep 13, 10:57 am, Nick  wrote:
> > Yes, I'm aware that would be useful to post my page online but I'm
> > smack bang in the middle of a major update and can't deploy my new
> > project until it's all completed. It looks like I might have to go
> > live without the Google map and post again here when it's online.
> >
> > Just hoping there was some known reason! I am more than prepared
> > however to post a simplified page with the rendered html if you could
> > take a look?
>
> If you post it online so we can use our debuggers, that would be
> useful.  If you are talking about posting a bunch of html and
> javascript to the group, that would be unlikely to be useful.
>
>  -- Larry
>
> >
> > Thanks again.
> >
> > :-)
> >
> > On Sep 13, 3:28 pm, Rossko  wrote:
> >
> >
> >
> > > > Any other ideas please?
> >
> > > I suppose, as a last resort, you could try following the posting
> > > guidelineshttp://
> groups.google.com/group/google-maps-js-api-v3/browse_thread/th...- Hide
> quoted text -
> >
> > - Show quoted text -
>
> --
> 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...@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...@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: Not working with asp.net masterpages?

2010-09-13 Thread geocode...@gmail.com
On Sep 13, 10:57 am, Nick  wrote:
> Yes, I'm aware that would be useful to post my page online but I'm
> smack bang in the middle of a major update and can't deploy my new
> project until it's all completed. It looks like I might have to go
> live without the Google map and post again here when it's online.
>
> Just hoping there was some known reason! I am more than prepared
> however to post a simplified page with the rendered html if you could
> take a look?

If you post it online so we can use our debuggers, that would be
useful.  If you are talking about posting a bunch of html and
javascript to the group, that would be unlikely to be useful.

  -- Larry

>
> Thanks again.
>
> :-)
>
> On Sep 13, 3:28 pm, Rossko  wrote:
>
>
>
> > > Any other ideas please?
>
> > I suppose, as a last resort, you could try following the posting
> > guidelineshttp://groups.google.com/group/google-maps-js-api-v3/browse_thread/th...-
> >  Hide quoted text -
>
> - Show quoted text -

-- 
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...@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: Not working with asp.net masterpages?

2010-09-13 Thread Nick
Yes, I'm aware that would be useful to post my page online but I'm
smack bang in the middle of a major update and can't deploy my new
project until it's all completed. It looks like I might have to go
live without the Google map and post again here when it's online.

Just hoping there was some known reason! I am more than prepared
however to post a simplified page with the rendered html if you could
take a look?

Thanks again.

:-)



On Sep 13, 3:28 pm, Rossko  wrote:
> > Any other ideas please?
>
> I suppose, as a last resort, you could try following the posting
> guidelineshttp://groups.google.com/group/google-maps-js-api-v3/browse_thread/th...

-- 
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...@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: Unable to catch mouseover/mouseout/click events on PolyCluster polygons

2010-09-13 Thread Niko
It sounds interesting and user friendly for my app.
The exact behavior I am trying to get is to change the color of the
clustered polys when the mouse is passing on the polygon itself, not
on any "sidebar" entry.
I made an example of what I would like with the google.maps.Polygon
object here: http://evilfenril.free.fr/mapv3/map.php but It's really
slow and can't render a lot of complex polys at the same time, it has
to set and unset polys from the map wich is not as fast as I would
like.
I also tryed to implement a point-in-polygon algorythm with your
clustered polys wich is also really slow (I maybe took the wrong way),
you can see it there :
http://evilfenril.free.fr/mapv3/cluster.php

Thank you for your help

On 10 sep, 16:00, bratliff  wrote:
> I tried implementing my own "mousemove" event handler on the map.  It
> was a disaster.  It did not play nicely with Google's other event
> handlers.  Every time the DOM hierarchy changed, it was broken.  I
> have no idea what to do to emulate a "mousemove" on an iPhone or on an
> Android device.  "touch" equals "click" but "mousemove" has no
> equivalent.
>
> Are you interested in "rollover" feedback from a "sidebar" or from the
> map canvas itself ?  A "sidebar" will not be difficult to implement.
> The other will require the use of the API's "mousemove" event
> handler.  PolyClustercannot provide a reliable "mousemove" event
> handler.  You will have to pass lat/lon coordinates 
> toPolyCluster.PolyClusterwill return a list of every visible and/or invisible 
> poly
> in which your lat/lon coordinates are contained.
>
> I cannot promise when it might happen.  Let me know if it fits your
> requirements.

-- 
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...@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: Sending multiple placemarks over to Google Maps

2010-09-13 Thread Grok Lobster
http://gmaps-samples-v3.googlecode.com/svn/trunk/xmlparsing/

On Sep 12, 11:59 pm, JoshN  wrote:
> It seems to work fine if you pass kml in the 'q' argument. See this
> for example:
>
> http://maps.google.com/maps?q=http://cns.miis.edu/multimedia/interact...
>
> Seems a bit unstable with this many markers, but worth
> investigating...
>
> On Sep 12, 7:39 am, Sören Nils 'chucker' Kuklau 
> wrote:
>
>
>
> > On Sep 12, 10:38 am, JoshN  wrote:
>
> > > Not sure how many markers you are looking at,
>
> > Probably less than a handful — but more than one.
>
> > > but if you'd be happy
> > > using a GET method, then maybe just do something like this:
>
> > >http://maps.google.com/maps?q=40.1,-8.5
>
> > GET would be fine, but all public info I've seen suggests that this
> > method only supports a single marker. That won't do. :(
>
> > > I'm fairly certain the patterns work the same as those discussed here:
>
> > >http://code.google.com/apis/maps/documentation/geocoding/
>
> > All examples there, too, seem limited to one query per URL.
>
> > Thanks anyways!- Hide quoted text -
>
> - Show quoted text -

-- 
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...@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: Why can't you iterate through markers on a map?

2010-09-13 Thread geocode...@gmail.com
On Sep 13, 6:29 am, Justin  wrote:
> Hey,
>
> Thanks for the tip! I wasn't aware such a library existed. However, it
> states that it does not support polylines and some other features,
> which is a must with my map.

Another option would be to add those features to GeoXml3.  I don't
think it would be too hard to add polylines (given that there are v2
examples in EGeoXml and GeoXml), the other features, I can't say.

  -- Larry


>
> I don't understand why google would leave out, what I consider at
> least, to be basic interface functionality. Hopefully this gets
> implemented in the near future as I'd like to say as close to the v3
> JS library as possible without writing quick-fix code.
>
> Does anyone know where, if anywhere, I can request new features to be
> implemented in the API?
>
> On Sep 11, 12:02 pm, "geocode...@gmail.com" 
> wrote:
>
>
>
> > On Sep 10, 10:07 am, Justin  wrote:
>
> > > The documentation states that when a map has a KML layer overlaid onto
> > > it, it creates Marker objects in memory based on the KML. Why is there
> > > no way for developers to access these markers? Something like
> > > getMarkers() would be nice.
>
> > > My problem:
>
> > > I have a map, the map has a KML layer set on it. I would like to be
> > > able to manipulate/grab the placemarks on the map that were generated
> > > from the KML. However, there is currently know way of doing this.
>
> > > If anyone has an alternative solution, let me know!
>
> > Have you looked at 
> > GeoXml3?http://groups.google.com/group/google-maps-js-api-v3/search?group=goo...
>
> >   -- Larry
>
> > > Thanks,
> > > Justin- Hide quoted text -
>
> - Show quoted text -

-- 
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...@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] show sql data not in infowindow but in my page

2010-09-13 Thread Greg45
Hello,

I work actually on website based with 
http://code.google.com/apis/maps/articles/phpsqlajax_v3.html

And I want to show the data, NOT in the infowindow but on the right on
my website like this :

http://www.fastfoodmaps.com/

Somebody have make this on api V3 or know where I can find a
tutorial ?

Thanks

Regards

-- 
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...@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: Why can't you iterate through markers on a map?

2010-09-13 Thread Justin
Alright, for anyone who is reading this thread I have submitted the
issue as a feature request. Here is the link to it:
http://code.google.com/p/gmaps-api-issues/issues/detail?id=2720

On Sep 13, 9:45 am, "geocode...@gmail.com" 
wrote:
> On Sep 13, 6:29 am, Justin  wrote:
>
> > Hey,
>
> > Thanks for the tip! I wasn't aware such a library existed. However, it
> > states that it does not support polylines and some other features,
> > which is a must with my map.
>
> > I don't understand why google would leave out, what I consider at
> > least, to be basic interface functionality. Hopefully this gets
> > implemented in the near future as I'd like to say as close to the v3
> > JS library as possible without writing quick-fix code.
>
> > Does anyone know where, if anywhere, I can request new features to be
> > implemented in the API?
>
> The issues (and enhancement request) 
> list:http://code.google.com/p/gmaps-api-issues/issues/list?can=2&q=apitype...
>
>   -- Larry
>
>
>
>
>
> > On Sep 11, 12:02 pm, "geocode...@gmail.com" 
> > wrote:
>
> > > On Sep 10, 10:07 am, Justin  wrote:
>
> > > > The documentation states that when a map has a KML layer overlaid onto
> > > > it, it creates Marker objects in memory based on the KML. Why is there
> > > > no way for developers to access these markers? Something like
> > > > getMarkers() would be nice.
>
> > > > My problem:
>
> > > > I have a map, the map has a KML layer set on it. I would like to be
> > > > able to manipulate/grab the placemarks on the map that were generated
> > > > from the KML. However, there is currently know way of doing this.
>
> > > > If anyone has an alternative solution, let me know!
>
> > > Have you looked at 
> > > GeoXml3?http://groups.google.com/group/google-maps-js-api-v3/search?group=goo...
>
> > >   -- Larry
>
> > > > Thanks,
> > > > Justin- Hide quoted text -
>
> > - Show quoted text -

-- 
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...@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: Not working with asp.net masterpages?

2010-09-13 Thread Rossko
> Any other ideas please?

I suppose, as a last resort, you could try following the posting
guidelines
http://groups.google.com/group/google-maps-js-api-v3/browse_thread/thread/2b3f101fd509919e

-- 
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...@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: setCenter and panBy dont work in zoom_changed handler

2010-09-13 Thread Ela
use the idle event instead of zoom_changed, this works perfectly for
me (without timeouts...)

-- 
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...@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: Not working with asp.net masterpages?

2010-09-13 Thread Nick
I really hoped you might have been on to something there so I added
what you suggested. I now have the following and the map does still
not show.

my MasterPage styles:

  html, body {
   height: 100%;
   margin: 0;
   padding: 0;
  }

my MasterPage form tag:




and my content page:




Any other ideas please?

Thanks

On Sep 13, 11:59 am, Rossko  wrote:
> > This was not a problem in v2 but in v3, it will not display the map if
> > this part of the html:
> >  
> >  
> > is within a form tag.
>
> What size does the form have?  100% of 'undefined' is undefined.

-- 
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...@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: Why can't you iterate through markers on a map?

2010-09-13 Thread geocode...@gmail.com
On Sep 13, 6:29 am, Justin  wrote:
> Hey,
>
> Thanks for the tip! I wasn't aware such a library existed. However, it
> states that it does not support polylines and some other features,
> which is a must with my map.
>
> I don't understand why google would leave out, what I consider at
> least, to be basic interface functionality. Hopefully this gets
> implemented in the near future as I'd like to say as close to the v3
> JS library as possible without writing quick-fix code.
>
> Does anyone know where, if anywhere, I can request new features to be
> implemented in the API?

The issues (and enhancement request) list:
http://code.google.com/p/gmaps-api-issues/issues/list?can=2&q=apitype:Javascript3

  -- Larry


>
> On Sep 11, 12:02 pm, "geocode...@gmail.com" 
> wrote:
>
>
>
> > On Sep 10, 10:07 am, Justin  wrote:
>
> > > The documentation states that when a map has a KML layer overlaid onto
> > > it, it creates Marker objects in memory based on the KML. Why is there
> > > no way for developers to access these markers? Something like
> > > getMarkers() would be nice.
>
> > > My problem:
>
> > > I have a map, the map has a KML layer set on it. I would like to be
> > > able to manipulate/grab the placemarks on the map that were generated
> > > from the KML. However, there is currently know way of doing this.
>
> > > If anyone has an alternative solution, let me know!
>
> > Have you looked at 
> > GeoXml3?http://groups.google.com/group/google-maps-js-api-v3/search?group=goo...
>
> >   -- Larry
>
> > > Thanks,
> > > Justin- Hide quoted text -
>
> - Show quoted text -

-- 
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...@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: Why can't you iterate through markers on a map?

2010-09-13 Thread Justin
Hey,

Thanks for the tip! I wasn't aware such a library existed. However, it
states that it does not support polylines and some other features,
which is a must with my map.

I don't understand why google would leave out, what I consider at
least, to be basic interface functionality. Hopefully this gets
implemented in the near future as I'd like to say as close to the v3
JS library as possible without writing quick-fix code.

Does anyone know where, if anywhere, I can request new features to be
implemented in the API?

On Sep 11, 12:02 pm, "geocode...@gmail.com" 
wrote:
> On Sep 10, 10:07 am, Justin  wrote:
>
> > The documentation states that when a map has a KML layer overlaid onto
> > it, it creates Marker objects in memory based on the KML. Why is there
> > no way for developers to access these markers? Something like
> > getMarkers() would be nice.
>
> > My problem:
>
> > I have a map, the map has a KML layer set on it. I would like to be
> > able to manipulate/grab the placemarks on the map that were generated
> > from the KML. However, there is currently know way of doing this.
>
> > If anyone has an alternative solution, let me know!
>
> Have you looked at 
> GeoXml3?http://groups.google.com/group/google-maps-js-api-v3/search?group=goo...
>
>   -- Larry
>
>
>
>
>
> > Thanks,
> > Justin

-- 
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...@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: Here is my code that doesn't save checkboxes

2010-09-13 Thread Esa
I am sure there are better forums for PHP and MySQL questions.

-- 
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...@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: setCenter and panBy dont work in zoom_changed handler

2010-09-13 Thread Ivan Abragimovich
Thank you for explanation:)

Of course it's very pure, but it's enough.

On Sep 13, 3:12 pm, Rossko  wrote:
> > Could anybody explain me, why first code snippet doesn't work?
>
> Lots of things happen asynchronously in v3.
> Using a short setTimeout puts your code in the execution queue behind
> map workings, rather than getting executed immediately ahead of the
> map workings associated with whatever caused the zoom change.

-- 
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...@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: custom control position BOTTOM_RIGHT & remove custom controls

2010-09-13 Thread Ela
just fyi, I found a workaround to put a control in the bottom right
corner above the legal text, I set the style of the div to
top:auto !important;
left:auto !important;
right: 0px !important;
bottom: 20px !important; (20px -> div appears above the legal text and
doesn't hide it)
with !important it overwrites the inline positioning done by the API.
I don't like such solutions, but until the API is not working
properly...

-- 
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...@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: Hotels in city

2010-09-13 Thread t0th
Hi , i am using gmaps-api-v3-googlebar and how i can execute a search
automaticaly when page is loaded.

thanks

google.load('maps','3',{other_params:'sensor=false'}); // load the
maps api
   google.load('search','1',{nooldnames:1}); // load the search api
(need this for the search form)
   function init(){
var mapOptions={ // set up some map options
 center : new google.maps.LatLng(44, -93),
 mapTypeId : google.maps.MapTypeId.ROADMAP,
 zoom : 9
},
gbarOptions={
 // we're going with the defaults
};
var map=new
google.maps.Map(document.getElementById('map_canvas'),mapOptions);
var gbar = new window.jeremy.jGoogleBar(map,gbarOptions);
 
map.controls[google.maps.ControlPosition.BOTTOM_LEFT].push(gbar.container);
   }
   google.setOnLoadCallback(init);



On 9 set, 12:51, jrgeerdes  wrote:
> If you're wanting to use something like the Google Search API, you
> could try the jGoogleBar:
>
> http://code.google.com/p/gmaps-api-v3-googlebar/
>
> Just set up the map, add the control, and then call
> control.execute('hotel'), where control is a reference to the control.
>
> jg

-- 
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...@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: Geocoding an address with only zip code/postal and house number

2010-09-13 Thread geocode...@gmail.com
On Sep 13, 1:05 am, Johan Arensman  wrote:
> Hello all,
>
> I have been experimenting with the code but I'm still unable to get an
> accurate result. Each address has an unique postal+house number so why can't
> I search for postal + house number with google maps?

I don't think your use case it the main one for the geocoder.

http://code.google.com/apis/maps/documentation/javascript/services.html#Geocoding
Says this:
Geocoding
Geocoding is the process of converting addresses (like "1600
Amphitheatre Parkway, Mountain View, CA") into geographic coordinates
(like latitude 37.423021 and longitude -122.083739), which you can use
to place markers or position the map.

I'm not sure it can recognize a postcode + house number as an address.

  -- Larry


>
> Greetings,
>  Johan
>
>
>
> On Fri, Sep 10, 2010 at 2:34 PM, Johan Arensman  wrote:
> > Hello everyone,
>
> > We have a system that allows you to add addresses by only using a postal
> > code and a house number in the Netherlands.
>
> > I got it working but it's not pretty and far from accurate because I'm
> > using 3 geocode requests of which the first is impossible to do directly
> > with the number.
>
> > 1: geolocate postal + country such as "3267LP, The Netherlands"
> > 2: reverse geolocate the coords from step 1 for the extra information such
> > as street etc.
> > 3: geolocate the extended address.
>
> > But if I use the postal code in the above example, I end up on the
> > 'Gebrokendijk', I should be on 'Oude Nieuwlandsedijk'. This probably happens
> > because the first geolocation is done without a house number and the
> > 'center' or 'start' of this postal zone is closer to that street instead of
> > the correct one? (no expert here). Is there any way to create a working
> > geolocation with all the information i have (postal+housenumber+country) ?
>
> > Can you please tell me if there's another way to achieve this? I can't
> > change the input, i only got postal + house number.
>
> > Here is my code, I've removed any code not related to the geolocation and
> > added comments. I've also saved this snippet to jsbin:
> >http://jsbin.com/ugota3/editfor some highlighting
>
> > try {
> > // test input:
> > var country = 'The Netherlands';
> > var postal = '3267LP';
> > var number = '7';
>
> > // 1: geocode postal and country:
> > var result = gc.geocode({address: postal+', '+country}, function(results,
> > status) {
> >     if(status == google.maps.GeocoderStatus.OK) {
> >         // 2: reverse geocode the coordinates:
> >         gc.geocode({latLng: results[0].geometry.location},
> > function(results, status) {
> >             if(results[0]) {
> >                 // get the correctly formatted address:
> >                 var address = results[0].formatted_address;
> >                 if(results[0].types[0] == 'street_address') {
> >                     address = results[0].address_components[1].long_name+'
> > '+number+', '+postal+' '
> >                        +results[0].address_components[2].long_name+'
> > '+results[0].address_components[5].long_name;
> >                 } else if(results[0].types[0] == 'route') {
> >                     address = results[0].address_components[0].long_name+'
> > '+number+', '+postal+' '
> >                        +results[0].address_components[1].long_name+'
> > '+results[0].address_components[4].long_name;
> >                 }
> >                 // 3: geocode the exact address:
> >                 gc.geocode({address: address}, function(results, status) {
> >                     if(results[0]) {
> >                         // create marker:
> >                         new google.maps.Marker({
> >                             map: map.map,
> >                             position: results[0].geometry.location,
> >                             icon: tinyIcon,
> >                             title: address
> >                         });
> >                         // show address
> >                         addressElement.update(address);
> >                     } else {
> >                         //alert("Geocode 3 was not successful for the
> > following reason: " + status);
> >                         return false;
> >                     }
> >                 });
> >             } else {
> >                 //alert("Geocode 2 was not successful for the following
> > reason: " + status);
> >                 return false;
> >             }
> >         });
> >         map.setCenter(results[0].geometry.location);
> >         marker.setPosition(results[0].geometry.location);
> >     } else {
> >         //alert("Geocode was not successful for the following reason: " +
> > status);
> >         return false;
> >     }
> > });
> > } catch(e) {
> >     console.error(e);
> > }
> > // end
>
> > I really hope you can help me make this script more accurate.
> > Have i missed something? Am I thinking wrong? Or are these the limits of
> > the geocoder?
>
> > Greetings,
> >  Johan Arensman- Hide quoted text -
>
> - Show quoted

[Google Maps API v3] Re: setCenter and panBy dont work in zoom_changed handler

2010-09-13 Thread Rossko
> Could anybody explain me, why first code snippet doesn't work?

Lots of things happen asynchronously in v3.
Using a short setTimeout puts your code in the execution queue behind
map workings, rather than getting executed immediately ahead of the
map workings associated with whatever caused the zoom change.

-- 
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...@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] setCenter and panBy dont work in zoom_changed handler

2010-09-13 Thread Ivan Abragimovich
Hi, all.
I found strange behavior of 'setCenter' and 'panBy' function.
When i add event handler to 'zoom_changed' event, something like this:

google.maps.event.addListener(map, 'zoom_changed', function() {
map.panBy(300, 300);
});

Code above doesn't work.
But if I use 'setTimeout' function like this:

google.maps.event.addListener(map, 'zoom_changed', function() {
setTimeout(moveMap, 10);
});

function moveMap() {
map.panBy(300, 300);
}

This code works fine.
Could anybody explain me, why first code snippet doesn't work?

P.S. Sorry for my terrible English.

-- 
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...@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: Not working with asp.net masterpages?

2010-09-13 Thread Rossko
> This was not a problem in v2 but in v3, it will not display the map if
> this part of the html:
>  
>  
> is within a form tag.

What size does the form have?  100% of 'undefined' is undefined.

-- 
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...@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] Here is my code that doesn't save checkboxes

2010-09-13 Thread DaveGivesPHPaShot
Hello, I'm new to PHP and I suspect it's due to the way my database is
set up.

On this page,

http://www.oukwakan.org/jdmlredo17.html

, you can see my code - the info window asks the questions and closes
at the end. However, when I go in and look at my database using
PHPMyAdmin, I don't see any 1s for in the columns for the checkboxes
that have been clicked on the map.

Perhaps a problem with my php code or with my MYSQL setup, so I'll add
info on both.


For the setup of my values in MYSQL/PHPMyAdmin

For the checkbox columns.
Type = TINYINT
Size/Values = 1
Default = NULL
NULL box checked.

Thanks for your help !

-- 
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...@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] Create a link from my map to the google print popup

2010-09-13 Thread leumas67
Hi,

With the v3 API, printing is not easy because background images aren't
printed with the default parameters of the browsers.

My idea is to create a link from my map which is presenting a
DirectionRoute (Start and End point) and to the Google print popup
(which is correctly printed by each brower).

The URL should look like this :
http://maps.google.fr/maps?f=d&source=s_d&saddr=Strasbourg,+Bas-Rhin,+Alsace&daddr=Paris&hl=fr&geocode=FRVR5QIdBSl2ACnBshheSciWRzEfJOcYMUgalw%3BFVt-6QIdi98jACkPt-IGH27mRzFglIxow4ILBA&mra=ls&sll=48.91889,5.048218&sspn=2.692918,7.13562&ie=UTF8&z=8&layer=c&pw=2

Problem : there is a "geocode" variable in the URL : how to generate
it ?

Hope someone could help me !

Sam.

-- 
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...@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: Elevation API and Road Tunnels

2010-09-13 Thread Miguel Angel Vilela
This is because the Elevation API gives you terrain elevation, not road
elevation. You'd need to know where tunnels and bridges start and end but
that is not provided in the API either. With any luck, directions might give
you hints about toll bridges and tunnels, but not necessarily at the exact
point where road elevation departs from terrain elevation.

This could be an interesting feature request for the Elevation API, please
file on in the issue tracker if you would like us to look into it.

Thanks,
Miguel

On Mon, Sep 13, 2010 at 11:50, Wolfgang  wrote:

> I found out that the same problem occurs when the route goes over a
> bridge.
> Example over the 'Europabrücke':
> http://en.wikipedia.org/wiki/Europabr%C3%BCcke
> Start: Fraubichl, 6082 Patsch, Österreich
> Destination: Schönberg, 6141 Schönberg Im Stubaital, Österreich
>
> --
> 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...@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...@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: Elevation API and Road Tunnels

2010-09-13 Thread Wolfgang
I found out that the same problem occurs when the route goes over a
bridge.
Example over the 'Europabrücke': http://en.wikipedia.org/wiki/Europabr%C3%BCcke
Start: Fraubichl, 6082 Patsch, Österreich
Destination: Schönberg, 6141 Schönberg Im Stubaital, Österreich

-- 
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...@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] custom control position BOTTOM_RIGHT & remove custom controls

2010-09-13 Thread Ela
Hi,
I need to add a custom control to the BOTTOM_RIGHT corner of the map.

map.controls[google.maps.ControlPosition.BOTTOM_RIGHT].push(controlDiv);

But this is not working in Google maps V3 because it will be displayed
to the left of the terms of use text every time, regardless if I set
the index of the control or not.

controlDiv.index = 0;
map.controls[google.maps.ControlPosition.BOTTOM_RIGHT].push(controlDiv);

I couldn't find a solution in this forum but it is not the first time
this question has been asked, so maybe someone has a solution for
this, would be very nice!

By the way, is there a nice and safe way to remove a custom control?
At the moment I iterate the controls[..] collection and check if the
control is the same object or has the same id and then try to remove
the control at the current position/index

 
map.controls[google.maps.ControlPosition.BOTTOM_RIGHT].forEach(function(element,
index) {
if (element == controlDiv) {
 
map.controls[google.maps.ControlPosition.BOTTOM_RIGHT].removeAt(index);
}
});
Is this correct? I personally don't like such code in JavaScript... it
is not fail safe at all

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...@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] Not working with asp.net masterpages?

2010-09-13 Thread Nick
This was not a problem in v2 but in v3, it will not display the map if
this part of the html:

 
 

is within a form tag. I have tested this in a standalone .aspx page as
well, like this:

does not work:

 
  
  
 
 


and this does:

 
  
  
 

 

Now, since I can't avoid having a form tag in my MasterPage and the
map_canvas div is within my Content Page, how can I get it to work?
Any workaround to this or is it a major oversight?

Appreciate any input please.

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...@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: Google API doesn't working in Win mobile 7 emulator

2010-09-13 Thread Esa
Does WM7 browser render polylines at all? First try a simple polyline
example like:
http://code.google.com/apis/maps/documentation/javascript/examples/polyline-simple.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...@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: Geocoding an address with only zip code/postal and house number

2010-09-13 Thread Johan Arensman
Hello all,

I have been experimenting with the code but I'm still unable to get an
accurate result. Each address has an unique postal+house number so why can't
I search for postal + house number with google maps?

Greetings,
 Johan

On Fri, Sep 10, 2010 at 2:34 PM, Johan Arensman  wrote:

> Hello everyone,
>
> We have a system that allows you to add addresses by only using a postal
> code and a house number in the Netherlands.
>
> I got it working but it's not pretty and far from accurate because I'm
> using 3 geocode requests of which the first is impossible to do directly
> with the number.
>
> 1: geolocate postal + country such as "3267LP, The Netherlands"
> 2: reverse geolocate the coords from step 1 for the extra information such
> as street etc.
> 3: geolocate the extended address.
>
> But if I use the postal code in the above example, I end up on the
> 'Gebrokendijk', I should be on 'Oude Nieuwlandsedijk'. This probably happens
> because the first geolocation is done without a house number and the
> 'center' or 'start' of this postal zone is closer to that street instead of
> the correct one? (no expert here). Is there any way to create a working
> geolocation with all the information i have (postal+housenumber+country) ?
>
> Can you please tell me if there's another way to achieve this? I can't
> change the input, i only got postal + house number.
>
> Here is my code, I've removed any code not related to the geolocation and
> added comments. I've also saved this snippet to jsbin:
> http://jsbin.com/ugota3/edit for some highlighting
>
> try {
> // test input:
> var country = 'The Netherlands';
> var postal = '3267LP';
> var number = '7';
>
> // 1: geocode postal and country:
> var result = gc.geocode({address: postal+', '+country}, function(results,
> status) {
> if(status == google.maps.GeocoderStatus.OK) {
> // 2: reverse geocode the coordinates:
> gc.geocode({latLng: results[0].geometry.location},
> function(results, status) {
> if(results[0]) {
> // get the correctly formatted address:
> var address = results[0].formatted_address;
> if(results[0].types[0] == 'street_address') {
> address = results[0].address_components[1].long_name+'
> '+number+', '+postal+' '
>+results[0].address_components[2].long_name+'
> '+results[0].address_components[5].long_name;
> } else if(results[0].types[0] == 'route') {
> address = results[0].address_components[0].long_name+'
> '+number+', '+postal+' '
>+results[0].address_components[1].long_name+'
> '+results[0].address_components[4].long_name;
> }
> // 3: geocode the exact address:
> gc.geocode({address: address}, function(results, status) {
> if(results[0]) {
> // create marker:
> new google.maps.Marker({
> map: map.map,
> position: results[0].geometry.location,
> icon: tinyIcon,
> title: address
> });
> // show address
> addressElement.update(address);
> } else {
> //alert("Geocode 3 was not successful for the
> following reason: " + status);
> return false;
> }
> });
> } else {
> //alert("Geocode 2 was not successful for the following
> reason: " + status);
> return false;
> }
> });
> map.setCenter(results[0].geometry.location);
> marker.setPosition(results[0].geometry.location);
> } else {
> //alert("Geocode was not successful for the following reason: " +
> status);
> return false;
> }
> });
> } catch(e) {
> console.error(e);
> }
> // end
>
> I really hope you can help me make this script more accurate.
> Have i missed something? Am I thinking wrong? Or are these the limits of
> the geocoder?
>
> Greetings,
>  Johan Arensman
>

-- 
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...@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: Close infowindow from function

2010-09-13 Thread geocode...@gmail.com
On Sep 12, 6:07 pm, Tom Roggero  wrote:
> Hi Larry.
>
> I just found your example useful. I was wondering if you know someway
> to know which is the infowindow open...
>
> I've an object of infowindows associated to latlngs, so for each
> marker i've a different content on the infowindow.
>
> I don't want to run a loop. On v2 API there was a closeInfoWindow() on
> MAP. But it isn't anymore on v3.

I only have a single global infowindow on my maps.  Then
infowindow.close() closes it.

  -- Larry

>
> What do u think ?
>
> On 12 sep, 19:02, "geocode...@gmail.com"  wrote:
>
>
>
> > On Sep 12, 2:51 pm, 3D-kreativ  wrote:
>
> > > Thanks! Could you be kind and show some code how you mean, otherwise
> > > it's hard to understand it.
>
> > If the example I posted doesn't work for you, then post a link to your
> > map where you are trying to do this and running into problems.
>
> > I'm not going to write code on spec for you.
>
> >   -- Larry
>
> > > Thanks in advance!
>
> > > On 12 Sep, 23:45, "geocode...@gmail.com"  wrote:
>
> > > > On Sep 12, 2:37 pm, 3D-kreativ  wrote:
>
> > > > > Hi,
>
> > > > > Is it possible to close an infowindow that is "open" on the map from
> > > > > an ordinary function outside the google maps script?
>
> > > > Yes.  If you have a reference to it in the scope in which that
> > > > function runs (I usually make a global "infowindow" variable so I can
> > > > replicate the v2 infowindow behavior).
>
> > > >   -- Larry
>
> > > > > I have tested
> > > > > this, but nothing happens:
>
> > > > > function closeWindow() {
>
> > > > > infowindow.close();
>
> > > > > }
>
> > > > > Preciate some help. Thanks!- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -

-- 
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...@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.