[Google Maps API v3] Re: InfoWindow Problems with Maps & Fusion Tables Combined

2011-08-04 Thread geocode...@gmail.com
On Aug 4, 5:38 pm, "geocode...@gmail.com" 
wrote:
> On Aug 4, 4:54 pm, "geocode...@gmail.com" 
> wrote:
>
> > On Aug 4, 2:06 pm, "Matthew W. Shepherd"
>
> >  wrote:
> > > I'm developing an interactive map based on Fusion Tables data at the
> > > following test 
> > > URL:http://library.sc.edu/digital/collections/greenbook_map_test.html
>
> > > There are two primary errors involving InfoWindows that I've run into:
>
> > > 1.) When a marker is clicked on the map, the corresponding InfoWindow
> > > displays; however, when a data row is selected from the DataTable, the
> > > previous map-selected InfoWindow does not close. I've included
> > > "if(infowindow) infowindow.close();" in the selectHandler() function,
> > > but this apparently does not affect the map-selected InfoWindows.
>
> > Only create one infowindow.  Reuse it to display any contents.
>
> > > The close function does close each DataTable-selected InfoWindow when
> > > a new DataTable row is selected. Moreover, if a DataTable-selected
> > > InfoWindow is open, selecting a marker on the map itself causes the
> > > DataTable-selected InfoWindow to close properly.
>
> > > 2.) Apparently related to this issue with calling InfoWindows: I want
> > > all InfoWindows to include a "Zoom here" link. The code for DataTable-
> > > selected InfoWindows does this properly, zooming the map in with the
> > > selected marker at the center. However, I have been unable to make
> > > this work for map-selected InfoWindows. Using
> > > "map.setCenter(marker.getPosition());" and
> > > "map.setCenter(infowindow.getPosition());" did not work properly for
> > > me. The latter turned out to zoom in at the most recent DataTable-
> > > selected InfoWindow location (or outside the map if none was
> > > previously selected). Using "e.latLng" comes close, but zooms in on
> > > the point where the map was clicked, rather than on the marker itself.
>
> > Theoretically, event.LatLng should work based on the documentation:
> > latLng  LatLng  The position at which to anchor an infowindow on the
> > clicked feature.
>
> > However, if that isn't working, you have the row data available in in
> > the click event also:
> > row     Object  A collection of FusionTablesCell objects, indexed by
> > column name, representing
> >                 the contents of the table row which included the
> > clicked feature.
>
> > Parse the latitude and longitude out of the "geometry" column in the
> > row just like you do in the select handler.
>
> Oops, that no longer seems to be there.
>
> Therefore the fact that the latLng in the event is the "clicked"
> position, rather than the documented "position at which to anchor an
> infowindow on the clicked feature." (i.e. the actual location of the
> feature), this has to be classed as a bug.  Someone should create an
> issue in the issue tracker.

Amigo Motel & Cafe
first click at original zoom:
(35.17380831799959, -103.7109375)
second click (after "zoom here"):
(35.1715632080029, -103.70269775390625)
third click (after another "zoom here"):
(35.17187893034227, -103.70400667190552)
fourth click (after another "zoom here"):
(35.17187893034227, -103.70399862527847)

Value in FusionTable:
-103.70400,35.171879,0.0-103.70400,35.171879,0.0>

    -- Larry

>
> > > I believe that both of these problems are due to some error on my part
> > > in not declaring the infowindow variable correctly. I hope that
> > > there's some simple issue I'm overlooking that will set both of these
> > > straight. Thank you in advance, and I hope my (admittedly learning-as-
> > > I-go) code's otherwise up to snuff!

-- 
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: Getting originating host name when a site makes an Google Maps API call to my server data

2011-08-04 Thread Metro Mapper
Thanks for the idea.  Yeah, it's not reliable enough in my case
because I would have to trust the user to add it since I don't have
control over their pages.  I do have an API key system that I can use
to track their usage.  The problem is if people don't use a key, I
still want them to be able to use the API for up to 1000 requests a
day or something.  The only way I can track that is to know the domain
or IP of the server making the request.

On Aug 4, 5:02 pm, Barry Hunter  wrote:
> It wouldnt be reliable, but you could include it in the actual html.
>
> geoXml = new 
> GGeoXml("http://dev.yourmapper.com/api/markers.php?rip=1.2.3.4&id=fc6e563883b...
>
> What ever writes your html pages, could just write the IP into the source too.
>
>
>
>
>
>
>
> On Thu, Aug 4, 2011 at 8:21 PM, Metro Mapper  wrote:
> > I'm building out an API and have a question about how to track/know
> > which domains use the call, after the KML gets picked up by Google's
> > servers for rendering.
>
> > So for example, my domain that is serving up the API PHP file is
> > called dev.yourmapper.com. Someone on the domainwww.metromapper.org
> > builds a page that creates a Google map, and calls my file using Ajax
> > to overlay my data on their map. Google grabs that KML file, then
> > serves it back to the user.
>
> > Here is that example in 
> > action:http://www.metromapper.org/example/apitest.htm
>
> > (Click the center map marker to see a popup of all the PHP Server
> > variables available to the yourmapper.com script.)
>
> > Since Google is grabbing it, I can't use the PHP variables REMOTE_HOST
> > or REMOTE_ADDR to get the 'metromapper.org' site info. They only tell
> > me Google's IPs.
>
> > So is there some other way to get this data? Does Google happen to
> > return it in the header somewhere? Any ideas on how to track or pass
> > the originating remote host name around so I can get it when the call
> > is made? Thanks, I realize this might not be solvable.
>
> > --
> > 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: Autocomplete Places Results Parsing

2011-08-04 Thread GeorgeIoak
I missed that you need to parse the type as the results are not always in 
the same location inside the array

-- 
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/-/AOPkkrA_IToJ.
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] Map centering problem

2011-08-04 Thread Jeremy Geerdes
Sounds like the map is being initialized before the DOM is fully rendered - or 
at least before the containing element has been set to its final height. 
Ideally, make sure that the map is initialized after the page is rendered. If 
that's not possible, use a setTimeout to trigger the map's resize event a half 
second or a second after you're done initializing the map.

Jeremy R. Geerdes
Generally Cool Guy
Des Moines, IA

For more information or a project quote:
jrgeer...@gmail.com

If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan Church!

On Aug 4, 2011, at 8:18 PM, bvillebud wrote:

> Hi I've seen this problem before in v2 maps but not in v3. Bascially
> the map half loads on my page, shows the grey background for the
> underlining container background and displays the map marker in the
> top left, when I day the hand on the map it will reload the full maps
> size properly but not on initial load. Now my map code works fine my
> itself but the problem arises when the code is placed inside my
> single.php file on wordpress so could it be a problem with jquery or
> conflict with a plugin perhaps but its very odd.
> 
> -- 
> 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] Map centering problem

2011-08-04 Thread bvillebud
Hi I've seen this problem before in v2 maps but not in v3. Bascially
the map half loads on my page, shows the grey background for the
underlining container background and displays the map marker in the
top left, when I day the hand on the map it will reload the full maps
size properly but not on initial load. Now my map code works fine my
itself but the problem arises when the code is placed inside my
single.php file on wordpress so could it be a problem with jquery or
conflict with a plugin perhaps but its very odd.

-- 
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: InfoWindow Problems with Maps & Fusion Tables Combined

2011-08-04 Thread geocode...@gmail.com
On Aug 4, 4:54 pm, "geocode...@gmail.com" 
wrote:
> On Aug 4, 2:06 pm, "Matthew W. Shepherd"
>
>  wrote:
> > I'm developing an interactive map based on Fusion Tables data at the
> > following test 
> > URL:http://library.sc.edu/digital/collections/greenbook_map_test.html
>
> > There are two primary errors involving InfoWindows that I've run into:
>
> > 1.) When a marker is clicked on the map, the corresponding InfoWindow
> > displays; however, when a data row is selected from the DataTable, the
> > previous map-selected InfoWindow does not close. I've included
> > "if(infowindow) infowindow.close();" in the selectHandler() function,
> > but this apparently does not affect the map-selected InfoWindows.
>
> Only create one infowindow.  Reuse it to display any contents.
>
>
>
>
>
> > The close function does close each DataTable-selected InfoWindow when
> > a new DataTable row is selected. Moreover, if a DataTable-selected
> > InfoWindow is open, selecting a marker on the map itself causes the
> > DataTable-selected InfoWindow to close properly.
>
> > 2.) Apparently related to this issue with calling InfoWindows: I want
> > all InfoWindows to include a "Zoom here" link. The code for DataTable-
> > selected InfoWindows does this properly, zooming the map in with the
> > selected marker at the center. However, I have been unable to make
> > this work for map-selected InfoWindows. Using
> > "map.setCenter(marker.getPosition());" and
> > "map.setCenter(infowindow.getPosition());" did not work properly for
> > me. The latter turned out to zoom in at the most recent DataTable-
> > selected InfoWindow location (or outside the map if none was
> > previously selected). Using "e.latLng" comes close, but zooms in on
> > the point where the map was clicked, rather than on the marker itself.
>
> Theoretically, event.LatLng should work based on the documentation:
> latLng  LatLng  The position at which to anchor an infowindow on the
> clicked feature.
>
> However, if that isn't working, you have the row data available in in
> the click event also:
> row     Object  A collection of FusionTablesCell objects, indexed by
> column name, representing
>                 the contents of the table row which included the
> clicked feature.
>
> Parse the latitude and longitude out of the "geometry" column in the
> row just like you do in the select handler.

Oops, that no longer seems to be there.

Therefore the fact that the latLng in the event is the "clicked"
position, rather than the documented "position at which to anchor an
infowindow on the clicked feature." (i.e. the actual location of the
feature), this has to be classed as a bug.  Someone should create an
issue in the issue tracker.

   -- Larry

>
>
> > I believe that both of these problems are due to some error on my part
> > in not declaring the infowindow variable correctly. I hope that
> > there's some simple issue I'm overlooking that will set both of these
> > straight. Thank you in advance, and I hope my (admittedly learning-as-
> > I-go) code's otherwise up to snuff!
>
>

-- 
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] Autocomplete Places Results Parsing

2011-08-04 Thread GeorgeIoak
I'm using the places library with autocomplete and once the user selects an 
address from the list I parse the results to separate out street, city, 
state, etc.

 var thestreet = place.address_components[0].short_name + ' ' +
place.address_components[1].short_name;
  var thecity=place.address_components[2].short_name;
  var thestate=place.address_components[5].short_name;
  var thezip=(place.address_components[7] &&
place.address_components[7].short_name || '');
  var thelat=place.geometry.location.lat();
  var thelng=place.geometry.location.lng();
  var theaddress = '';
  var theaddress =  place.address_components[0].short_name + ' ' +
place.address_components[1].short_name + '' 
+
place.address_components[2].short_name + ', ' +
place.address_components[5].short_name + ' ' +
thezip + '' +
place.geometry.location.lat() + ', ' + 
place.geometry.location.lng();

The problem I'm having is that some addresses will return with the correct 
results and other have the results shifted. As an example, 126 Ardmore Way, 
Benicia, CA yields the correct results, but when I entered 35th Street, 
Sacramento, CA the street and city are correct but the state is returned as 
"US". The same thing happens with 28 Sherwood Way, Menlo Park, CA

It isn't always just the State which is wrong as I've seen other fields 
shifted.

Am I missing something about how the place.address_components array is 
created?

-- 
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/-/UTEaNo1iX7YJ.
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: InfoWindow Problems with Maps & Fusion Tables Combined

2011-08-04 Thread geocode...@gmail.com
On Aug 4, 2:06 pm, "Matthew W. Shepherd"
 wrote:
> I'm developing an interactive map based on Fusion Tables data at the
> following test 
> URL:http://library.sc.edu/digital/collections/greenbook_map_test.html
>
> There are two primary errors involving InfoWindows that I've run into:
>
> 1.) When a marker is clicked on the map, the corresponding InfoWindow
> displays; however, when a data row is selected from the DataTable, the
> previous map-selected InfoWindow does not close. I've included
> "if(infowindow) infowindow.close();" in the selectHandler() function,
> but this apparently does not affect the map-selected InfoWindows.

Only create one infowindow.  Reuse it to display any contents.

>
> The close function does close each DataTable-selected InfoWindow when
> a new DataTable row is selected. Moreover, if a DataTable-selected
> InfoWindow is open, selecting a marker on the map itself causes the
> DataTable-selected InfoWindow to close properly.
>
> 2.) Apparently related to this issue with calling InfoWindows: I want
> all InfoWindows to include a "Zoom here" link. The code for DataTable-
> selected InfoWindows does this properly, zooming the map in with the
> selected marker at the center. However, I have been unable to make
> this work for map-selected InfoWindows. Using
> "map.setCenter(marker.getPosition());" and
> "map.setCenter(infowindow.getPosition());" did not work properly for
> me. The latter turned out to zoom in at the most recent DataTable-
> selected InfoWindow location (or outside the map if none was
> previously selected). Using "e.latLng" comes close, but zooms in on
> the point where the map was clicked, rather than on the marker itself.

Theoretically, event.LatLng should work based on the documentation:
latLng  LatLng  The position at which to anchor an infowindow on the
clicked feature.

However, if that isn't working, you have the row data available in in
the click event also:
row Object  A collection of FusionTablesCell objects, indexed by
column name, representing
the contents of the table row which included the
clicked feature.

Parse the latitude and longitude out of the "geometry" column in the
row just like you do in the select handler.

  -- Larry

>
> I believe that both of these problems are due to some error on my part
> in not declaring the infowindow variable correctly. I hope that
> there's some simple issue I'm overlooking that will set both of these
> straight. Thank you in advance, and I hope my (admittedly learning-as-
> I-go) code's otherwise up to snuff!

-- 
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] Why doesnt work the Dutch translation ?

2011-08-04 Thread Patilion
The route discription aint translated in Dutch.
When will this be solved by Google ?
 
With kind regard

-- 
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/-/xrTmR6znp1kJ.
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: Place AutoComplete Passing Results

2011-08-04 Thread GeorgeIoak
my bad again as i had placed the parsing section of code outside of the 
correct function

-- 
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/-/1asYxMinBF4J.
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: Save new position of the dragged marker

2011-08-04 Thread GeorgeIoak
sorry, it was my bad. i was looking at the code and expecting the info 
window to show up with the marker but on 2nd look i noticed that after the 
marker was placed you needed to click again to show the info

-- 
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/-/uiwpHnaYUf8J.
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: MarkerClusterer - removing individual clusters

2011-08-04 Thread Gary Little
There is no documented way to programmatically hide a cluster other
than by using the minimumClusterSize property.

Barry could probably get the desired effect by using
MarkerClustererPlus (an enhanced version of MarkerClusterer), however.
What you would do is hide markers that don't meet your criteria and
show those that do. For this to work, you must set the ignoreHidden
property to true when creating the marker clusterer. You must also
call the marker clusterer's repaint() method after changing the hide/
show status of any marker (or once after changing the status of all
the markers in a batch). You don't have to provide a custom calculator
because the standard calculator will include only those markers that
satisfy your criteria (i.e., the visible markers). You will never see
a cluster icon with a "0" label again.

I use this technique for my interactive real estate map and it works
great. It is one of the main reasons I created MarkerClustererPlus in
the first place.

See 
http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclustererplus/



On Jul 25, 1:49 am, Daejeon  wrote:
> If there is no getCalculator? Is there any method to hide the icon? Thanks
> for the answer

-- 
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: Polygons visible only at certain zoom levels??

2011-08-04 Thread Gary Little
Yes, that's how to do it: add a handler for the map's "zoom_changed"
event then change the visibility of your polygons depending on the
current zoom level. I do something like this for hiding labels at low
zoom levels and showing them when the map is zoomed in beyond a
threshold value.

On Aug 3, 11:28 am, Nathan Handley  wrote:
> Hi,
>
> Is there a way like markermanager to have a polygon only visible at
> certain zoom levels?  I have looked but can't seem to find any
> answers.  I suppose I could have a javascript function that tests for
> current zoom level and then changes visibility based on that.  Just
> trying to not reinvent the wheel.
>
> Any insight would be great.
> TIA

-- 
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] v3 Map not showing in Java Portlet

2011-08-04 Thread DJ Spiess
I'm trying to put a Google map (v3) into a portlet.  When I run the 
Sydney/Hellow World example from the tutorial from a straight HTML page it 
runs fine.  When I try to embed the same code into a Java portlet, nothing 
shows.  It was working in v2.  The only lines I've added to the HTML from 
the example are

<%@ page language="java" contentType="text/html; charset=ISO-8859-1" 
pageEncoding="ISO-8859-1"%>

<%@ include file="/init.jsp" %>


Everything else is exactly as it is in the hello world example. The init.jsp 
is just a jsp with includes.  I don't have a public facing portal to 
demonstrate the problem, but has anyone else seen this?  Is there something 
I'm missing or should be looking at?

-- 
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/-/7NmudwHKEXIJ.
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] InfoWindow Problems with Maps & Fusion Tables Combined

2011-08-04 Thread Matthew W. Shepherd
I'm developing an interactive map based on Fusion Tables data at the
following test URL: 
http://library.sc.edu/digital/collections/greenbook_map_test.html

There are two primary errors involving InfoWindows that I've run into:


1.) When a marker is clicked on the map, the corresponding InfoWindow
displays; however, when a data row is selected from the DataTable, the
previous map-selected InfoWindow does not close. I've included
"if(infowindow) infowindow.close();" in the selectHandler() function,
but this apparently does not affect the map-selected InfoWindows.

The close function does close each DataTable-selected InfoWindow when
a new DataTable row is selected. Moreover, if a DataTable-selected
InfoWindow is open, selecting a marker on the map itself causes the
DataTable-selected InfoWindow to close properly.


2.) Apparently related to this issue with calling InfoWindows: I want
all InfoWindows to include a "Zoom here" link. The code for DataTable-
selected InfoWindows does this properly, zooming the map in with the
selected marker at the center. However, I have been unable to make
this work for map-selected InfoWindows. Using
"map.setCenter(marker.getPosition());" and
"map.setCenter(infowindow.getPosition());" did not work properly for
me. The latter turned out to zoom in at the most recent DataTable-
selected InfoWindow location (or outside the map if none was
previously selected). Using "e.latLng" comes close, but zooms in on
the point where the map was clicked, rather than on the marker itself.


I believe that both of these problems are due to some error on my part
in not declaring the infowindow variable correctly. I hope that
there's some simple issue I'm overlooking that will set both of these
straight. Thank you in advance, and I hope my (admittedly learning-as-
I-go) code's otherwise up to snuff!

-- 
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] php to xml to gmaps markers

2011-08-04 Thread Brian
Hi, 
I'm a newbie to google maps. 

I have a web service that gives me the long and lat for addresses.  I am 
able to send that information to simple xml, and output the xml.  What I 
cannot figure out though is why my markers are not populating from this 
data.  

I'm using this article's example as my 
basis: http://code.google.com/apis/maps/articles/phpsqlajax_v3.html

my output to xml looks like this: 
 

As I said though, I cannot get the markers to populate. Any ideas?  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/-/DpfXw1kR_MUJ.
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] Getting originating host name when a site makes an Google Maps API call to my server data

2011-08-04 Thread Barry Hunter
It wouldnt be reliable, but you could include it in the actual html.

geoXml = new 
GGeoXml("http://dev.yourmapper.com/api/markers.php?rip=1.2.3.4&id=fc6e563883b...

What ever writes your html pages, could just write the IP into the source too.


On Thu, Aug 4, 2011 at 8:21 PM, Metro Mapper  wrote:
> I'm building out an API and have a question about how to track/know
> which domains use the call, after the KML gets picked up by Google's
> servers for rendering.
>
> So for example, my domain that is serving up the API PHP file is
> called dev.yourmapper.com. Someone on the domain www.metromapper.org
> builds a page that creates a Google map, and calls my file using Ajax
> to overlay my data on their map. Google grabs that KML file, then
> serves it back to the user.
>
> Here is that example in action: http://www.metromapper.org/example/apitest.htm
>
> (Click the center map marker to see a popup of all the PHP Server
> variables available to the yourmapper.com script.)
>
> Since Google is grabbing it, I can't use the PHP variables REMOTE_HOST
> or REMOTE_ADDR to get the 'metromapper.org' site info. They only tell
> me Google's IPs.
>
> So is there some other way to get this data? Does Google happen to
> return it in the header somewhere? Any ideas on how to track or pass
> the originating remote host name around so I can get it when the call
> is made? Thanks, I realize this might not be solvable.
>
> --
> 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] Re: Google Map for my website HELP

2011-08-04 Thread Gina Lozano
All is good now. THANK U EVERYONE for responding and trying to help me! Ur
AWESOME!!
The problem was I had to "insert" the Html code as opposed to copy/paste it.
Im using Just Host (site builder,control panel) to build the website. It
uses Rich Text. Learn something new everyday! LOL.
Thanks again!
Gina.

On Thu, Aug 4, 2011 at 10:46 AM, MymsMan  wrote:

> I should have said claim your business and update the details in Google
> Places (
> http://www.google.com/local/add/details?storeid=624646827691260866&mode=existing&flowtype=os&hl=en-US&gl=US&lookup=CLAIM)
> rather than just saving a marker to My Maps
>
>  --
> 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/-/fMpan5e2MM4J.
>
> 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] Re: Using JQuery to set opacity to a KMZ's png file

2011-08-04 Thread geocode...@gmail.com
On Aug 4, 12:56 pm, weekend  wrote:
> Thought so. The KML is a great way to store 1,000 of maps though since the
> coords and PNG reference are in there. You think I should be working to
> import Bounds data and PNG file name data from a KML?

That is really up to you, and really depends on your data source and
your tools.

If you have a tool that creates the kml/kmz for you that might be
simpler and it is a "standard".

But if your tools provide the bounds and the images in a way that lets
you easily create the native map elements, that might be better as you
won't depend on a third party library (geoxml3) which you don't
control or Google's kml parser on google's servers which occasionally
breaks, and which we have no insight into (doesn't correspond to API
releases, seems to be shared by Google Maps, and both Google Maps
APIs).

I guess you can't get away from ProjectedOverlay though.

Others may have better insight into the advantages and disadvantages
of kml vs other options.

  -- Larry

>
> Thanks for keeping up on the project!

-- 
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: Using JQuery to set opacity to a KMZ's png file

2011-08-04 Thread weekend
Thought so. The KML is a great way to store 1,000 of maps though since the 
coords and PNG reference are in there. You think I should be working to 
import Bounds data and PNG file name data from a KML?

Thanks for keeping up on the project!

-- 
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/-/HZnB-PIgF3YJ.
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: Using JQuery to set opacity to a KMZ's png file

2011-08-04 Thread geocode...@gmail.com
On Aug 4, 12:02 pm, weekend  wrote:
> Phew, saved me again Larry. Got it up and working, here's a question though:
>
> I was feeding the ProjectedOverlay constructor the XML file as the image,
> but was getting an invalid image, so I fed it the PNG and it worked like a
> charm. Since the bounds of the png are already set through the Bounds
> variable, am I just ditching the KML/XML file altogether?

You don't need to use kml or kmz, inf fact it looks like you don't
need geoxml3 or kml/kmz at all right now.

This is what is creating the overlay on the map:
new ProjectedOverlay(map, '/maps/44x58/
_agse669e0e8005449db80a6b5e75b0be482.png', overlaybounds,
overlayOptions)

Which for some reason you have as an argument to the myParser.parse
function, where:
 var myParser = new geoXML3.parser({map: map});

If you want to vary the opacity, save a reference to the object
returned by the new ProjectedOverlay and use that to call setOpacity.


(BTW - the ProjectedOverlay was developed originally by John Coryat, I
have been maintaining the version in the geoxml3 project because it
allows geoxml3 to display groundoverlays)

  -- 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-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] Getting originating host name when a site makes an Google Maps API call to my server data

2011-08-04 Thread Metro Mapper
I'm building out an API and have a question about how to track/know
which domains use the call, after the KML gets picked up by Google's
servers for rendering.

So for example, my domain that is serving up the API PHP file is
called dev.yourmapper.com. Someone on the domain www.metromapper.org
builds a page that creates a Google map, and calls my file using Ajax
to overlay my data on their map. Google grabs that KML file, then
serves it back to the user.

Here is that example in action: http://www.metromapper.org/example/apitest.htm

(Click the center map marker to see a popup of all the PHP Server
variables available to the yourmapper.com script.)

Since Google is grabbing it, I can't use the PHP variables REMOTE_HOST
or REMOTE_ADDR to get the 'metromapper.org' site info. They only tell
me Google's IPs.

So is there some other way to get this data? Does Google happen to
return it in the header somewhere? Any ideas on how to track or pass
the originating remote host name around so I can get it when the call
is made? Thanks, I realize this might not be solvable.

-- 
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: Using JQuery to set opacity to a KMZ's png file

2011-08-04 Thread weekend
Phew, saved me again Larry. Got it up and working, here's a question though:

I was feeding the ProjectedOverlay constructor the XML file as the image, 
but was getting an invalid image, so I fed it the PNG and it worked like a 
charm. Since the bounds of the png are already set through the Bounds 
variable, am I just ditching the KML/XML file altogether?

-- 
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/-/6y5IbQjjfIUJ.
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] Perplexed by seemingly simple task: show marker with 'standard' info/overlay for an address

2011-08-04 Thread Jeremy Geerdes
There is no way to get all of the same information Google provides on 
maps.google.com. However, you could use the Places API to get a good deal of 
the information you're looking for.

Jeremy R. Geerdes
Generally Cool Guy
Des Moines, IA

For more information or a project quote:
jrgeer...@gmail.com

If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan Church!

On Aug 4, 2011, at 8:42 AM, doncx wrote:

> I've jumped in to the API and can do all kinds of things with maps.
> It's cool.
> 
> But one thing escapes me:  How do I create a marker that, when clicked
> shows the 'standard' overlay/info for a particular address.  You know,
> the one that you see when you go to http://maps.google.com and search
> an address.
> 
> It would at least show the address and a "directions" link.  Do I have
> to code all this up in an info window or is there a simple shortcut to
> achieve what users normally expect from a searched address.
> 
> Thanks for any help,
> 
> - Don
> 
> 
> 
> -- 
> 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] Re: Chrome/Google Maps/Multi touch displays

2011-08-04 Thread Mitchel
this is now a year ago is there now a work around ?

-- 
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/-/SQnAEUqMDEsJ.
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] Perplexed by seemingly simple task: show marker with 'standard' info/overlay for an address

2011-08-04 Thread doncx
I've jumped in to the API and can do all kinds of things with maps.
It's cool.

But one thing escapes me:  How do I create a marker that, when clicked
shows the 'standard' overlay/info for a particular address.  You know,
the one that you see when you go to http://maps.google.com and search
an address.

It would at least show the address and a "directions" link.  Do I have
to code all this up in an info window or is there a simple shortcut to
achieve what users normally expect from a searched address.

Thanks for any help,

- Don



-- 
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: Bug: overviewMapControl:true, and ImageMapType

2011-08-04 Thread en4ce
yeah esa i know, but i gave up to support the IE period, maybe with
the 10 but the beta dont look to good for me

On 4 Aug., 18:15, Esa  wrote:
> Confirmed. I cannot see anything wrong with your MapType definition.
> Probably you discovered a bug in api. Please file 
> it.http://code.google.com/p/gmaps-api-issues/issues/entry?template=Maps%...
>
> Nothing to do with the issue, but. You should delete the trailing
> commas in mapOptions object that IE users can access the page also.

-- 
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: Bug: overviewMapControl:true, and ImageMapType

2011-08-04 Thread Esa
Confirmed. I cannot see anything wrong with your MapType definition.
Probably you discovered a bug in api. Please file it.
http://code.google.com/p/gmaps-api-issues/issues/entry?template=Maps%20API%20v3%20-%20Bug

Nothing to do with the issue, but. You should delete the trailing
commas in mapOptions object that IE users can access the page also.

-- 
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: Google Map for my website HELP

2011-08-04 Thread MymsMan
I should have said claim your business and update the details in Google 
Places 
(http://www.google.com/local/add/details?storeid=624646827691260866&mode=existing&flowtype=os&hl=en-US&gl=US&lookup=CLAIM)
 
rather than just saving a marker to My Maps

-- 
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/-/fMpan5e2MM4J.
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] Bug: overviewMapControl:true, and ImageMapType

2011-08-04 Thread en4ce
i am not sure since when this bug is in but it must be quite new or i
am just stupid

suddenly my open street map layer broke and i used quite some time
tracing where the error is, here is the problem: my openstreetmap
layer would not appear and give a error
finally i took a look on the map otions array so

if "overviewMapControl:true" the "map.mapTypes.set('OSM',osmMapType);"
method give a error and don't change the layers, when remove the
"overviewMapControl:true" everything works as expected

see here for an example:

bug: http://www.youspots.com/tests/overviewMapControltrue.php?bug=true
no bug: http://www.youspots.com/tests/overviewMapControltrue.php

bests!
-- en4ce

-- 
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: Google Map for my website HELP

2011-08-04 Thread MymsMan
When you click on the 'Link' icon at the top of the maps page and then click 
on 'Customize and preview embedded map' 
it generates a whole long  tag which you need to copy and paste into 
your web page source in its entirety.
You have merely coded a simple  link which will provide a link 
but not embed the map onto your web page.

Before embedding the map you may also wish to create a marker for your 
business and save it My Maps so viewers see your business rather than a 
driving range when they view the map.

-- 
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/-/TJW4E-r98BsJ.
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: Google Map for my website HELP

2011-08-04 Thread Andrew Leach
On 4 August 2011 15:47, Gina Lozano  wrote:
> Yes, I was simply trying to embed a maps.google.com into my site but all I
> see is the "VIEW LARGER MAP" (link) on there. (under my "SERVICES" pg).
> www.gaslogexpress.com  I thought there was supposed to be a small picture
> displayed along with the link. This is what Im not understanding. If using
> Google API is much better than I will gladly use that instead.

I think the problem is whatever CMS you're using -- it looks vaguely
like a Wordpress template, but I can't tell. Perhaps you could
investigate a plug-in or something which does the job.

Adding an API map to a blog or CMS has some pitfalls and is not really
for the inexperienced.

-- 
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: Google Map for my website HELP

2011-08-04 Thread Gina Lozano
Yes, I was simply trying to embed a maps.google.com into my site but all I
see is the "VIEW LARGER MAP" (link) on there. (under my "SERVICES" pg).
www.gaslogexpress.com  I thought there was supposed to be a small picture
displayed along with the link. This is what Im not understanding. If using
Google API is much better than I will gladly use that instead.

On Thu, Aug 4, 2011 at 8:57 AM, Rossko  wrote:

> > I've been reading and reading and I still cannot find EXACTLY How to
> > post or embed a GOOGLE MAP on my website. I thought all I had to do
> > was Copy/Paste the html code into my website but all I see is the text/
> > link on my website: ''VIEW LARGER MAP". I do not see the Actual map on
> > my website. I wanted the Map to go on the 'SERVICES' page of my
> > website.
>
> I think what you are trying to do is embed a maps.google.com map. This
> has nothing to do with the API, the subject of this group.
>
> Can't see where you've gone wrong because I can't find "View Larger
> Map" in your website.
>
> --
> 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] Re: I have a polygon, how to know Technical Info point is the inside of my polygon

2011-08-04 Thread Esa
Right. Looks like a section of Mike Williams' Epoly library.  That is
in v2 syntax. Larry has ported that to v3:
http://www.geocodezip.com/scripts/v3_epoly.js

That works fine if you have a single path polygon. To be precise,  v3
enables multipath polygons (holes and islands on holes). So a full v3
port would need a few more lines.

The original algorithm is explained here:
http://alienryderflex.com/polygon/

-- 
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: Using JQuery to set opacity to a KMZ's png file

2011-08-04 Thread geocode...@gmail.com
On Aug 4, 6:39 am, weekend  wrote:
> Larry- It's starting to come together. Am I adding myParser to an array
> groundoverlays[]? I don't seem to know where the setOpacity method is.
>
> I don't see it in your code.

The groundoverlays are implemented using the ProjectedOverlay.js third
party library, that is where the setOpacity method is defined.

The geoXmlDoc.ggroundoverlays array (in my code) is an array of
ProjectedOverlay objects created by the geoxml3 parser that implement
the kml GroundOverlays.

  -- Larry

>
> 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] Re: Google Map for my website HELP

2011-08-04 Thread Rossko
> I've been reading and reading and I still cannot find EXACTLY How to
> post or embed a GOOGLE MAP on my website. I thought all I had to do
> was Copy/Paste the html code into my website but all I see is the text/
> link on my website: ''VIEW LARGER MAP". I do not see the Actual map on
> my website. I wanted the Map to go on the 'SERVICES' page of my
> website.

I think what you are trying to do is embed a maps.google.com map. This
has nothing to do with the API, the subject of this group.

Can't see where you've gone wrong because I can't find "View Larger
Map" in your website.

-- 
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: Using JQuery to set opacity to a KMZ's png file

2011-08-04 Thread weekend
Larry- It's starting to come together. Am I adding myParser to an array 
groundoverlays[]? I don't seem to know where the setOpacity method is.

I don't see it in your code.

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/-/Spy3haJMbrkJ.
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: Using JQuery to set opacity to a KMZ's png file

2011-08-04 Thread weekend
WIlliam- that doesn't seem to work. Am I missing anything? Just replaced my 
line with yours.

Larry- I'll give it a go. 

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/-/wNTlMykCrloJ.
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: Using JQuery to set opacity to a KMZ's png file

2011-08-04 Thread William
On Aug 4, 8:37 am, weekend  wrote:
> Any ideas on how to have the script not affect the GMap tiles?

you could just search for  with kml in the src attribute:

$("#map_canvas").find('img[src*="kml"]').css("opacity","0.4")

...

-- 
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: Google Map for my website HELP

2011-08-04 Thread davie
Hi
Follow the tutorial  
http://code.google.com/apis/maps/documentation/javascript/tutorial.html
Set sensor=true
 ie src="http://maps.googleapis.com/maps/api/js?sensor=true";>
Change the coordinates to suit in
 var latlng = new google.maps.LatLng(-34.397, 150.644);
play about with div  position and width and height until you are
happy.
Once you get the hang of this you can embed the map into your site.
Regards Davie

On Aug 3, 10:53 pm, Genesites  wrote:
> I've been reading and reading and I still cannot find EXACTLY How to
> post or embed a GOOGLE MAP on my website. I thought all I had to do
> was Copy/Paste the html code into my website but all I see is the text/
> link on my website: ''VIEW LARGER MAP". I do not see the Actual map on
> my website. I wanted the Map to go on the 'SERVICES' page of my
> website.
> I also tried viewing my website in Firefox to see if maybe my IE
> webbrowser wasn't allowing me to see the Map. In Firefox, I still
> don't see the Map. :-(
>
> My website is: WWW.GASLOGEXPRESS.COM.
>
> Please Help. What am I doing wrong?? Any help is very much
> appreciated. Thank You!!
>
> Gee.

-- 
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: search the best (optimized) place

2011-08-04 Thread Rossko
> Can anyone please help me in this

Not really.  We have no idea even how you are "creating a route".
Guessing that you might be using the Directions service, you probably
aren't taking account of its asynchronous nature.  If you fire off
multiple requests the results may not come back in the same order.

-- 
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: activate event if zoom level bigger than x

2011-08-04 Thread Andrew Leach
On 4 August 2011 10:35, Syswatch  wrote:
> Hmm...
> I would like to remove the Listener if zoomed out again, but this is
> not working:

Probably to do with variable scope (where your "var" keyword is within
your code), but with code snippets instead of a link it's not really
possible to say.

Why don't you test the zoom level inside the click handler function,
and only do something if it's within the acceptable range? That is,
get every click and then see whether something should happen.

It means you don't have to mess around with adding and removing
listeners -- the click listener is always there, which means it will
be available if you want to add more functionality later on.

-- 
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: activate event if zoom level bigger than x

2011-08-04 Thread Syswatch
Hmm...
I would like to remove the Listener if zoomed out again, but this is
not working:

google.maps.event.addListener(map, 'zoom_changed', function() {
zoom = map.getZoom();
if(zoom>12) {
 map.setMapTypeId(google.maps.MapTypeId.SATELLITE);
 listenerHandle = google.maps.event.addListener(map, 'click',
function(event) {
 myLatLng = event.latLng;
 oLat = document.getElementById("lat");
 oLat.value = myLatLng.lat();
 oLon = document.getElementById("lon");
 oLon.value = myLatLng.lng();
 });

} else {

 map.setMapTypeId(google.maps.MapTypeId.ROADMAP);
 google.maps.event.removeListener(listenerHandle);
}
});

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-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: activate event if zoom level bigger than x

2011-08-04 Thread Syswatch
I got it working with this code, if anyone have the same question:

google.maps.event.addListener(map, 'zoom_changed', function()
{
zoom = map.getZoom();
if(zoom>12) {
 map.setMapTypeId(google.maps.MapTypeId.SATELLITE);
 google.maps.event.addListener(map, 'click', function(event) {
 myLatLng = event.latLng;
 oLat = document.getElementById("lat");
 oLat.value = myLatLng.lat();
 oLon = document.getElementById("lon");
 oLon.value = myLatLng.lng();
 });

} else {

 map.setMapTypeId(google.maps.MapTypeId.ROADMAP);

}
});

Pil: The code is not working if I put the var in front of the
variables.

Jesper

-- 
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: activate event if zoom level bigger than x

2011-08-04 Thread Pil
You'd have to put your listeners in a function and call that function
at the desired zoom level. And don't forget to remove the listener at
undesired zoom levels.

This is no good practice (if the variable shouldn't be global)

oLat = document.getElementById("lat");

It guess it's a local variable, so you shouldn't forget the var
keyword:

var oLat = document.getElementById("lat");




On Aug 4, 10:54 am, Syswatch  wrote:
> Hi out there...
> Im currently working on a Google Map (v3), and have added this code,
> to let people place new marks on the map.
>
> google.maps.event.addListener(map, 'click', function(event) {
>       var myLatLng = event.latLng;
>       oLat = document.getElementById("lat");
>       oLat.value = myLatLng.lat();
>           oLon = document.getElementById("lon");
>           oLon.value = myLatLng.lng();
>       });
>
> But, I would like to have, so that this code only is active if the
> zoom level of the map is bigger than x.
> This is to ensure that people is placing the mark as accurate as
> possible.
>
> Im not that good at java script, and cant find any in the
> dokumentation that has this effect.
>
> Can you maybe help me or guide me in the right direction ?
>
> Best regards,
> Jesper Andersen

-- 
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] search the best (optimized) place

2011-08-04 Thread Anuj Jain
I am using places library to get the results of the place i want to search. 
To find the place which is nearest to my location, i am creating a route 
between each place and my location and i pushed all the distances in a array 
but the distance is not pushed in order of places i request. Like if 20 
places are return i use a for loop to calculate distance of each place and 
store it in array but the distances doesn;t get in order and there is nof 
fix pattern for the distance storage, sometimes it stores correctly, so it 
is quite random. Can anyone please help me in this

-- 
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/-/OUrbvIKZkLMJ.
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: I have a polygon, how to know Technical Info point is the inside of my polygon

2011-08-04 Thread Bob Tedlar

Exact : the same questions generally lead to the same answers !

http://groups.google.com/group/google-maps-js-api-v3/search?hl=en_US&;...

/**
*   @desc Check if polygon contains point.
*   @return boolean
**/
GPolygon.prototype.Contains = function(point) {
var j=0;
var oddNodes = false;
var x = point.lng();
var y = point.lat();
for (var i=0; i < this.getVertexCount(); i++) {
  j++;
  if (j == this.getVertexCount()) {j = 0;}
  if (((this.getVertex(i).lat() < y) && (this.getVertex(j).lat()
>= y))
  || ((this.getVertex(j).lat() < y) && (this.getVertex(i).lat() >=
y))) {
if ( this.getVertex(i).lng() + (y - this.getVertex(i).lat())
/  (this.getVertex(j).lat()-this.getVertex(i).lat())
*  (this.getVertex(j).lng() - this.getVertex(i).lng())http://groups.google.com/group/google-maps-js-api-v3?hl=en.



[Google Maps API v3] activate event if zoom level bigger than x

2011-08-04 Thread Syswatch
Hi out there...
Im currently working on a Google Map (v3), and have added this code,
to let people place new marks on the map.

google.maps.event.addListener(map, 'click', function(event) {
  var myLatLng = event.latLng;
  oLat = document.getElementById("lat");
  oLat.value = myLatLng.lat();
  oLon = document.getElementById("lon");
  oLon.value = myLatLng.lng();
  });

But, I would like to have, so that this code only is active if the
zoom level of the map is bigger than x.
This is to ensure that people is placing the mark as accurate as
possible.

Im not that good at java script, and cant find any in the
dokumentation that has this effect.

Can you maybe help me or guide me in the right direction ?

Best regards,
Jesper Andersen

-- 
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] I have a polygon, how to know Technical Info point is the inside of my polygon

2011-08-04 Thread Chris Broadfoot
Try here:
http://groups.google.com/group/google-maps-js-api-v3/search?hl=en_US&group=google-maps-js-api-v3&q=point+inside+polygon&qt_g=Search+this+group

--
http://twitter.com/broady



On Thu, Aug 4, 2011 at 5:24 PM, franklinNY  wrote:

> I have a polygon, how to know Technical Info point is the inside of my
> polygon,
> I would like to display just the marker whose coordinates are the one in
> my polygon
>
> --
> 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/-/Gbd7VS5I43EJ.
> 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] I have a polygon, how to know Technical Info point is the inside of my polygon

2011-08-04 Thread franklinNY
I have a polygon, how to know Technical Info point is the inside of my 
polygon,
I would like to display just the marker whose coordinates are the one in my 
polygon

-- 
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/-/Gbd7VS5I43EJ.
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.