[Google Maps API v3] Re: What's wrong with this ?

2011-04-25 Thread Mesh3L
Thank Rossko. I'm a Javascript newbie, i tried to implement the prevent function in many different ways but i still have the same problem. I should be thankful if you can assist me with this. Thanks -- You received this message because you are subscribed to the Google Groups "Google Maps Java

[Google Maps API v3] Re: Recent Maps API Update causing canvas warning with Polygon fillOpacity option

2011-04-25 Thread R Konig
I got the same Firebug warning when using polylines. Lawrence's solution for polygons works for polylines too: BEFORE mypolyline = new google.maps.Polyline({ strokeWeight: 2, strokeColor:"#ff", strokeOpacity:0.5 }); mypolyline.setMap(map); mypolyline.setPath(new google.maps.MVCArray([path]));

[Google Maps API v3] Re: Help V3: Replacement for Infowindowbeforeopen and infowindowbeforeclose events V2.

2011-04-25 Thread Esa
I agree Rossko that you can set the infowindow content at the moment of opening without any special event. It is often done in marker 'click' handler I would save the user input in real time using 'change' events of text fields and 'dragend' events on the map. -- You received this message becaus

[Google Maps API v3] Re: Google search bar con api V3

2011-04-25 Thread Rossko
(translation) > Is it possible to implement the google search bar with google maps api > V3? > if so, can anyone give an example? http://gmaps-samples-v3.googlecode.com/svn/trunk/localsearch/places.html -- You received this message because you are subscribed to the Google Groups "Google Maps Ja

[Google Maps API v3] Re: scaning a map

2011-04-25 Thread Rossko
> just i want to define sectors in google maps recovering addresses and > roads for each sector. The Google maps API provides no way to get all the roads and addresses for a given area. -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3"

[Google Maps API v3] Re: troubles with route function

2011-04-25 Thread Rossko
> var t = "0"; ... >     directionsService.route(request, function(response, status) {... This fires the request to Google >    document.form1.mytext.value=t; This sets '0' in your form. Some time later the result arrives back from Google, and now the callback function is run. >t = "He

[Google Maps API v3] Recent Maps API Update causing canvas warning with Polygon fillOpacity option

2011-04-25 Thread Lawrence
Hi there, This is something I've only recently noticed and can only think it was brought on by an API update. Not sure if it's a bug, but thought I should bring it up in case someone else runs into the same issue. I had a polygon construct with the following options: myPoly = new google.maps.Pol

[Google Maps API v3] Re: scaning a map

2011-04-25 Thread mouadh
hi, just i want to define sectors in google maps recovering addresses and roads for each sector. thx very much for your answer. On 25 avr, 14:05, "geocode...@gmail.com" wrote: > On Apr 24, 1:28 am, mouadh wrote: > > > hi, > > i want to scan a map by drawing and defining some object like > > tagg

[Google Maps API v3] Google search bar con api V3

2011-04-25 Thread Juan Carlos Vargas
Buenas, ¿es posible implementar la google search bar en google maps con la api V3? de ser así, ¿alguien puede poner un ejemplo? Agradeceria respuestas en castellano, pues en otro idioma me cuesta entenderlo. Un saludo. -- You received this message because you are subscribed to the Google Group

[Google Maps API v3] Re: Map FitBounds not zooming in

2011-04-25 Thread Rossko
> So, from that code, it will do a fitBounds only if the bounds are > available.  Otherwise, the fitBounds is not executed.  Is there a method to > clear out the mapBounds for the map? MapBounds is not a property or method of an API map object ; it is a property that your code creates and assigns

Re: [Google Maps API v3] Re: Map FitBounds not zooming in

2011-04-25 Thread CSharp
Thanks so much Michael! The explanation was awesome and the code change as you've suggested did the trick. -- 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

Re: [Google Maps API v3] Re: Map FitBounds not zooming in

2011-04-25 Thread Michael Geary
Just a minor update to my reply - the *}* character highlighted below was a copy and paste error, not part of the code you should replace. On Mon, Apr 25, 2011 at 3:06 PM, Michael Geary wrote: > > You could easily fix that by changing this bit of code: > > if( currentMapBounds ) > cu

[Google Maps API v3] Re: Infowindow and Flash content problems when using Firefox 4

2011-04-25 Thread epschmidt
I can confirm that embedded Flash content is not working in infowindow's in Firefox 4 for OSX either. This includes iframe YouTube embeds. I haven't found a workaround but would be very interested in a solution. On Apr 7, 11:56 am, bobemond wrote: > Firefox 4 doesn't seem to be able to display Fl

[Google Maps API v3] Re: Map FitBounds not zooming in

2011-04-25 Thread geocode...@gmail.com
On Apr 25, 2:39 pm, CSharp wrote: > I'm currently running FireFox 3.6.3 with FireBug 1.6.1 FYI - native JSON support was added to Firefox in 3.5: https://developer.mozilla.org/En/Using_native_JSON -- Larry -- You received this message because you are subscribed to the Google Groups "Google

[Google Maps API v3] Re: Map FitBounds not zooming in

2011-04-25 Thread CSharp
I'm currently running FireFox 3.6.3 with FireBug 1.6.1 -- 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 g

[Google Maps API v3] Re: Map FitBounds not zooming in

2011-04-25 Thread geocode...@gmail.com
On Apr 25, 2:24 pm, CSharp wrote: > Hmmm, I'm not seeing any Javascript error in Firefox using FireBug.   What version of Firefox are you running? > Here's > the code from the map.js that should be binding the map bounds: > >  MapObject.prototype.SetMapBounds = function() > { var me = this; >  

[Google Maps API v3] Re: Map FitBounds not zooming in

2011-04-25 Thread CSharp
Hmmm, I'm not seeing any Javascript error in Firefox using FireBug. Here's the code from the map.js that should be binding the map bounds: MapObject.prototype.SetMapBounds = function() { var me = this; var currentMapBounds = null; //Creates a new map bounds every time the route/pattern is

[Google Maps API v3] Re: Markers do not follow map scaling when zooming

2011-04-25 Thread Rossko
> By this I mean that, when a map is zoomed in or out, the marker is scaled > *first > *and then the map is scaled. See also this thread (the effect is probably browser dependent) http://groups.google.com/group/google-maps-js-api-v3/browse_thread/thread/d216f98b7bddaed2# perhaps an enhancement re

[Google Maps API v3] Re: Modifying Maps Store Locator to display stores from 2 different DB tables at the same time.

2011-04-25 Thread Rossko
> I am using the Google Maps Store locator and I am trying to modify it to > allow certain 'stores' which are 'feature stores' be shown at the top of the > list in the sidebar above the normal list. I think if it were me I would add an extra property 'featured' to the XML sent to the client, then

[Google Maps API v3] Re: Map FitBounds not zooming in

2011-04-25 Thread Rossko
> Click on the following routes in sequence: > > 1) 10 Northeast Loop Fails at that point for me in FF2 "JSON is not defined" http://demo.mentormyride.com/Scripts/map.js Line 1372 -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group.

[Google Maps API v3] Re: Map FitBounds not zooming in

2011-04-25 Thread geocode...@gmail.com
On Apr 25, 12:33 pm, CSharp wrote: > I seem to have an issue with the Google Map's fitBound method not zooming > into a set of LatLng's after the viewport has been adjusted and zoomed out.   > For some reason, going back to the original set of LatLng's (or > LatLngBounds), the zoom level and cente

[Google Maps API v3] Re: directionsService not able to find a route when using the API in some languages

2011-04-25 Thread Carlos Rodrigues
Code sample: directionsService = new google.maps.DirectionsService(); var request = { origin: "R. Savério de Donato, 370", destination: "-23.6214282, -46.687355", travelMode: google.maps.DirectionsTravelMode.DRIVING, provideRouteAlternatives:false, region:'B

[Google Maps API v3] directionsService not able to find a route when using the API in some languages

2011-04-25 Thread Carlos Rodrigues
Hi, I was using the directionsService and wanted to get results in my language "pt-BR", after some searching here in the forum i found out i needed to load the API with the language parameter: http://maps.google.com/maps/api/js?sensor=false&*language=pt-BR* Ok, but then something really weird

[Google Maps API v3] Re: Help V3: Replacement for Infowindowbeforeopen and infowindowbeforeclose events V2.

2011-04-25 Thread Rossko
> How I have to realize this in V3, without existing of the beforeclose and > beforeopen events of a Infowindow??? How are you opening the infowindow, if you add lines of code to that function that makes an effective 'beforeopen'. The infowindow fires a 'domready' event which I would think you ca

[Google Maps API v3] Map FitBounds not zooming in

2011-04-25 Thread CSharp
I seem to have an issue with the Google Map's fitBound method not zooming into a set of LatLng's after the viewport has been adjusted and zoomed out. For some reason, going back to the original set of LatLng's (or LatLngBounds), the zoom level and centering seems to be stuck for the bounds tha

[Google Maps API v3] Override AddListener click event in GeoXML3

2011-04-25 Thread Mark Thompson
I'm trying to get the click event for the Polygons within a GeoXML3 wrapper to display what I want it to display rather than the name and description. As it is, the click event is already defined in GeoXML3. My current example is at: http://www.alliedwasteidaho.com/trash-and-recycling/collec

Re: [Google Maps API v3] Map object not loading

2011-04-25 Thread Chris Broadfoot
On Mon, Apr 25, 2011 at 11:03 AM, achin kulshrestha wrote: > *mapObject = new GoogleMapsConnector();* > What's a GoogleMapsConnector? We'll need to see the full source of your page to help. -- http://twitter.com/broady -- You received this message because you are subscribed to the Google Gr

[Google Maps API v3] Map object not loading

2011-04-25 Thread achin kulshrestha
Sir, I am making a new map object and while finding the route between two places I call its class constructor GoogleMapsConnector but as soon as the flow reaches the line "*mapObject = new GoogleMapsConnector();" some weird code appears and the execution doesn't reaches the class GoogleMapsCon

Re: [Google Maps API v3] Multiple Locations @ Same Lat Lon

2011-04-25 Thread Chris Broadfoot
This is an interesting design problem, for sure. Is it useful to have ~100 pieces of detailed data on the screen at once? I'd suggest either providing filters so that users can find the location they need, or providing a summary (~1 line) to scroll through and then click through for more detail.

[Google Maps API v3] Multiple Locations @ Same Lat Lon

2011-04-25 Thread Mike Ryan
I have maps where there will often be more than one location at the same place, up to 100 or more. These locations have the exact same lat/ lon. I know about the various ways you can group markers, but none of those do what I'm looking for. I need information for each location to be accessible. I

[Google Maps API v3] Markercluster rightclick event

2011-04-25 Thread Gang Fu
Hi, I am using markercluster, but I have tough time to get right click event fired, I am able to get mouseover and mouseout by adding following code in to ClusterIcon.prototype.onAdd = function() { google.maps.event.addDomListener(this.div_, 'mouseover', function() {...} google.maps.event.

[Google Maps API v3] Market and Direction route is not rendering in Nokia WRT widget.

2011-04-25 Thread vimal
Hi all, I am developing an widget in WRT Nokia , i am using google map javascipt Api in that. I put coding of marker as well as direction route same as sample on this site but somehow it can not render on map or it is not visible. Please help me. Thanks Vimal -- You received this message be

[Google Maps API v3] Markers do not follow map scaling when zooming

2011-04-25 Thread sgiddings
By this I mean that, when a map is zoomed in or out, the marker is scaled *first *and then the map is scaled. This leads to marks being overly scaled when zooming out with the mouse wheel and is rather ugly. Should this be considered as a bug ? Is there a workaround ? -- You received this mes

Re: [Google Maps API v3] Re: InfoWindow causes my map to not appear

2011-04-25 Thread K Bowman
Ok, I think I added the correct code that was missing for the info window and it opens in the map (outside of the iframe) when the marker is clicked on. Any suggestions on improving that code, or user interaction would be greatly appreciated. On Mon, Apr 25, 2011 at 9:26 AM, K Bowman wrote: > S

[Google Maps API v3] Sectors

2011-04-25 Thread Gerep
Hi, I have a map from São Paulo and the City Hall has a printed map separated by sectors limiting the size of each field in the block. I need to do the same thing with Google Maps, is it possible? The information I have is the complete address and size of the field. Thanks in advance for any

Re: [Google Maps API v3] Re: InfoWindow causes my map to not appear

2011-04-25 Thread K Bowman
So, the marker that I currenlty have defined can't be used for the infowindow? I thought I could just include the infowindow code with the existing marker code and have them both appear. On Mon, Apr 25, 2011 at 3:38 AM, Rossko wrote: > > Hmm... there was a conflict between the template and the

[Google Maps API v3] Re: Help V3: Replacement for Infowindowbeforeopen and infowindowbeforeclose events V2.

2011-04-25 Thread Guus Jansen
Until now nobody has answered my question about Infowindowbeforeopen and Infowindowbeforeclose. So here is a more functional description of what I want to do: My users can create Markers, with a Infowindow. Between the Markers I draw a Polyline as route. Every Infowindow has three tab-pages

Re: [Google Maps API v3] Disable 3D Buildings in Maps v3?

2011-04-25 Thread Barry Hunter
Check out Styled maps This is a very good way to play with them: http://gmaps-samples-v3.googlecode.com/svn/trunk/styledmaps/wizard/index.html Disabling "Landscape -> Man Made" seems to hide 3D buildings just fine. On 25 April 2011 08:03, Dan wrote: > Is there a way to disable the 3D effects t

[Google Maps API v3] Re: get the zip code or postal code of particular address

2011-04-25 Thread geocode...@gmail.com
On Apr 25, 7:05 am, jemmy puerto wrote: > Thanks.. but maybe i need a specific function or codes.. Maybe you should look at the documentation and the examples there: http://code.google.com/apis/maps/documentation/javascript/services.html#Geocoding or the samples: http://code.google.com/apis/maps/

Re: [Google Maps API v3] Re: get the zip code or postal code of particular address

2011-04-25 Thread jemmy puerto
Thanks.. but maybe i need a specific function or codes.. On Sun, Apr 24, 2011 at 5:08 AM, Rossko wrote: > > how can i get the zip code or postal code of particular address any > > idea or codes to share.. thanks in advance.. ^^ > > You could try the geocoder > > http://code.google.com/apis/maps/

[Google Maps API v3] Re: scaning a map

2011-04-25 Thread geocode...@gmail.com
On Apr 24, 1:28 am, mouadh wrote: > hi, > i want to scan a map by drawing and defining some object like > taggabale sector, taggabale route... I don't know what that means. > i want also automatically retrieve a route between two points. > how can i do that with Google Maps JavaScript API v3 or

[Google Maps API v3] Re: AddListener click event for polygons in GeoXML

2011-04-25 Thread geocode...@gmail.com
On Apr 25, 3:37 am, Mark Thompson wrote: > Sorry, I meant geoxml3, the one available at: http://code.google.com/p/geoxml3/ > > Starting to get used to the idea that I need to start actually > opening these files up rather than assuming that they behave like > the programs they're derived from in

Re: [Google Maps API v3] Problem: Markers Drifting Position when Zooming

2011-04-25 Thread Ben Appleton
The error is where you write (links[i].coords[0].lng() + links[i].coords[1].lng()) / 2.0; This does not give the mid point of the line. To find the mid point of a line, use the geometry library's interpolate() function: http://code.google.com/apis/maps/documentation/javascript/reference.html#sph

[Google Maps API v3] Re: Distance between point and edge of polygon using GeoXML

2011-04-25 Thread geocode...@gmail.com
On Apr 25, 3:03 am, Mark Thompson wrote: > Awesome, thanks!   Figure I should keep yours since you're the one > whose undertaken updating it in case you make further updates. >  Works great now! If you mean you are pointing to the version on my site, please don't use my bandwidth for your page.

[Google Maps API v3] Problem: Markers Drifting Position when Zooming

2011-04-25 Thread Geeko
Greetings all, I've developed some javascript code that draws two-point Polylines (straight lines). In zoom_changed event I calculate the position of lines mid point and I create a Marker at that position. I noticed that as I zoom in further these Markers keep drifting from the actual mid point

[Google Maps API v3] Re: AddListener click event for polygons in GeoXML

2011-04-25 Thread Mark Thompson
Sorry, I meant geoxml3, the one available at: http://code.google.com/p/geoxml3/ Starting to get used to the idea that I need to start actually opening these files up rather than assuming that they behave like the programs they're derived from in version 2. I see that the AddListener event is alre

[Google Maps API v3] Re: Need help google maps api v3 with ajax?

2011-04-25 Thread en4ce
how about read the files with php/asp (what ever) and generate some js code (arrays) with it, and parse through the array with js ? On 23 Apr., 21:09, Rossko wrote: > > I have a file in server, it shows latitude and longitude values only. > > And i have a map file in another location. > > I want

[Google Maps API v3] Modifying Maps Store Locator to display stores from 2 different DB tables at the same time.

2011-04-25 Thread Michael Kaufman
I am using the Google Maps Store locator and I am trying to modify it to allow certain 'stores' which are 'feature stores' be shown at the top of the list in the sidebar above the normal list. I have created a new table which matches the Markers table called Featured and I have be able to dupli

[Google Maps API v3] Re: AddListener click event for polygons in GeoXML

2011-04-25 Thread Mark Thompson
On Apr 25, 2:00 am, "geocode...@gmail.com" wrote: > On Apr 24, 11:31 pm, Mark Thompson wrote: > > > I'm trying to figure out how I add a click event to polygons within > > GeoXML.   It used to be if I added one to the map, it was able to > > handle it, passing the overlay, but now it just ignor

[Google Maps API v3] Re: Distance between point and edge of polygon using GeoXML

2011-04-25 Thread Mark Thompson
Awesome, thanks! Figure I should keep yours since you're the one whose undertaken updating it in case you make further updates. Works great now! On Apr 25, 1:59 am, "geocode...@gmail.com" wrote: > On Apr 24, 11:04 pm, Mark Thompson wrote: > > > Thanks, the new version of the library stops it

[Google Maps API v3] Re: What's wrong with this ?

2011-04-25 Thread Rossko
> My map is here : > http://69.167.189.144/~meshalw/g/indexg.php I don't think it's got anything to do with maps. Your 'Submit' button has an onclick action, but is also attached to your form No action= attribute is given for your form, and so the default behaviour is to reload the whole page.

[Google Maps API v3] Re: InfoWindow causes my map to not appear

2011-04-25 Thread Rossko
> Hmm... there was a conflict between the template and the component > com_properties where both had slimbox.js jQuery defined and I was told by > the template developer i had to remove one which I did but apparently there > is now an error. slimbox.js errors out because it is dependent on jquery,

Re: [Google Maps API v3] Two Maps

2011-04-25 Thread Scott Wilcox
Post a link to your map. On 25 Apr 2011, at 10:22, Navindian wrote: > Two maps on a single xhtml page. I wish to put two different on a single > facelet. Either of the map is showing off. At a time, two maps are not > getting shown. -- Scott Wilcox @dordotky | sc...@dor.ky | http://dor.ky +44

[Google Maps API v3] Two Maps

2011-04-25 Thread Navindian
Two maps on a single xhtml page. I wish to put two different on a single facelet. Either of the map is showing off. At a time, two maps are not getting shown. -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group

[Google Maps API v3] Re: Gmaps v3 with mysql/php

2011-04-25 Thread Rossko
> Is there anywhere an example with mysql and php. We would like to find > something similar to > thishttp://code.google.com/apis/maps/articles/phpsqlgeocode.html,  but it > is nots v3 version. You could look in the v3 documentation to see if there is something similar? http://code.google.com/api

[Google Maps API v3] Gmaps v3 with mysql/php

2011-04-25 Thread Valentinas Šarėjus
Hi, Is there anywhere an example with mysql and php. We would like to find something similar to this http://code.google.com/apis/maps/articles/phpsqlgeocode.html, but it is nots v3 version. Sorry for poor English language knowledge :) Valentinas -- You received this message because you are sub

[Google Maps API v3] scaning a map

2011-04-25 Thread mouadh
hi, i want to scan a map by drawing and defining some object like taggabale sector, taggabale route... i want also automatically retrieve a route between two points. how can i do that with Google Maps JavaScript API v3 or v2 ?? Thx for your help. -- You received this message because you are subsc

[Google Maps API v3] Re: Distance between point and edge of polygon using GeoXML

2011-04-25 Thread geocode...@gmail.com
On Apr 25, 12:59 am, "geocode...@gmail.com" wrote: > On Apr 24, 11:04 pm, Mark Thompson wrote: > > > Thanks, the new version of the library stops it from erroring out, > > but the line: > > > var > > distancetoedge=Math.round(bdccGeoDistanceToPolyMtrs(geoXml.docs[0].gpolygon > > s[i], > > point)

[Google Maps API v3] Re: Distance between point and edge of polygon using GeoXML

2011-04-25 Thread geocode...@gmail.com
On Apr 24, 11:04 pm, Mark Thompson wrote: > Thanks, the new version of the library stops it from erroring out, > but the line: > > var > distancetoedge=Math.round(bdccGeoDistanceToPolyMtrs(geoXml.docs[0].gpolygon > s[i], > point)*3.28);   > > returns NaN when I display what's in distancetoedge.

[Google Maps API v3] Re: AddListener click event for polygons in GeoXML

2011-04-25 Thread geocode...@gmail.com
On Apr 24, 11:31 pm, Mark Thompson wrote: > I'm trying to figure out how I add a click event to polygons within > GeoXML.   It used to be if I added one to the map, it was able to > handle it, passing the overlay, but now it just ignores any event > that is within a defined polygon.  It will pass

[Google Maps API v3] Re: What's wrong with this ?

2011-04-25 Thread Mesh3L
Still no solution. It seems that for some reason it happens when OnClick i call the function meshal() that has the DownloadUrl function. I need to have the DownloadUrl included in a function so i call that function OnClick whenever the user changes the search value. -- You received this messag

[Google Maps API v3] Disable 3D Buildings in Maps v3?

2011-04-25 Thread Dan
Is there a way to disable the 3D effects that you find if say you search for the Sears Tower in Google Maps? I'm doing a custom map where I want to overlay floorplans on top of buildings and it just looks ugly when the buildings are in 3D (with bits of the building poking out above or below the