[Google Maps API v3] 2011/3/2 - New Release

2011-03-01 Thread Chris Broadfoot (Google Employee)
Hi all, Recently a new version of the Maps API went live. We have made improvements to Marker rendering performance. Mobile browsers and IE can now display hundreds of markers in a second, while modern desktop browsers can render thousands of markers in a second. Note: if you listen for DOM even

Re: [Google Maps API v3] Parsing Geometry MySQL's Field

2011-02-28 Thread Chris Broadfoot
Aha - perhaps some server-side processing would be good here. If you could return the geometry as an array of floats, that would cut out most of your parsing time in JS. I suggest you change your pipeline to: - MySQL table with Geometry field (spatial extension) - Query it, usi

Re: [Google Maps API v3] Re: Use regular UI when touch events are present

2011-02-28 Thread Chris Broadfoot
You can read more about default UI here: http://code.google.com/apis/maps/documentation/javascript/controls.html#DefaultUI If there is something lacking, consider filing a feature request on the issue tracker. To me, it sounds like the browser is broken if it exposes touch events when there reall

Re: [Google Maps API v3] Re: Infowindows and Cross-Site Scripting (XSS) attacks

2011-02-28 Thread Chris Broadfoot
On Mon, Feb 28, 2011 at 11:51 AM, Esa wrote: > Because that has nothing to do with the subject of this forum. > > This is a forum for Google Maps JavaScript API v3. Not about secure > html forms. > This precisely. That said, do you need to secure against XSS attacks? Do you have cookies/user da

Re: [Google Maps API v3] Parsing Geometry MySQL's Field

2011-02-28 Thread Chris Broadfoot
Some of these may be of use... https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/indexOf https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/substring https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/split https://develop

Re: [Google Maps API v3] icon name from variable

2011-02-26 Thread Chris Broadfoot
You want to post to the V2 group: http://groups.google.com/group/Google-Maps-API Unfortunately V2 does not have a setIcon method: http://code.google.com/p/gmaps-api-issues/issues/detail?id=110 ... but V3 does! Chris -- You received this message because you are subscribed to the Google Groups

Re: [Google Maps API v3] Re: Problem with Google Maps API v3 on Ipad

2011-02-24 Thread Chris Broadfoot
Haven't had a chance to test this - but try changing var value = $(this).html(); to var value = $(this).text(); I have the feeling that iOS is recognising the numbers and adding some markup around them (used for calling phone from Mobile Safari) To verify my hunch - alert($(this).html()); Chris

Re: [Google Maps API v3] Re: Map doesn't load when touching Object.prototype in any browser

2011-02-24 Thread Chris Broadfoot
On Fri, Feb 25, 2011 at 5:04 AM, Yves wrote: > Here's my code: (just one example out of many) > > String.prototype.trim = function (c) { return > this.trimStart(c).trimEnd(c); }; > I don't think this code breaks the Maps API. I personally wouldn't recommend modifying prototypes of any built in

Re: [Google Maps API v3] Re: Error in Firefox: "Operation is not supported", Code 9

2011-02-24 Thread Chris Broadfoot
Rossko is absolutely correct. If you want to serve pages as XHTML, you need to load the API asynchronously: http://code.google.com/apis/maps/documentation/javascript/basics.html#Async I would personally recommend using HTML, not XHTML. Some browsers have issues with rendering pages with content t

[Google Maps API v3] 2011/2/22 - New Release

2011-02-22 Thread Chris Broadfoot (Google Employee)
Hi all, A new version of the Maps API went live recently. Full changelog is available here: http://code.google.com/p/gmaps-api-issues/wiki/JavascriptMapsAPIv3Changelog In this release: * InfoWindow anchor exposed via 'anchorPoint' MVC property (Issue 2860) * Fixes Hybrid at zoom level 0 and

Re: [Google Maps API v3] Can add images as markers on mobile? What are the limmitation of API v3 on mobile?

2011-02-21 Thread Chris Broadfoot
On Tue, Feb 22, 2011 at 1:44 PM, Dales wrote: > does all functionality of API v3 work on smartphones? Can I do things > like style the map and change the markers to images? Does athe > documenation for v3 apply almost equally to mobile? > Check supported platforms here: http://code.google.com/ap

Re: [Google Maps API v3] Re: wrong decimals in google.maps.LatLng ?

2011-02-17 Thread Chris Broadfoot
s hanging off the marker, I need to get the lat,lng > back from the marker in the same format as provided so I can search > the parent XML for the records at the position. > > Thanks again > > > > On Feb 18, 4:30 pm, Chris Broadfoot wrote: > > This is a floating p

Re: [Google Maps API v3] Re: wrong decimals in google.maps.LatLng ?

2011-02-17 Thread Chris Broadfoot
This is a floating point rounding error introduced by our longitude wrapping function. If you're absolutely sure that your latitude is between -90 and 90, and longitude between -180 and 180, you could pass true to the noWrap parameter of the LatLng constructor and the wrapping function will be byp

Re: [Google Maps API v3] Re: 2011/2/18 - New Release

2011-02-17 Thread Chris Broadfoot
Hi Nick, Have you got a link to your page? It's possible a change in this release caused this problem for you. Cheers Chris On Fri, Feb 18, 2011 at 1:55 PM, Nick Small wrote: > Hey Chris, > > The new controls look great, no problems there. But I do have a bug that's > popped up in 3.4, possibly

[Google Maps API v3] 2011/2/18 - New Release

2011-02-17 Thread Chris Broadfoot (Google Employee)
Hi all, We recently pushed out a new version of Maps JavaScript API v3. The latest nightly version is 3.4 Just a reminder that production sites should specify a minor version: - v=3.3 for feature-stable - v=3.2 for frozen Read more about versions here: http://code.google.com/apis/maps/documentat

Re: [Google Maps API v3] Re: Point (LatLng)

2011-02-17 Thread Chris Broadfoot
This was asked earlier today: http://groups.google.com/group/google-maps-js-api-v3/browse_thread/thread/1d066613820dd236 See Rossko's response in that thread. Chris -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to th

Re: [Google Maps API v3] Change bounds, zoom with a dropdown

2011-02-17 Thread Chris Broadfoot
I suggest storing bounds for each area, and calling fitBounds. This way, an appropriate zoom level will be chosen by the API depending on size of the map on the screen. Or, if you choose particular zoom level for each location, store that along with the center LatLng and call setZoom on the map.

Re: [Google Maps API v3] Re: georeference pictures using google maps api

2011-02-17 Thread Chris Broadfoot
Give this a read: http://en.wikipedia.org/wiki/Geotagging#JPEG_photos You could extract this with PHP and send the lat/lng to the client to display on the map. Chris -- http://twitter.com/broady -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScr

Re: [Google Maps API v3] georeference pictures using google maps api

2011-02-17 Thread Chris Broadfoot
On Fri, Feb 18, 2011 at 1:19 AM, pdp2907 wrote: > I have an application which requires me to georeference pictures every > 10 mins. is it possible to use google maps javascript api 3 for the > same. > I'm not sure what you're asking. Do you want to add geodata to photos? Sure, you could use the

Re: [Google Maps API v3] Creating a Route with Pre Given Street Data

2011-02-17 Thread Chris Broadfoot
Use waypoints in DirectionsRequest: http://code.google.com/apis/maps/documentation/javascript/reference.html#DirectionsRequest -- http://twitter.com/broady -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group

Re: [Google Maps API v3] Re: 2011/2/8 - New Release (Maps API 3.4)

2011-02-16 Thread Chris Broadfoot
On Thu, Feb 17, 2011 at 4:49 PM, Gary Little wrote: > Note: The problem regarding the disappearing markers was observed with > Safari/Mac. It did not occur with Firefox/Mac or Chrome/Mac. > Hi Gary, I can't reproduce this on Safari/Mac. Do you see any errors in the console? Chris -- http://t

Re: [Google Maps API v3] Re: Script to calculate multiple distances at one

2011-02-16 Thread Chris Broadfoot
Hi guys, Could you file a feature request and link to it here so people can star it? This is how we measure user demand for a particular feature. Thanks, Chris -- http://twitter.com/broady -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript AP

Re: [Google Maps API v3] Country border width control

2011-02-16 Thread Chris Broadfoot
Yeah, unfortunately our styled maps don't allow for this. File a feature request on the issue tracker and make sure you star it so we can gauge demand. KML/Fusion Tables is probably your best bet. -- http://twitter.com/broady -- You received this message because you are subscribed to the Goog

Re: [Google Maps API v3] Google Maps API styled map - colors problem

2011-02-16 Thread Chris Broadfoot
On Wed, Feb 16, 2011 at 9:32 PM, jack wrote: > Thank you for the reply. In fact, I've seen the documentation. This was the > very first thing I did. You say they are relative - ok, but how can I set > the color accurately without checking different values in loop? Is there any > algorithm to conv

Re: [Google Maps API v3] Google Maps API styled map - colors problem

2011-02-16 Thread Chris Broadfoot
On Wed, Feb 16, 2011 at 8:18 PM, jack wrote: > The problem is that it doesn't work at all. I don't really know what is > the reason of that. Can you see something that I'm doing wrong? > > Saturation and lightness are relative: http://code.google.com/apis/maps/documentation/javascript/maptypes.h

Re: [Google Maps API v3] Having trouble getting map to center of Pacific - Always goes to Atlantic

2011-02-15 Thread Chris Broadfoot
Definitely post this to the v2 group. I'll have a stab anyway. There's a lot of code so I can't really figure it out, but I'd guess the problem is here: var sw = autoBounds.getSouthWest(); var ne = autoBounds.getNorthEast(); center = new GLatLng( ( sw.lat() + ne.

Re: [Google Maps API v3] Re: multiple connections?

2011-02-15 Thread Chris Broadfoot
We do make multiple requests - this is primarily for speed - basically sending requests from multiple Google servers in order to get a fast response. It doesn't make any lick of difference whether the user is on a mobile device or not. The requests for your KML come from Google, not the user. If

Re: [Google Maps API v3] multiple connections?

2011-02-15 Thread Chris Broadfoot
I'm not sure exactly what you're asking here. Are you talking about connections from Google to retrieve KML? Or connections from the client to Google servers to download JavaScript files? Chris -- http://twitter.com/broady -- You received this message because you are subscribed to the Google G

Re: [Google Maps API v3] Re: Google maps sidebars and Streetview updated by PHP using MySQL database

2011-02-15 Thread Chris Broadfoot
On Wed, Feb 16, 2011 at 8:37 AM, B RTHKBCY3 wrote: > Hmmm only 1 reply, no advance for somebody to create some code? > This group is primarily for support and for assisting with implementation problems, rather than general advice on web development. I suggest first learning JavaScript, HTML

Re: [Google Maps API v3] Re: Google Maps Firefox Zoom Level Issue

2011-02-15 Thread Chris Broadfoot
On Wed, Feb 16, 2011 at 6:45 AM, Rossko wrote: > But how do we get to see the map with the problem? > The map is on that linked page. It's in an iframe, though. Here's a better link: http://elsevier-apps.sciverse.com/GoogleMaps/index.jsp?doi=10.1016%2Fj.cageo.2010.03.006 I can't reproduce it (t

Re: [Google Maps API v3] Re: Point Marker

2011-02-15 Thread Chris Broadfoot
Try the LatLng Tooltip or LatLng Marker on http://maps.google.com - I use this all the time for getting LatLngs from Google Maps. Just click the green beaker in the top right. Chris -- http://twitter.com/broady -- You received this message because you are subscribed to the Google Groups "Goog

Re: [Google Maps API v3] Google Autoload Maps Adsense Library

2011-02-15 Thread Chris Broadfoot
On Tue, Feb 15, 2011 at 7:28 PM, Zach wrote: > I don't know where to include the libraries parameter, though? Any > help would definitely be appreciated. > This seems to do the trick: http://www.google.com/jsapi?autoload={'modules':[{'name':'maps ','version':'3','other_params':'libraries=geomet

Re: [Google Maps API v3] Australian City Suburbs

2011-02-14 Thread Chris Broadfoot
This is because greater city bounds are not really defined. For Sydney - it's not clear where greater Sydney starts/stops. Is Penrith in Sydney? Perhaps you should set up some predefined city bounds and check if the point is within them. Or find which city is closest. -- http://twitter.com/broad

Re: [Google Maps API v3] Re: map resizes but does not center after resize...

2011-02-14 Thread Chris Broadfoot
On Mon, Feb 14, 2011 at 9:17 PM, Grezvany13 wrote: > No one with a solution and/or work around??? > You need to re-set the center after you trigger resize. When the div is hidden, it reports 0 width and height. The map will resize from the top left, so once you give it some width and height, th

Re: [Google Maps API v3] Re: Server side marker clustering

2011-02-14 Thread Chris Broadfoot
Have a look at the code behind Marker Clusterer: http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclusterer/src/markerclusterer.js You basically need to implement this clustering algorithm (or something similar) on the server - and pass the resultant clusters back to the clien

Re: [Google Maps API v3] Re: Server side marker clustering

2011-02-14 Thread Chris Broadfoot
On Mon, Feb 14, 2011 at 8:30 PM, sgiddings wrote: > Thanks for this. However they are using client-side clustering, which > I need to avoid. > They are not. The clusters are determined on the server, sent back via AJAX and rendered on the client. Do you want to render clusters on the server? I'

Re: [Google Maps API v3] Re: Server side marker clustering

2011-02-14 Thread Chris Broadfoot
I don't know of such a tutorial, but check out what these guys are doing: http://loxcel.com/ Starbucks locator: http://loxcel.com/sbux -- http://twitter.com/broady -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to t

Re: [Google Maps API v3] Getting 407 for jsapi and main.js.....

2011-02-14 Thread Chris Broadfoot
That doesn't look like the Maps API but the Visualization API. Might be best to direct your query to them. Since you're an enterprise customer, it may be best to get support through enterprise channels. This is a user-to-user forum. That said, that particular URL loads quickly for me. Chris --

Re: [Google Maps API v3] Traffic layer

2011-02-14 Thread Chris Broadfoot
On Mon, Feb 14, 2011 at 6:38 PM, whatever wrote: > traffic layer somehow.. > Yep, the Traffic Layer. http://code.google.com/apis/maps/documentation/javascript/overlays.html#TrafficLayer -- http://twitter.com/broady -- You received this message because you are subscribed to the Google Groups

Re: [Google Maps API v3] Re: Australian Traffic Data - not showing in map API?

2011-02-13 Thread Chris Broadfoot
That spreadsheet is API-only. Is it missing something? -- http://twitter.com/broady -- 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 fr

Re: [Google Maps API v3] circle class working yesterday now not working!

2011-02-13 Thread Chris Broadfoot
Seems to work for me. Are you sure your GPS is working in the same way as it did before today? BTW, the JS you linked to originally is not actually being used on the site -- http://twitter.com/broady -- You received this message because you are subscribed to the Google Groups "Google Maps Jav

Re: [Google Maps API v3] Showing progression along a route

2011-02-13 Thread Chris Broadfoot
It's possible - look at the functions in the spherical geometry library. That may get you started. But first, make sure this use case is in accordance with the ToS, particularly 10.9: http://code.google.com/apis/maps/terms.html Chris -- http://twitter.com/broady -- You received this message b

Re: [Google Maps API v3] Advice on how its best to display large ammount of markers

2011-02-12 Thread Chris Broadfoot
Luke & I wrote an article detailing this recently: http://code.google.com/apis/maps/articles/toomanymarkers.html Chris -- http://twitter.com/broady -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send e

Re: [Google Maps API v3] Re: Opening the map focussing on a country using the country code

2011-02-12 Thread Chris Broadfoot
On Sun, Feb 13, 2011 at 7:13 AM, Gerrit de Bolster wrote: > I would like to have an answer from one of the Google employees as I > believe that the Google Maps API is more than a mere street address > geoder as you stated. > Rossko is correct. Have a quick read of the documentation and you'll se

Re: [Google Maps API v3] Google MAPS API v3 Traffic incidents - how to turn on..?

2011-02-12 Thread Chris Broadfoot
Please star this feature request so we can gauge interest: http://code.google.com/p/gmaps-api-issues/issues/detail?id=2411 -- http://twitter.com/broady -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, sen

Re: [Google Maps API v3] Australian Traffic Data - not showing in map API?

2011-02-12 Thread Chris Broadfoot
Some traffic data providers do not license us the data for use in the API. This is the reason for the discrepancy between maps.google.com and the API. -- http://twitter.com/broady -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group

Re: [Google Maps API v3] Uncaught TypeError: Cannot read property '__e3_' of null in chrome - ff/opera/safari is ok

2011-02-10 Thread Chris Broadfoot
Actual page for anyone else debugging: http://www.youspots.com/api_v2.php?lang=en&34fjsdnms2342beirdb=&id=1130723808 On this line: mc = new MarkerClusterer(map, markersFromDb, mcOptions); map is null. Why are you doing this inside a timeout set for 1500ms? This looks like a bad timing issue.

Re: [Google Maps API v3] Re: Opening the map focussing on a country using the country code

2011-02-10 Thread Chris Broadfoot
On Thu, Feb 10, 2011 at 9:31 PM, Gerrit de Bolster wrote: > If I do this in my case the map is focussed on the city of Bern in > Switzerland! > That's because you're choosing the first result. You should look for a result with type "country". -- http://twitter.com/broady -- You received thi

Re: [Google Maps API v3] Re: Polygons: get random error in google minified code

2011-02-10 Thread Chris Broadfoot
On Thu, Feb 10, 2011 at 9:07 PM, Ing. Stefano wrote: > Hi Rossko, > are you working in google developers team? > No, he doesn't, but his response is absolutely correct. Please post a link so we can help you out. Chris -- http://twitter.com/broady -- You received this message because you are

Re: [Google Maps API v3] Re: Anyone got a KML Network Link to refresh on Google Maps?

2011-02-10 Thread Chris Broadfoot
On Thu, Feb 10, 2011 at 8:59 AM, chat2joe wrote: >onInterval > We don't support many KML features - refreshMode is one of them. Chris -- http://twitter.com/broady -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" gr

Re: [Google Maps API v3] google.maps.geometry

2011-02-09 Thread Chris Broadfoot
You need to load the geometry library via the libraries parameter in the bootstrap. Look here: http://code.google.com/apis/maps/documentation/javascript/basics.html#Libraries Chris On Thu, Feb 10, 2011 at 5:45 AM, Carlos wrote: > Hola, alguien sabe porque dice que este objeto (google.maps.geom

Re: [Google Maps API v3] Map Simply Not Showing Up

2011-02-09 Thread Chris Broadfoot
On Thu, Feb 10, 2011 at 10:26 AM, Tiny Giant Studios < i...@tinygiantstudios.co.uk> wrote: > Could someone please take a peek and lemme know why it's not showing > up? > initialize is not getting called. Add to your script: jQuery(initialize) This will run the initialize function when the DOM h

Re: [Google Maps API v3] How do I embed a google map in my google form so users can select a location and autofill a lat/long box?

2011-02-09 Thread Chris Broadfoot
On Thu, Feb 10, 2011 at 10:28 AM, Sir Loin of Beef wrote: > but it doesn't show how to add an event listener. Should I be adding > the listener to the form, or the map, and how do I add it? > Read here: http://code.google.com/apis/maps/documentation/javascript/events.html http://code.google.com

Re: [Google Maps API v3] Content-Length header missing from json response

2011-02-09 Thread Chris Broadfoot
On Thu, Feb 10, 2011 at 9:46 AM, Tim King wrote: > The XML response contains a Content-Length header which I can use but I > would prefer using the json response. > > Seems to be a bug - thanks for letting us know. -- http://twitter.com/broady -- You received this message because you are subs

Re: [Google Maps API v3] Re: map resizes but does not center after resize...

2011-02-09 Thread Chris Broadfoot
On Wed, Feb 9, 2011 at 8:16 PM, Grezvany13 wrote: > Which information did you miss? > A link to a live page: On Mon, Jan 10, 2011 at 12:50 AM, Rossko wrote: > Please give a link to your map page showing the problem. > -- You received this message because you are subscribed to the Google Gro

Re: [Google Maps API v3] Opening the map focussing on a country using the country code

2011-02-09 Thread Chris Broadfoot
Just geocoding the two letter country code seems to work: Web services call to demonstrate results: http://maps.googleapis.com/maps/api/geocode/json?address=BE&sensor=false In v3: geocoder.geocode({address: 'BE'}, function(.. Chris -- http://twitter.com/broady -- You received this messag

Re: [Google Maps API v3] Re: Infowindow with tabs in v3

2011-02-09 Thread Chris Broadfoot
And have a look at InfoBubble: http://google-maps-utility-library-v3.googlecode.com/svn/trunk/infobubble/examples/example.html -- http://twitter.com/broady -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group,

Re: [Google Maps API v3] Anyone got a KML Network Link to refresh on Google Maps?

2011-02-09 Thread Chris Broadfoot
On Wed, Feb 9, 2011 at 11:52 PM, chat2joe wrote: > I've tried any example I can find but it simple will not work. :-/ > I'm not sure what you're asking. Are you saying NetworkLink doesn't work? It seems to work for me: http://www.mappingsupport.com/p/gmap4/helpfile/three_files.kml Please post a

Re: [Google Maps API v3] v3.4 update

2011-02-09 Thread Chris Broadfoot
Hugo, Post a link so that we can help you out :) Cheers Chris -- http://twitter.com/broady -- 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 unsub

Re: [Google Maps API v3] v3 Geocoder client-side cache

2011-02-08 Thread Chris Broadfoot
As far as I know, there is no cache. You can verify this by sending the same query multiple times - you can see (in Chrome's developer tools) that the API re-sends the query regardless. Chris -- http://twitter.com/broady -- You received this message because you are subscribed to the Google Gro

[Google Maps API v3] 2011/2/8 - New Release (Maps API 3.4)

2011-02-07 Thread Chris Broadfoot (Google Employee)
Hi all, We're pleased to announce version 3.4 of the Maps API for JavaScript. Firstly, a reminder that if you do not specify a minor version when loading the Maps API, you will automatically receive 3.4. Production applications should always specify a minor version (v=3.2, v=3.3). Read more about

Re: [Google Maps API v3] styling controls

2011-02-07 Thread Chris Broadfoot
On Tue, Feb 8, 2011 at 4:53 PM, Amit Kumar wrote: > i want to style the map type selection controls... > Well, as you can see, today we changed the default styles. As I said above, it's not feasible to provide this. You should create your own custom controls. Chris -- http://twitter.com/broad

Re: [Google Maps API v3] Map Type Control Style

2011-02-07 Thread Chris Broadfoot
It's yet to be formally announced (I've drafted the email :), but we released and pushed v3.4 of the API today. This includes a new look for the map type controls - they are now hierarchical. All existing functionality should work, it's just been shuffled around a bit into dropdowns. If you need

Re: [Google Maps API v3] Re: HELP!! uncaught reference error

2011-02-07 Thread Chris Broadfoot
On Tue, Feb 8, 2011 at 5:19 AM, Lewis Rogers wrote: > WOW! Truley wow. The support I have received from this group has been > absolutely amazing! thank you so much for all your help. Thank you Larry for > correcting the problem and a thank you to Andrew and Paulo for the > suggestions. You have a

Re: [Google Maps API v3] how to check particular location(Lang/Lat) belongs to my direction (on route)

2011-02-07 Thread Chris Broadfoot
Refer to this thread http://groups.google.com/group/google-maps-js-api-v3/browse_thread/thread/47a59ed5d5d9a8f9/8220fe267d7967fb -- http://twitter.com/broady -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this gro

Re: [Google Maps API v3] JavaScript code to add drag n Zoom functionality in Google maps

2011-02-07 Thread Chris Broadfoot
On Tue, Feb 8, 2011 at 3:31 PM, crec wrote: > > Please provide the JavaScript code to add Google maps Drag n Zoom feature, > to create a select area on Google map and obtain the latitudes, longitudes > within that area. > > http://google-maps-utility-library-v3.googlecode.com/svn/trunk/keydragzoo

[Google Maps API v3] 2011/2/8 - New Release

2011-02-07 Thread Chris Broadfoot (Google Employee)
Hi everyone, We recently updated the Maps API. There are a few bug fixes in this release: * Tile requests not being cancelled in Chrome (Issue 3011) * rightclick event not being fired in FF/Mac (Issue 2920) * Text rendering issues in Safari/Mac (Issue 3024) * Directions maps not printing

Re: [Google Maps API v3] Find nearest intersection from Lat/Lng

2011-02-07 Thread Chris Broadfoot
On Tue, Feb 8, 2011 at 8:53 AM, kyle wrote: > *I am having difficulties displaying an intersection from a Lat/Lng > coordinate. If anyone knows of an example that is out there that I look at I > would greatly appreciate it.* > > Do you mean a street intersection? Google does not provide an API fo

Re: [Google Maps API v3] Editing Polygon

2011-02-07 Thread Chris Broadfoot
There are a couple third party libraries that provide this. Try one of these: https://github.com/stomlinson/Polyline-enableEditing-enableDrawing-for-GMaps-API-v3 http://www.mistechko.sumy.ua/jscript/google/map/index.html Cheers Chris

Re: [Google Maps API v3] Re: hidden copy of infowindow

2011-02-07 Thread Chris Broadfoot
On Tue, Feb 8, 2011 at 6:37 AM, Jakob D wrote: > but for some reason, I get the error that it is an invalid value for > property content, on the setContent line, the html is valid, and jquery can > create it as a node (I know this from console.log). > You're passing it a jQuery object, the API n

Re: [Google Maps API v3] Re: WebGL for Google Maps API v3

2011-02-06 Thread Chris Broadfoot
WebGL is not yet widely supported. Once it is, there is certainly a possibility that the Maps API will use it for rendering. As you note, this would open up many possibilities for the API. Chris -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript

Re: [Google Maps API v3] Displaying Print Send Link links on top of GoogleMap

2011-02-06 Thread Chris Broadfoot
On Mon, Feb 7, 2011 at 5:57 PM, shotemba wrote: > I've just recently noticed Print Send Link links on top of Google Map, > Where? On maps.google.com? maps.google.com does not use the v3 API. You could do something similar with a custom control. -- http://twitter.com/broady -- You received t

Re: [Google Maps API v3] Re: Google Maps reports "File Not Found"

2011-02-06 Thread Chris Broadfoot
On Mon, Feb 7, 2011 at 4:35 PM, jez wrote: > find a different host. The host, VentraIP, claims this is a Google > problem and that their other clients hosting Google Maps Javascript > API have no such problem. > Really? I actually can't use curl to fetch ANYthing on your domain. $ curl -I http:

Re: [Google Maps API v3] Google Maps reports "File Not Found"

2011-02-06 Thread Chris Broadfoot
Sorry - sent the reply too early :) >From curl I get a 406, from the browser I get the kml. Looks like something on the server is blocking certain requests. -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group,

Re: [Google Maps API v3] Google Maps reports "File Not Found"

2011-02-06 Thread Chris Broadfoot
On Mon, Feb 7, 2011 at 3:19 PM, jez wrote: > 3. The KML file *is* directly accessible via a browser > I get: $ curl -I http://www.jeremyc.com/2010_08_17_Uluru_Base_Walk7a_UTF-8.kml HTTP/1.1 406 Not Acceptable -- http://twitter.com/broady -- You received this message because you are subscrib

Re: [Google Maps API v3] styling controls

2011-02-06 Thread Chris Broadfoot
On Fri, Feb 4, 2011 at 6:30 AM, Amit Kumar wrote: > the approach on that page is to make each control myself... which isnt very > DRY... i would like to just style the existing default controls > Unfortunately these controls are subject to change (in behaviour and appearance), so providing an AP

Re: [Google Maps API v3] Re: Reusing marker clicklistener?

2011-02-06 Thread Chris Broadfoot
'this' inside the listener refers to the marker that the event was fired on. On Sun, Feb 6, 2011 at 6:58 PM, George Georgovassilis < g.georgovassi...@gmail.com> wrote: > Thank you for your answers. > @bratliff: The whole point is that the singleton listener can't know > which marker received the

Re: [Google Maps API v3] Infor window background color

2011-02-05 Thread Chris Broadfoot
On Sun, Feb 6, 2011 at 2:52 PM, Rednek wrote: > Is there away to make the info window background a different color instead > of white. Unfortunately not. You should use custom info window (OverlayView) like InfoBubble: http://google-maps-utility-library-v3.googlecode.com/svn/trunk/infobubble/ex

Re: [Google Maps API v3] InfoWindow with tabs

2011-02-05 Thread Chris Broadfoot
Check out InfoBubble: http://google-maps-utility-library-v3.googlecode.com/svn/trunk/infobubble/examples/example.html On Fri, Feb 4, 2011 at 2:59 AM, VolksNav wrote: > what does substitute the v2 facility to create infoWindows with tabs? > -- http://twitter.com/broady -- You received this

Re: [Google Maps API v3] Re: Powered by Google Technologies

2011-02-03 Thread Chris Broadfoot
On Tue, Feb 1, 2011 at 5:47 PM, Mike wrote: > @Chris - I currently geocode on 'dragend' - do you recommend changing > this? > Okay, I'm trying again from home. I think it's because I dragged many times in short amounts. We *do* rate limit geocoding. I would suggest some combination of caching g

Re: [Google Maps API v3] Re: iPhone pinch zoom

2011-02-02 Thread Chris Broadfoot
Thanks for letting us know. Pinch to zoom is working again. As said above, you should consider specifying v=3.2 if your implementation requires stable functionality. Cheers Chris -- http://twitter.com/broady -- You received this message because you are subscribed to the Google Groups "Google

Re: [Google Maps API v3] Unable to see Animation.DROP during map initialization, only later

2011-02-02 Thread Chris Broadfoot
On Thu, Feb 3, 2011 at 12:31 AM, Amit Kumar wrote: > tilesload event has a problem... every time the users pans the markers will > drop... > Use addListenerOnce -- http://twitter.com/broady -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript

Re: [Google Maps API v3] Re: hidden copy of infowindow

2011-02-02 Thread Chris Broadfoot
If you want to reference to your content inside the InfoWindow, the best way is to call setContent with a DOM Node, and keep a reference to the DOM Node in a variable. Did you try this? The link you provided has a LOT of code (which is obfuscated, by the way), which isn't very useful for us to hel

Re: [Google Maps API v3] Re: Best Approach to Determining if User Has Arrived at a Location?

2011-02-02 Thread Chris Broadfoot
On Thu, Feb 3, 2011 at 8:00 AM, James wrote: > It's javascript code to calculate the distance between two lat-long > coordinates! > That's what Larry sent you, too :) -- http://twitter.com/broady -- You received this message because you are subscribed to the Google Groups "Google Maps JavaS

Re: [Google Maps API v3] storing lat/log for each entries in my db?

2011-02-02 Thread Chris Broadfoot
I think the terms are pretty straightforward here. You may want to consult a lawyer to see whether your implementation complies with ToS. Perhaps you should have the user click/drop a marker where the house should be on the map. This would certainly comply with the ToS. On Wed, Feb 2, 2011 at 3:3

Re: [Google Maps API v3] Unable to see Animation.DROP during map initialization, only later

2011-02-02 Thread Chris Broadfoot
It seems to drop onto the grey tiles for me. Maybe you should wait for the 'tilesloaded' event to fire. -- http://twitter.com/broady -- 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-

Re: [Google Maps API v3] Re: hidden copy of infowindow

2011-02-02 Thread Chris Broadfoot
On Wed, Feb 2, 2011 at 11:56 PM, Jakob D wrote: > the google > divs still show up outside html tags, making the html schema really > ugly. > Can you elaborate? -- http://twitter.com/broady -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript A

Re: [Google Maps API v3] jquery usage in maps api

2011-02-02 Thread Chris Broadfoot
On Thu, Feb 3, 2011 at 12:07 AM, Amit Kumar wrote: > new google.maps.Map($('#map_canvas'),myOptions); > > using this seems to be causing an error... Is it not possible to use jquery > in the maps API? > > The map initialiser needs a DOM Node. You're passing it a jQuery object. Try new google.maps

Re: [Google Maps API v3] Re: Buggy display of .kmz in KmlLayer

2011-02-02 Thread Chris Broadfoot
This does look like an artefact of our poly simplification algorithm. I'll pass this onto our team and see what they think. Chris -- http://twitter.com/broady -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this g

Re: [Google Maps API v3] Re: Powered by Google Technologies

2011-01-31 Thread Chris Broadfoot
On Tue, Feb 1, 2011 at 3:13 AM, Mike wrote: > @Chris- thanks for the feedback. It's weird that you get > OVER_QUERY_LIMIT, it means that Google thought too many Geocoding > requests were made from your IP. When you move the map (or search for > location and move there) the geocoding is done from

Re: [Google Maps API v3] Powered by Google Technologies

2011-01-30 Thread Chris Broadfoot
Cool. Although, just from panning around a little bit, I got an alert: Geocoder failed due to: OVER_QUERY_LIMIT Chris On Mon, Jan 31, 2011 at 1:23 PM, Mike wrote: > Wanted to share our project called CitySale.ca which is built entirely > on the Google stack: > > Google APIs - App Engine, GWT,

Re: [Google Maps API v3] Get All Roads on Google Maps and Cover Them with Polyline

2011-01-30 Thread Chris Broadfoot
Well, we don't expose road data, unfortunately. You can get something similar from Open Street Map. There's no real way to do this. You could emulate something similar with styled maps laid on top of each other, but showing/hiding portions of map tiles would likely be a breach of the Maps API ToS.

Re: [Google Maps API v3] Re: Using JSON file to plot multiple points on Google Maps.

2011-01-29 Thread Chris Broadfoot
On Fri, Jan 28, 2011 at 10:24 PM, Esa wrote: > Two minor things in the code: > > Oops. As I said, not tested. > 2] Missing brackets in: > >var infowindow = new google.maps.InfoWindow(); > > When using the 'new' operator in JavaScript, you can omit the parentheses if you are not passing any

Re: [Google Maps API v3] Using JSON file to plot multiple points on Google Maps.

2011-01-27 Thread Chris Broadfoot
You can definitely do it just in JavaScript... here's a starting point (untested..) function addMarker(map, data) { var marker = new google.maps.Marker({ position: new google.maps.LatLng(+data.latitude, +data.longitude), icon: data.markerImage }); google.maps.event.addListener(marker

Re: [Google Maps API v3] With Lua

2011-01-27 Thread Chris Broadfoot
On Thu, Jan 27, 2011 at 8:28 PM, NewUser99 wrote: > Is it possible to use Google Maps API with lua? > What are you trying to achieve? -- 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

Re: [Google Maps API v3] Outer glow on road names in the map? (v3 ahoy)

2011-01-26 Thread Chris Broadfoot
Hi Kris. Do you mean the stroke around the road labels? Currently you can't control this via styled maps. Chris -- 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@google

Re: [Google Maps API v3] Re: Google Maps API v3 not appearing in IE6

2011-01-26 Thread Chris Broadfoot
Yes. I'm not aware of anything in the API that is broken in IE6. To the original poster, could you please post a LINK to your map. It's extremely difficult to debug a code dump, let alone one that has server-side scripting amongst it (PHP?) -- You received this message because you are subscribed

Re: [Google Maps API v3] Scale bar value at lowest zoom level

2011-01-24 Thread Chris Broadfoot
Scale changes depending on the location on the earth's surface due to the projection we use. http://en.wikipedia.org/wiki/Mercator_projection The scale control isn't particularly useful at low zoom levels. Chris On Tue, Jan 25, 2011 at 4:36 PM, Farooq Mahmood wrote: > Is anyone having any idea

Re: [Google Maps API v3] How to stretch directions to fit div width?

2011-01-24 Thread Chris Broadfoot
On Sat, Jan 22, 2011 at 11:41 AM, Rocknum wrote: > Is there any way to solve this? > Please link us to your 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@googl

Re: [Google Maps API v3] Alternate way to use places api

2011-01-24 Thread Chris Broadfoot
On Fri, Jan 21, 2011 at 5:24 PM, Nipu wrote: > Is there any possibility to get places info or the search result > from the google maps? > Take a look at the Places API, it may suit your requirements: http://code.google.com/apis/maps/documentation/places/ -- You received this message because

<    1   2   3   4   5   6   7   8   >