[Google Maps API v3] Re: How to get a list of all available map types?

2010-05-31 Thread William
On Jun 1, 4:38 pm, Pil wrote: > > In your example you are looking for the > property tileSize to extract the map types. > the doco for the MapType "object" specification says "This interface defines map type. Immutable", and I first tried "instanceof google.maps.MapType" but this doesn't work bec

[Google Maps API v3] Re: how do I map.fitbounds() to rendered directions

2010-05-31 Thread William
On Jun 1, 3:31 pm, gp-v3 wrote: > That is true... but is there a better way to have the map re fit the > directions after a resize trigger?  Fitting to the whole direction > polyline would be nice, but I will settle for anything right now. > you can iterate through all points in the path, extend

[Google Maps API v3] Re: How to get a list of all available map types?

2010-05-31 Thread Pil
Thanks for the illustrative example. Ahh ya, mapTypes is an object that also contains a lot of other things besides the map types. In your example you are looking for the property tileSize to extract the map types. It is not documented that the name of these extracted map type objects can be access

Re: [Google Maps API v3] Re: how do I map.fitbounds() to rendered directions

2010-05-31 Thread Ben Appleton
I see. We'll look at exposing the bounds on the DirectionsRenderer. Then you could simply call map.fitBounds(renderer.get('bounds')); On Tue, Jun 1, 2010 at 3:31 PM, gp-v3 wrote: > That is true... but is there a better way to have the map re fit the > directions after a resize trigger? Fittin

[Google Maps API v3] Re: how do I map.fitbounds() to rendered directions

2010-05-31 Thread gp-v3
That is true... but is there a better way to have the map re fit the directions after a resize trigger? Fitting to the whole direction polyline would be nice, but I will settle for anything right now. On May 31, 7:33 pm, Ben Appleton wrote: > The start and end markers may not bound the whole rou

[Google Maps API v3] Re: Using Styled Maps with TERRAIN map type?

2010-05-31 Thread Sai Perchard
IMO it would be useful to be able to restyle the features without necessarily restyling the underlying terrain. For example, in my case, all I need is the base imagery, with everything else (particularly place names) removed. I imagine this is just one example of how such a feature may be useful.

Re: [Google Maps API v3] Re: how do I map.fitbounds() to rendered directions

2010-05-31 Thread Ben Appleton
The start and end markers may not bound the whole route though. On 1 Jun 2010 03:50, "gp-v3" wrote: Is it possible to get the markers associated with the directions to create a directions bound using the start and finish markers? On May 29, 2:54 pm, gp-v3 wrote: > How do you make it redo the

[Google Maps API v3] Re: What's the syntax for Map Feed functions?

2010-05-31 Thread William
On May 30, 7:29 pm, ron1776 wrote: > The HTTP Protocol Reference lists several ways to interact with your > My Maps, like the following. > > I don't understand how to implement them in code.  Can anyone > enlighten me? > there are code libraries for java and javascript which provide API access to

Re: [Google Maps API v3] Re: Reduce the number of points in a polyline

2010-05-31 Thread Stephen Lead
Check out http://en.wikipedia.org/wiki/Ramer%E2%80%93Douglas%E2%80%93Peucker_algorithmfor details of the algorithm. It links to some Python code at http://ryba4.com/python/ramer-douglas-peucker Good luck, Steve On 1 June 2010 06:26, Anthony wrote: > Look into the encoding algorithms for polyli

[Google Maps API v3] Re: How to apply border-radius css style to streetview pane

2010-05-31 Thread pete
Good sir, might we trouble you for a link? Please keep in mind, this is not directly a Google Maps API question. As a further note, border-radius is not fully supported (e.g. IE9 Beta is the only IE that has it implemented). A JS approach might be more robust for now. On Jun 1, 2:33 am, "Migue

[Google Maps API v3] Re: How to get a list of all available map types?

2010-05-31 Thread William
On Jun 1, 5:03 am, Pil wrote: > "Error: map.mapTypes is not a function" it's a property which can be accessed directly, for example to get the current MapType var currentMapType = map.mapTypes[map.getMapTypeId()]; there doesn't seem to be any similar method getMapTypes() on the MapTypeRegistry,

[Google Maps API v3] Re: Limitations Help

2010-05-31 Thread Rossko
> If I am running api v3 to work out distances for my mysql table how > many times can this be run per day. None, if you mean you are storing data derived from Google provided Directions. See the terms of use. > I will be inputing Latitude and > Longitude does this count as geocoding. Errm, may

[Google Maps API v3] Re: Reduce the number of points in a polyline

2010-05-31 Thread Anthony
Look into the encoding algorithms for polylines. Depending on how you want to do it, you could probably adjust them to fit a fix (or approximate) number of points, or maybe the regular algorithms will work just fine for your purposes. On May 31, 11:25 am, Nicolas J wrote: > Hello > I'm wondering

[Google Maps API v3] Busca de local e permitir arras tar marker mostrando endereço atualizado

2010-05-31 Thread Jnew
Permite buscar o local: http://code.google.com/intl/pt-BR/apis/maps/documentation/javascript/examples/geocoding-simple.html Permite arrastar e mostra o local "Closest matching address:" http://gmaps-samples-v3.googlecode.com/svn/trunk/draggable-markers/draggable-markers.html Como juntar esses doi

[Google Maps API v3] Re: Saving google map in some manners

2010-05-31 Thread sangi1981
Thanks for the reply. I look at the tutorial. What is a kml file? The application I'm working already uses Google Map API. I was asked to extend this application, adding a button for saving as an image map currently displayed in the browser. So I wondered if it were possible, and how it is. Than

[Google Maps API v3] Re: Saving google map in some manners

2010-05-31 Thread sangi1981
Thanks for the reply. I look at the tutorial. What is a kml file? The application I'm working already uses Google Map API. I was asked to extend this application, adding a button for saving as an image map currently displayed in the browser. So I wondered if it were possible, and how it is. Than

[Google Maps API v3] Re: Problem with getVisible()

2010-05-31 Thread alexdrimbe
I am also interested to find out a method which display instantly if the street view is not available. On May 31, 10:17 pm, Al wrote: > Thanks Marc.  I've been away and didn't see your response. > > I removed the setVisible(false) but it doesn't make any difference. > Also, I am hiding the pano d

[Google Maps API v3] Re: Problem with getVisible()

2010-05-31 Thread Al
Thanks Marc. I've been away and didn't see your response. I removed the setVisible(false) but it doesn't make any difference. Also, I am hiding the pano div initially since if you don't you get a blank streetview with the controls displayed. I guess what is there now works but it would be nice t

[Google Maps API v3] How to get a list of all available map types?

2010-05-31 Thread Pil
I'm searching for an aequivalent for the v2 method getMapTypes() I tried map.mapTypes( google.maps.MapTypeRegistry() ); And because v3 constantly wants to use google.maps I tried also google.maps.mapTypes( google.maps.MapTypeRegistry() ); But this was all to no other avail than errors "Err

[Google Maps API v3] Re: how do I map.fitbounds() to rendered directions

2010-05-31 Thread gp-v3
Is it possible to get the markers associated with the directions to create a directions bound using the start and finish markers? On May 29, 2:54 pm, gp-v3 wrote: > How do you make it redo the bounds on map resize though?  The example > doesn't refit the bounds when you resize the map (firefox 3.

[Google Maps API v3] How to apply border-radius css style to streetview pane

2010-05-31 Thread Miguel.camba
Hi. I have some streetview panes inside into some infoboxes on my web. The infoboxes, and all the stuff in the page hace rounded cornes, so i would like to make streetview pane look similar, but I apply CSS style to the div, and it just ignore me. Why? And even more important, is this possible? I

[Google Maps API v3] Naval distance separated from driving directions

2010-05-31 Thread M.M.
Hi everybody, I am wondering if there's a way of separating the continental part and the naval part when the proposed path between two endpoints crosses the sea. For example: http://maps.google.com/maps?f=d&source=s_d&saddr=Genova+Italy&daddr=Olbia+Italy&hl=en&geocode=FRaZpQIdZVKIAClpb64h5kPTEjG7A

[Google Maps API v3] Reduce the number of points in a polyline

2010-05-31 Thread Nicolas J
Hello I'm wondering if it's possible to reduce the number of points in a polyline but to chosse the exact or an approximate number of points I want to. Example: reducePolyline(existingPolylineWith1000Points, 500) This function return me a new polyline with only 500 points of the original. Of co

Re: [Google Maps API v3] Re: How to put a marker on the circumference of a Circle object

2010-05-31 Thread ricco *
@Azriman, i' feel so stupid, it's really simple in this case and that exactly what i want : put a marker at horizontal point af the circumference :) thanks a lot Cheers riccco 2010/5/31 AzriMan > If you would like to put marker on the vertical or horizontal point of > the circumference you ca

[Google Maps API v3] Re: How to put a marker on the circumference of a Circle object

2010-05-31 Thread AzriMan
If you would like to put marker on the vertical or horizontal point of the circumference you can try the following: // creating the circle myCircle = new google.maps.Circle({ map: map, center: new google.maps.LatLng(circleLat, circleLng), radius: 8000 // 8 km }); // eastern lat and ln

[Google Maps API v3] Smooth inertia map dragging

2010-05-31 Thread kilkul
Hi, I've looked across this group, and could not find any topic related to the difference between dragging the current maps.google.com application's map, and the API provided one, in terms of the inertia effect (when you drag the maps.google.com version, the map tends to slide smoothly a bit more

Re: [Google Maps API v3] Re: remove icons KML

2010-05-31 Thread Davide Cremonesi
You mean that you don't want the default markers on points? Try to define your own style using a blank icon inside your KML, such as http://YOUR URL OF A BLANK ICON . . #invisibleMarker ...

[Google Maps API v3] Limitations Help

2010-05-31 Thread Peter
If I am running api v3 to work out distances for my mysql table how many times can this be run per day. I will be inputing Latitude and Longitude does this count as geocoding. Also are there be limits on the number of times this can be run. http://maps.google.com/maps?saddr=lnglat&daddr=lnglat&o

Re: [Google Maps API v3] Re: refresh map ?

2010-05-31 Thread Davide Cremonesi
Rossko is right: you have to move the definition of your function inside the javascript tag. The fragment: _

Re: [Google Maps API v3] How to put a marker on the circumference of a Circle object

2010-05-31 Thread ricco *
Thanks a lot, this help me understand the underlying math. However, i think i need a formula to translate meters to pixel at given zoom. Cheers riccco 2010/5/31 Stephen Lead > It's been a while since I had to do this, so double-check the values. > > I think you can use SOHCAHTOA to calculate

Re: [Google Maps API v3] how to set Google Earth Map type

2010-05-31 Thread Miguel Angel Vilela
Hi Jude, There is no Earth support in V3, so no G_SATELLITE_3D_MAP, but you can still load and use the Earth API as a separate UI. Cheers, Miguel On Mon, May 31, 2010 at 10:21, jude wrote: > Hi, is this possible. in v2 i would specify the map type as > G_SATELLITE_3D_MAP, is this possible with

[Google Maps API v3] Re: Difference in Results

2010-05-31 Thread en4ce
as far as i saw is no distancesFrom function in V3 atm (or is there now?) might try this here: google.maps.LatLng.prototype.distanceFrom = function(newLatLng) { var R = 6371000; // m var lat1 = this.lat(); var lon1 = this.lng(); var lat2 = newLatLng.lat(); var lon2 = newLatLn

Re: [Google Maps API v3] How to put a marker on the circumference of a Circle object

2010-05-31 Thread Stephen Lead
It's been a while since I had to do this, so double-check the values. I think you can use SOHCAHTOA to calculate the coordinates of the new point, by drawing right-angles from the new point and the existing point, since you know the radius and the angle. My dodgy diagram at http://www.flickr.com/

[Google Maps API v3] Re: remove icons KML

2010-05-31 Thread en4ce
what icons ? icons are generated within the api and not in a kml file ... (atleast in V2, iam a bit unsure here) source ? On 31 Mai, 12:11, Santiago Nieto Carrera wrote: > Please, any idea? > > On 27 mayo, 17:35, Santiago Nieto Carrera > > wrote: > > Hi: > > > I want to load a KML file and not

[Google Maps API v3] Re: Saving google map in some manners

2010-05-31 Thread en4ce
Hi sangi step 1 store the cords (latlng) in a database step 2. render a kml file out of the stored cords or render the file directy without store the data in both cases you´ll need that kml file take a look on the kml reference p.s. dont go with staticmaps :-P maybe try something easy like th

[Google Maps API v3] Re: Pamela's XML parsing demo: problem accessing childNode for infoWindow

2010-05-31 Thread bern
thank you Davide Installing Firebug now & I promise to go back to javascript 101 before asking basic js questions again!! On May 31, 6:13 pm, dcremo wrote: > Hi Bern, > first I would recommend you to use Mozilla and Firebug to debug such > cases, it is _extremely_ helpful. > > In your specific si

[Google Maps API v3] Re: I want to hide floatShadow Pane & overlayShadow Pane

2010-05-31 Thread dbrb2
Thanks - that's sorted it. So am I right in thinking what I had been doing was using the default panorama bound to the map, which shares markers. What I have now done is created an entirely new panorama that happens to share the same div. Wrt the "enableclosebutton" it is enabled by default on th

[Google Maps API v3] Saving google map in some manners

2010-05-31 Thread sangi1981
Hi, I'm new and I just started programming with AJAX and Google API. I'm developing on an open source project that uses Google maps. I was asked to save the map displayed on the PC. I'm trying to follow the path of static maps, but do not understand how I could do and if this is possible. If someon

[Google Maps API v3] Re: remove icons KML

2010-05-31 Thread Santiago Nieto Carrera
Please, any idea? On 27 mayo, 17:35, Santiago Nieto Carrera wrote: > Hi: > > I want to load a KML file and not show icons. Is it possible? > > In google maps Scale tag does not work and if I remove the tag icon > shows me the default pin > > Solutions? > > Thanks. -- You received this message b

[Google Maps API v3] Difference in Results

2010-05-31 Thread Peter
I was currently updating my system from api v2 to api v3. When doing so I noticed that the two systems gave two different distances from two points. The two points were as followed: (50.749,-2.453) to (52.461783,-1.154466) which are two uk post codes. The api v2 gave a distance of 179 miles, whi

[Google Maps API v3] how to set Google Earth Map type

2010-05-31 Thread jude
Hi, is this possible. in v2 i would specify the map type as G_SATELLITE_3D_MAP, is this possible with version 3? -- 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...@googlegr

[Google Maps API v3] Re: Pamela's XML parsing demo: problem accessing childNode for infoWindow

2010-05-31 Thread dcremo
Hi Bern, first I would recommend you to use Mozilla and Firebug to debug such cases, it is _extremely_ helpful. In your specific situation the problem is that the first child of is not description, but a textNode (empty). So odd children are textNodes and even children are the description element

Re: [Google Maps API v3] Is there any way of apply CSS border-radius property to streetview divs?

2010-05-31 Thread Miguel Angel Vilela
I think CSS should be enough, although you might need two DIVs at the same place, one with round corners layered on top of the one that contains the StreetView client, so that the former one only hides the latter one's corners. On Sun, May 30, 2010 at 13:53, Miguel.camba wrote: > The question is

Re: [Google Maps API v3] Re: I want to hide floatShadow Pane & overlayShadow Pane

2010-05-31 Thread Marc Ridey
I'll try to find a bit of time to write a full demo. Just a few quick notes: - you're using map.getStreeView(new ...), it should be map.setStreetView(new ...). - you shouldn't need to set enableCloseButton to true (I think) - Start with the simplest test then add options such as: map = new

[Google Maps API v3] Re: Pamela's XML parsing demo: problem accessing childNode for infoWindow

2010-05-31 Thread bern
I should say, to be more clear, that I'm trying to get the contents of "description" tag into the infoWindow! On May 31, 5:13 pm, bern wrote: > I'm following Pamela's XML parsing demo > -http://gmaps-samples-v3.googlecode.com/svn/trunk/xmlparsing/downloadu... > > My attempt here -http://norestfo

Re: [Google Maps API v3] Socil Tagging

2010-05-31 Thread Miguel Angel Vilela
Hi, That sounds like a fairly simple, common thing. Here is a first approach you could do: - show a map - see http://code.google.com/apis/maps/documentation/javascript/introduction.html - listen for clicks on the map, so that a click adds a marker where the user clicks - see http://code.google.com

[Google Maps API v3] Re: Using Styled Maps with TERRAIN map type?

2010-05-31 Thread Thor (Google Employee)
We don't currently support styling other map types, because we can not recolour the base imagery right now, which for hybrid is the satellite photos, and for terrain is the green/grey elevation map. Would it be useful to be able to restyle the features on terrain (eg. the roads) without styling the

[Google Maps API v3] How to put a marker on the circumference of a Circle object

2010-05-31 Thread rccc
Hello, I try to play with the new Circle class (http://code.google.com/apis/ maps/documentation/javascript/reference.html#Circle). The API says we have to set a center in LatLng and a radius parameter in meters in the constructor. But i would like to put a marker on the circumference line. How c

[Google Maps API v3] Pamela's XML parsing demo: problem accessing childNode for infoWindow

2010-05-31 Thread bern
I'm following Pamela's XML parsing demo - http://gmaps-samples-v3.googlecode.com/svn/trunk/xmlparsing/downloadurl_info.html My attempt here - http://norestforthewicked.net/nihon09/test2 My issue is getting to the "description" in the XML that I've accessed via the Flickr API. Sample: subordinat

Re: [Google Maps API v3] Re: Do you need a token if you have a key?

2010-05-31 Thread Ron Calzone
Esa, Thanks for the tip. Now I have another tree to bark up! There seems to be vast amounts of documentation on Google Maps, but it's just "out there" and it's hard to determine what applies, what's deprecated and what just plain doesn't work. It looks to me like basic functionality (e.g. c

[Google Maps API v3] Custom dynamic markers

2010-05-31 Thread Toemouse
When zoomed to a certain level I want my markers to change to contain dynamic content (logo and a title). This data will be stored in JSON format. What is the best way to do this? -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group.

[Google Maps API v3] how to use sensor to plot real-time

2010-05-31 Thread atharva
hey I have a helicopter with a GPS onboard. I want to plot this GPS position on google maps in realtime. I understand that i need to set the sensor parameter to true but I am wondering what Google Maps expects as an input for sensor data. The GPS from the helicopter sends back data at 1Hz using t

[Google Maps API v3] Re: I want to hide floatShadow Pane & overlayShadow Pane

2010-05-31 Thread dbrb2
Hello, I gave that a go - an excerpt from the code that sets up the map is shown below: function initialize(){ var latlng = new google.maps.LatLng(51.511589,-0.132043); var myOptions = { mapTypeId: google.maps.MapTypeId.ROADMAP, mapTypeControl: true

[Google Maps API v3] Re: Using Styled Maps with TERRAIN map type?

2010-05-31 Thread Sai Perchard
My aim is to remove the location names from the terrain view, so it's just a plain terrain map without any placemarkers. Essentially I just need to render the terrain view sans location names. On May 31, 4:33 am, Mike Swope wrote: > I've thought about this a little, but havent looked into it. One