[Google Maps API v3] Re: Problem with calls to places

2011-11-17 Thread goexuma
I read the documentation you suggested, and I think I am ok.  I only need 
to retreive the place locations on a month or so.  I am guessing that there 
is no more than 200 places in total.

Thanks again

-- 
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/-/RY5mdiG35YkJ.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



[Google Maps API v3] Re: Problem with calls to places

2011-11-17 Thread Rossko
> Do you have any suggestions about how to retrieve more than 20 results.

Not really.  They set the limit to prevent abuse.

> I was thinking of creating an arry of lat/lng boxes and then loop through
> them as a way around the limit of 20.

You'll need to read this part of the docs too
http://code.google.com/apis/maps/documentation/places/#Limits
Note that unmentioned, but implied, is a limit on rate of requests as
well as daily volume.

-- 
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: About GOverviewMapControl function

2011-11-17 Thread geocode...@gmail.com
On Nov 17, 5:25 pm, "xinyun_0...@126.com"  wrote:
> In API v2 i saw the function like GOverviewMapControl(),But i use API
> v3 now.So i want to know is there any way to replace
> GOverviewMapControl(),Thanks!

Did you look in the documentation:

http://code.google.com/apis/maps/documentation/javascript/reference.html#OverviewMapControlOptions

Did you search the group?

http://groups.google.com/group/google-maps-js-api-v3/search?q=GOverviewMapControl&start=0&scoring=d&;

>From the above search these seem relevant:

http://groups.google.com/group/google-maps-js-api-v3/browse_frm/thread/b2ac2e54d30cc538/ff9c2d8bae204107?lnk=gst&q=mini+map#ff9c2d8bae204107

http://groups.google.com/group/google-maps-js-api-v3/browse_frm/thread/11fa70f7bb82a9ce/9d04ebe191180e4e?lnk=gst&q=GOverviewMapControl#9d04ebe191180e4e


Which points to this:

http://gmaps-api-v3-overviewmapcontrol.googlecode.com/svn/trunk/index.html

(but it is now built in to the 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-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



[Google Maps API v3] Re: Problem with calls to places

2011-11-17 Thread goexuma
Thanks so much, thats the problem.

I read the documentation, but missed that line.

Do you have any suggestions about how to retrieve more than 20 results.

I was thinking of creating an arry of lat/lng boxes and then loop through 
them as a way around the limit of 20. 

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/-/yC9G3ddN1N4J.
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] About GOverviewMapControl function

2011-11-17 Thread xinyun_0...@126.com
In API v2 i saw the function like GOverviewMapControl(),But i use API
v3 now.So i want to know is there any way to replace
GOverviewMapControl(),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: 2011/11/7 - New Release (3.7) - editable shapes, DrawingManager, and more

2011-11-17 Thread Silas
First off, great job. Editable polygons are awesome! I just finished 
implementing my own editable polygons using markers but like the way google 
maps handles it. The only think I'm not so fond of are the huge squares at 
the vertices. Is there a way to specify your own icons for the prime 
vertices and the secondary vertices? If not, is there a way to choose a 
size for the squares? We really want to use this new feature but the large 
squares aren't as usable for our application. Thanks for all you great work!

Silas

-- 
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/-/sfGIAPXHpuIJ.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



[Google Maps API v3] Re: Problem with calls to places

2011-11-17 Thread Rossko
> Does the places api have a maximum number of entries that can be returned
> in one call.

You could try the documentation I suppose
http://code.google.com/apis/maps/documentation/places/#PlaceSearchResponses
" The Places API returns up to 20 establishment results. Additionally,
political results may be returned which serve to identify the area of
the request. "

-- 
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: Custom Marker for Fusion Table entries (nothing loads on the map)

2011-11-17 Thread geocode...@gmail.com
On Nov 17, 2:44 pm, Amelia Griza-Padilla 
wrote:
> Hi Larry,
> Thanks for your suggestions. I went back through it and made the
> changes, but I'm still not able to see any of the markers on my map.

Here is the version I created when formulating those suggestions:

http://www.geocodezip.com/advocacy_ucla_edu_communitybanner_locationsC.html


>
> Also using the debugger I am getting an error at line 46: var numRows
> = response.getDataTable().getNumberOfRows();

Here is that line of code in context:
===
function getData(response) {



  for (i = 0; i < numRows; i++) {
===

How are you expecting numRows to be defined?

>
> Background: I got this code 
> fromhttp://gmaps-samples.googlecode.com/svn/trunk/fusiontables/custom_mar...
>
> I copy and paste this code into Dreamweaver, it works fine, no errors,
> when I replace it with my fusion table data I get the error.

My guess is your fusion table is different than theirs.  Code for
fusion tables needs to be written for the format of the data in the
table it is using.

> Sorry, I'm really lost, any advice?
> Here's the revised 
> codehttp://www.advocacy.ucla.edu/Maps/communitybanners/CommunityBanner_Lo...
>

Please don't post code, I'm not going to read it. Your link is
perfectly adequate and you run the risk of me ignoring your post, my
browser is a lot more efficient at finding errors in your code than I
am.

  -- 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] Re: 2011/11/7 - New Release (3.7) - editable shapes, DrawingManager, and more

2011-11-17 Thread koops
Thanks. That information would be a nice addition somewhere in the drawing 
manager documentation.

-- 
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/-/eTrbDjr9wN0J.
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: Geocoding a street addresses returns locations off the road

2011-11-17 Thread MymsMan
The directions service will return the nearest road address so you can ask 
for directions from A to A and retrieve the starting location from the 
direction result.

However if your location is in a pedestrian only area such as Venice the 
nearest road may be a long way away!

-- 
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/-/s5qwQ-ULOKkJ.
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: 2011/11/7 - New Release (3.7) - editable shapes, DrawingManager, and more

2011-11-17 Thread Enoch Lau (Google Employee)
http://code.google.com/apis/maps/documentation/javascript/reference.html#Polygon

Call setEditable(true). There's no need to load the drawing library to use 
setEditable.

-- 
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/-/EFYUihdiGD8J.
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: Custom Marker for Fusion Table entries (nothing loads on the map)

2011-11-17 Thread Amelia Griza-Padilla
Hi Larry,
Thanks for your suggestions. I went back through it and made the
changes, but I'm still not able to see any of the markers on my map.

Also using the debugger I am getting an error at line 46: var numRows
= response.getDataTable().getNumberOfRows();

Background: I got this code from
http://gmaps-samples.googlecode.com/svn/trunk/fusiontables/custom_markers.html

I copy and paste this code into Dreamweaver, it works fine, no errors,
when I replace it with my fusion table data I get the error.
Sorry, I'm really lost, any advice?
Here's the revised code 
http://www.advocacy.ucla.edu/Maps/communitybanners/CommunityBanner_Locations.html







Google Maps JavaScript API v3 Example: Fusion Tables Layer


  body { font-family: Arial, sans-serif; }
  #map_canvas { height: 600px; width:700px; }


http://maps.google.com/maps/api/js?
sensor=false">
http://www.google.com/jsapi";>


google.load('visualization', '1');

var tableid = 2177811;
var map;
var lastWindow;

function initialize() {
  map = new google.maps.Map(document.getElementById('map_canvas'), {
center: new google.maps.LatLng(34.30941257937057,
-118.1689453125),
zoom: 9,
mapTypeId: google.maps.MapTypeId.ROADMAP
  });

  setData();
}

function setData() {
  // Create a Chart Tools query to send to Fusion Tables
  var query = new google.visualization.Query(
  'http://www.google.com/fusiontables/gvizdata?tq=' +
  encodeURIComponent("SELECT 'name', 'geometry', 'Coordinates',
FROM 2177811")
  );
  query.send(getData);
}

// Define callback function, this is called when the results are
returned
function getData(response) {



  for (i = 0; i < numRows; i++) {
var string_coordinates = response.getDataTable().getValue(i, 1);
var split_coordinates = string_coordinates.split(",");
var lat = split_coordinates[0];
var lng = split_coordinates[1];
var coordinate = new google.maps.LatLng(lat, lng);

// Get row data for the info window
var name = response.getDataTable().getValue(i, 0);

createMarker(name, Coordinates);
  }
}

function createMarker(name, Coordinates) {
  // Create the marker
  var marker = new google.maps.Marker({
map: map,
position: Coordinates,
icon: new google.maps.MarkerImage("http://www.advocacy.ucla.edu/
Maps/communitybanners/communitybanner.png")
  });

  google.maps.event.addListener(marker, 'click', function(event) {
if (lastWindow) {
  lastWindow.close();
} else {
  lastWindow = new google.maps.InfoWindow();
}

// Set the position and contents of the info window, and open the
window
lastWindow.setPosition(coordinate);
lastWindow.setContent(name);
lastWindow.open(map);
  });
}













-- 
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: Custom Marker for Fusion Table entries (nothing loads on the map)

2011-11-17 Thread Amelia Griza-Padilla
Hi Larry,Thanks for your suggestions.  I went back through it and made
the changes, but I'm still not able to see any of the markers on my
map. Also using the debugger I am getting an error at line 46   var
numRows = response.getDataTable().getNumberOfRows();
Background: I got this code from
http://gmaps-samples.googlecode.com/svn/trunk/fusiontables/custom_markers.htmlWhen
I copy and paste this code into Dreamweaver, it works fine, no errors,
when I replace it with my fusion table data I get the error.  Sorry,
I'm really lost, any advice?
Here's the revised code(http://www.advocacy.ucla.edu/Maps/
communitybanners/CommunityBanner_Locations.html):
Google Maps JavaScript API v3 Example: Fusion Tables Layer
  body { font-family: Arial, sans-serif; }  #map_canvas
{ height: 600px; width:700px; }
http://maps.google.com/maps/api/js?
sensor=false">
google.load('visualization', '1');
var tableid = 2177811;var map;var lastWindow;
function initialize() {  map = new
google.maps.Map(document.getElementById('map_canvas'), {    center:
new google.maps.LatLng(34.30941257937057, -118.1689453125),    zoom:
9,    mapTypeId: google.maps.MapTypeId.ROADMAP  });
  setData();}
function setData() {  // Create a Chart Tools query to send to Fusion
Tables  var query = new google.visualization.Query(      'http://
www.google.com/fusiontables/gvizdata?tq=' +     
encodeURIComponent("SELECT 'name', 'geometry', 'Coordinates', FROM
2177811")  );  query.send(getData);}
// Define callback function, this is called when the results are
returnedfunction getData(response) {
  var numRows = response.getDataTable().getNumberOfRows();
  for (i = 0; i < numRows; i++) {    var string_coordinates =
response.getDataTable().getValue(i, 1);    var split_coordinates =
string_coordinates.split(",");    var lat = split_coordinates[0];   
var lng = split_coordinates[1];    var coordinate = new
google.maps.LatLng(lat, lng);
    // Get row data for the info window    var name =
response.getDataTable().getValue(i, 0);
    createMarker(name, Coordinates);  }}
function createMarker(name, Coordinates) {  // Create the marker  var
marker = new google.maps.Marker({    map: map,     position:
Coordinates,    icon: new google.maps.MarkerImage("http://
www.advocacy.ucla.edu/Maps/communitybanners/communitybanner.png")  });
  google.maps.event.addListener(marker, 'click', function(event) {   
if (lastWindow) {      lastWindow.close();    } else {      lastWindow
= new google.maps.InfoWindow();    }
    // Set the position and contents of the info window, and open the
window    lastWindow.setPosition(coordinate);   
lastWindow.setContent(name);    lastWindow.open(map);  });}


 

On Nov 15, 5:32 pm, "geocode...@gmail.com" 
wrote:> On Nov 15, 4:56 pm, Amelia Griza-Padilla
> wrote:> > > Hello,> > I'm am having some
problems with creating custom markers for my> > entries in a fusion
table.  Here is the link (http://www.advocacy.ucla.edu/Maps/
communitybanners/communitybanner_lo..)> > and below is the code,
any ideas why this isn't working?> > 1. What do you mean by "isn't
working"?> > Looking at it, there are a number of issues.  I would
think the> javascript console should point some out.> > 1. You are
only requesting the 'geometry' column in your query, you> need
'Coordinates' and 'name' also.> "SELECT 'geometry', 'Coordinates',
'name' FROM 2177811"> > 2. Your Coordinates column is at 188 degrees
of longitude, Los Angeles> is at -118 degrees of longitude.> > 3. Your
createMarker function takes only one parameter (name), but> needs two
(name and coordinates).> > Beware, these queries can only return a
maximum of 500 rows, if you> add more locations than that they will
not display.> >   -- Larry> > > > > > > > > > > > > >
> > > >  > > > > > Community Programs> > >
> >   body { font-family: Arial, sans-serif; }> >   #map_canvas
{ height: 600px; width:700px; }> > > > > http://maps.google.com/maps/api/js?> >
sensor=false">> >  > script>> > >