[Google Maps API v3] 回覆:Re: Help initialize Google Maps Javascript API

2011-04-27 Thread Felix Felix
Dear all, Yes the problem is caused by jQuery Accordion. It is fixed after in stop using it. Thank you very much to anyone help me to solve the problem -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, sen

[Google Maps API v3] 回覆:Re: Help initialize Google Maps Javascript API

2011-04-27 Thread Felix Felix
Dear all, I found one thing may related to the problem is that. The problem will be fixed if i resize the browser It seems it will be fixed if i redraw the webpage. I am wordering if the problem is caused by i am using jQuery Accordion in the page. -- You received this message because you are s

[Google Maps API v3] 回覆:Re: Help initialize Google Maps Javascript API

2011-04-27 Thread Felix Felix
Dear all, Thank you Rossko about helping me to solve the problem. However, the already defined the size 500px*500px but the error still exists. -- 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

Re: [Google Maps API v3] Is there a limit to the number of infoboxes?

2011-04-27 Thread Luke Mahé
I don't see any infoboxes - when I click a image I get: Uncaught ReferenceError: initLightbox is not defined -- Luke On Thu, Apr 28, 2011 at 6:38 AM, pontusw wrote: > Hi all > > I'm a bit confused. I'm using infoboxes to display clickable images - > however, it seems like I can only have 3 infob

[Google Maps API v3] Re: Help initialize Google Maps Javascript API

2011-04-27 Thread Rossko
> However, I have faced a problem when initializing my Google Map that it > seems loaded with wrong viewport location Make sure element gm_0 has some size (height and width properties) -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" g

[Google Maps API v3] Re: Map turning gray when loading and using TERRAIN

2011-04-27 Thread Rossko
> I don't see the issue at:http://www.bdtheque.com/carte-bds.php Me neither (FF2 in the UK) . Perhaps its regional. -- 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@goo

[Google Maps API v3] Re: How to narrow by distance in a google map?

2011-04-27 Thread AdamD
Hi Rashid, The answer to your question depends on how you are storing the points (hotels in your example). If each hotel is a marker on your map, you could iterate through each marker and calculate the distance between the marker's location and the center of the map using the Haversine formula (a

Re: [Google Maps API v3] Maps suddenly not showing

2011-04-27 Thread Luke Mahé
It looks like your initialize function is not being called - if I manually call initialize(); from the console then the maps appear. You should probably look at why the function is not being called. One option is to add a event listener to the window load event instead of adding onload="initialize

[Google Maps API v3] Maps suddenly not showing

2011-04-27 Thread JC
Hi all Suddenly my maps stopped working... I tried setting the version number and checked the code but couldn't find anything wrong. Here is the link: http://laspalmascigar.com/en/contact-us.html Thanks in advance. -- You received this message because you are subscribed to the Google Groups "

Re: [Google Maps API v3] Re: Map turning gray when loading and using TERRAIN

2011-04-27 Thread Ben Appleton
I don't see the issue at: http://www.bdtheque.com/carte-bds.php In IE, FF and Chrome I have tried: 1 - Load http://www.bdtheque.com/carte-bds.php 2 - Leave the page and come back at once I see no flashing or gray tiles. Can you provide additional details so we can reproduce the issue? Thanks Ben

[Google Maps API v3] Re: Import/Export GPX and KML (possibly also XML)

2011-04-27 Thread John M Phillips
The google maps client side scripts deal in KML files or in specific objects, so I am assuming that you want to convert either on a server side application or to statically convert files. In these two cases I strongly recommend gpsbabel. In its command line form it could be executed from a cgi sc

[Google Maps API v3] Re: Map turning gray when loading and using TERRAIN

2011-04-27 Thread Esa
Yes, I can confirm a really weird behavior. If you leave the page and come back at once, the map tiles flash and go away to gray. Firebug doesn't report any image requests. The tiles are in browser cache but they are not shown. If you pan, you can see new tiles but the gray area stays in the middl

Re: [Google Maps API v3] Directions service API feature request

2011-04-27 Thread Chris Broadfoot
Unfortunately it's not available today, and I can't speak for it being available in terms of any time frame. Could you file a feature request so that other people interested can star it? FYI, check out graph server: http://graphserver.github.com/graphserver/ On Wed, Apr 27, 2011 at 2:45 PM, Phil

Re: [Google Maps API v3] Street View images not loading in IE

2011-04-27 Thread Ben Appleton
http://code.google.com/apis/maps/documentation/javascript/examples/streetview-map.html works for me in IE7, IE8 and IE9. Can you provide some more detail to reproduce the issue? Thanks Ben On Thu, Apr 28, 2011 at 2:40 AM, Thomas Simpson wrote: > On the current (3.4) version of the API, using the

[Google Maps API v3] Directions service API feature request

2011-04-27 Thread Phil
I would like deeper/richer access to the Directions service API beyond Travel modes: DirectionsTravelMode.WALKING. I would like to introduce additional factors/costs into the calculation of pedestrian/walking directions. Would this be something Google would be interested in exposing in the near

[Google Maps API v3] Map turning gray when loading and using TERRAIN

2011-04-27 Thread Alix Bergeret
Hi, Since today, when my map finishes loading, it turns gray: http://www.bdtheque.com/carte-bds.php It *only* happens if I set MapTypeId to TERRAIN. However if I specify mapTypeControl: false, it works again! I have left it to true for you to see the problem. Is this a bug in the latest build?

[Google Maps API v3] How to narrow by distance in a google map?

2011-04-27 Thread rashid herrera
Hello. I have a business directory, when someone go to one category, for example hotels in city=valencia then I want show a list of hotels in valencia, at the right side a google map with all those hotels and a little bar or drop down menu that say: View hotels near: 5km, 10km, 20 km, 30km, 4

[Google Maps API v3] Is there a limit to the number of infoboxes?

2011-04-27 Thread pontusw
Hi all I'm a bit confused. I'm using infoboxes to display clickable images - however, it seems like I can only have 3 infoboxes on my map at any one time. As soon as I add a new one the last one I added disappears. Anyone know why this might be? My site is http://www.layersoflondon.org/ -- Y

[Google Maps API v3] display and style icons from database

2011-04-27 Thread wikgrebc
Hi, This topic has been touched on by others, but I have not yet found a solution to what I would like to accomplish. I have designed a couple API maps, mostly displaying kml layers created in ArcGIS, but I am still pretty novice here. Basically, I want to have a table, which contains lat/long

Re: [Google Maps API v3] Re: Help with toggling traffic layer.

2011-04-27 Thread Val
Filed issue 3271: http://code.google.com/p/gmaps-api-issues/issues/detail?id=3271 Val -- 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

[Google Maps API v3] Help initialize Google Maps Javascript API

2011-04-27 Thread Felix Felix
Dear all, I am a very newbie in Google Map API. I just try to embed a Google Map in my website developing with a maker on it. However, I have faced a problem when initializing my Google Map that it seems loaded with wrong viewport location

[Google Maps API v3] Re: Can I work out the bearing to put in the Street View url so StreetView is looking in the direction of a particular building?

2011-04-27 Thread Rossko
> thinking that maybe other people have attempted to do something > similar? If so, were you able to calculate which direction Street View > should face when looking at certain things? Example discussion http://groups.google.com/group/google-maps-js-api-v3/browse_thread/thread/185ea9104cfd61dd/348

Re: [Google Maps API v3] Re: Help with toggling traffic layer.

2011-04-27 Thread Michael Geary
Great! While it's fresh in your mind, would you file a bug report in the issue tracker? http://code.google.com/p/gmaps-api-issues/issues/list Thanks, -Mike On Wed, Apr 27, 2011 at 12:25 PM, Val wrote: > OK, I think it is official now: it

Re: [Google Maps API v3] Re: Help with toggling traffic layer.

2011-04-27 Thread Val
OK, I think it is official now: it's a bug! I tried with v3.3 (and the previous version of my js code ;) and it works as expected (currently on-line). Thanks everyone for the replies! Val -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript AP

[Google Maps API v3] Can I work out the bearing to put in the Street View url so StreetView is looking in the direction of a particular building?

2011-04-27 Thread Mike Steven
I've got a mapping application that does a spatial search and finds nearest services (things like libraries etc) and I want to have a link that the user can click so they can then see that building/service in Street View. I've got Google Street View to launch at the location of the building but I'm

[Google Maps API v3] Re: showing marker info on clusterclick

2011-04-27 Thread Filmo
Also subscribing to this thread On Apr 27, 7:04 am, Mike Ryan wrote: > Subscribing. -- 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

[Google Maps API v3] Re: problem with custom projection

2011-04-27 Thread Nianwei Liu
The projection implementation in V3 is more limited compare to V2. UTM should not be a problem if you use V2. It's still doable in V3, but you may run into problems for polygon and polylines (markers works fine). You can try follow this example to implement your UTM. http://code.google.com/apis/map

[Google Maps API v3] Re: Help with toggling traffic layer.

2011-04-27 Thread Nianwei Liu
Looks like another case of newer version API broke stuff. It's seems v 3.4 caused a lot of problems, and it's unclear in the change log what's been done. > > Did you test it with V3.3 or 3.2? I would try those older versions to see > what happens: -- You received this message because you are su

Re: [Google Maps API v3] Re: Help with toggling traffic layer.

2011-04-27 Thread Michael Geary
The first version of your code was much better. :-) You understood scoping correctly; there's no need to move those variables to the global scope. That said, I don't know what the problem is either. It certainly looks like you're making the right call when I stop and look at it in Firebug. I susp

[Google Maps API v3] Re: Help with toggling traffic layer.

2011-04-27 Thread Val
Yeah, I saw it and it really looks like a bug - thank you. Actually I started with a lot more code than this. In the original code, when I click the button the canvas would get gray with the controls on top and only if I force repaint of the image somehow (zoom in/out or resize the map div) th

[Google Maps API v3] How do I position infoboxes?

2011-04-27 Thread pontusw
Hi, I hope that someone can help me, I'm new to Google Maps (and Javascript!). I've used infoboxes to display clickable images that open up in a lightbox. What I'd like to do is position the infoboxes over my markers (covering them) so that I basically get clickable markers. I'm trying to use

[Google Maps API v3] Re: Help with toggling traffic layer.

2011-04-27 Thread Val
The map and the traffic variables were in the closure of the event callback but just in case I'm wrong I modified the script to: google.maps.event.addDomListener( window, 'load', init ); map = null; traffic = null; function init() { var options = { zoo

[Google Maps API v3] Re: sthg wrong with the travel mode

2011-04-27 Thread summerap
function setDirections(fromAddress, toAddress, locale) { var modeArray = []; if(document.getElementById("mode").selectedIndex==0){ modeArray[0] = G_TRAVEL_MODE_WALKING; }else if(document.getElementById("mode").selectedIndex==1){ modeArray[0] = G_TRAVEL_MODE_DRIVING; }else{ modeArray[0] = G_TRAVEL_M

[Google Maps API v3] Street View images not loading in IE

2011-04-27 Thread Thomas Simpson
On the current (3.4) version of the API, using the default drag and drop "street man" to open a street view, the images are not loading on IE. It seems to have started failing yesterday, but it certainly failing right now. It works fine in Firefox. -- You received this message because you are

[Google Maps API v3] Re: sthg wrong with the travel mode

2011-04-27 Thread summerap
travelModeString = document.getElementById('mode').options[document.getElementById('mode').selectedIndex].value; Walking Driving Does not work. travelModeString = document.getElementById('mode').options[document.getElementById('mode').selectedIndex].value; Wal

[Google Maps API v3] problem with custom projection

2011-04-27 Thread James
I am trying to use a custom projection. I started from these sample code: 1. I use the calculation function from this sample (I assume this the calculation function used by the API for the Mercator projection): http://code.google.com/apis/maps/documentation/javascript/examples/map-coordinates.

Re: [Google Maps API v3] Re: Shapefile Integration

2011-04-27 Thread Nathan Raley
I've done similar projects using the ogre tool mentioned above and they have turned out rather well. Doesn't have all the facny configuration options, but you can easily do some xml editing on the file they produce to change things to your liking. On Wed, Apr 27, 2011 at 10:18 AM, Chris Broadfoot

Re: [Google Maps API v3] Re: Shapefile Integration

2011-04-27 Thread Chris Broadfoot
Why didn't it work very well? Can you link us to the generated Fusion Table and the SHP file? On Wed, Apr 27, 2011 at 2:57 AM, Bob Torzynski wrote: > I tried shpescape.com but it didn't seem to work too well for me. A > better bet IMHO is available at http://fwtools.maptools.org/ - which > provi

[Google Maps API v3] Re: sthg wrong with the travel mode

2011-04-27 Thread JKurtock
With a SELECT box, what you want is the VALUE of member of a COLLECTION of options, which MEMBER is indexed from the collection by the selectedIndex. Take a look at http://msdn.microsoft.com/en-us/library/ms537472(v=VS.85).aspx So as I said, what you want is travelModeString = document.getElement

[Google Maps API v3] Re: showing marker info on clusterclick

2011-04-27 Thread Mike Ryan
Subscribing. -- 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...@googlegro

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

2011-04-27 Thread Mike Ryan
This is the link to the v3 Geocoding API http://code.google.com/apis/maps/documentation/geocoding/ Not exactly what you're looking for, but might be useful. -Mike -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to thi

[Google Maps API v3] Re: sthg wrong with the travel mode

2011-04-27 Thread summerap
but how i assign element of array into option to let user choose? there must be an interface to allow user choose right? Any suggestion? On Apr 27, 4:58 am, Esa wrote: > The first one probably works > >     >         Walking >         Driving >     > > but that is just good luck because those ha

[Google Maps API v3] Re: sort a list by distance

2011-04-27 Thread Matthew Libhart
Hi Larry, Thanks for the reply. I don't check this email to often so I didn't see it until today. I actually got it all to work, and what took me a while was figuring out how to change the page around using DOM and javascript on the client side. I'm so used to having the backend server do all t

[Google Maps API v3] Re: sthg wrong with the travel mode

2011-04-27 Thread Esa
The first one probably works Walking Driving but that is just good luck because those happen to be string values of constants google.maps.TravelMode.WALKING and google.maps.TravelMode.DRIVING Put those constants in an array and let the select element choose from

[Google Maps API v3] Re: jQuery does not works in Infowindow

2011-04-27 Thread Keith Brown
That's kinda vague. I don't really know what you are trying to do. Post a link to your test map with your failed attempt. On Apr 26, 1:23 pm, thebit wrote: > Hello, > I have a last question: > I have the following addListener code > > google.maps.event.addListener(this.infoWindow, '

[Google Maps API v3] Re: Shapefile Integration

2011-04-27 Thread Bob Torzynski
I tried shpescape.com but it didn't seem to work too well for me. A better bet IMHO is available at http://fwtools.maptools.org/ - which provides ogr2ogr.exe (look in the FWTools package). This lets you do the transformation on your own computer. I've transformed a number of Census 2010 polygons (e

Re: [Google Maps API v3] Re: loading google map without onload initialize() method

2011-04-27 Thread Par@$har Ranade
i tried it directly calling that method bot still its not getting called .. On Wed, Apr 27, 2011 at 1:55 PM, Rossko wrote: > > its because initialize() method in boddy onload is not getting called... > > So, make some other way to call initialize()? It's only a javascript > function. > > -- > Y

[Google Maps API v3] Re: Import/Export GPX and KML (possibly also XML)

2011-04-27 Thread Rossko
> I'm looking for the code to import and export between GPX and KML What environmennt will you be doing that in? Have you looked at any of these? http://www.google.com/search?q=convert+gpx+to+kml > possibly also XML as we're currently working with XML instead of KML. KML is just a dialect of XML

[Google Maps API v3] Re: loading google map without onload initialize() method

2011-04-27 Thread Rossko
> its because initialize() method in boddy onload is not getting called... So, make some other way to call initialize()? It's only a javascript function. -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, se

[Google Maps API v3] Re: Add markers from database to array

2011-04-27 Thread Staffan Nilsson
You know what, I added this function instead: function delete() { while(gmarkers[0]){ gmarkers.pop().setMap(null); } } And I figured out where to put the var. Thank you! -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3"

[Google Maps API v3] Re: Add markers from database to array

2011-04-27 Thread Staffan Nilsson
I think addMaker() allready returns the markers but please look at my code: function addMarker(lat, lng, info) { var pt = new google.maps.LatLng(lat, lng); bounds.extend(pt); var marker = new google.maps.Marker({ position: pt, icon: icon, map: map }); var popup = new google.maps.InfoWindo

[Google Maps API v3] loading google map without onload initialize() method

2011-04-27 Thread Par@$har Ranade
hi , i am integrating google maps in my rails application. i am able to load google map on new page but if i try to render map into partial view its not showing anything .. its because initialize() method in boddy onload is not getting called... is there anyway where i can skip this onload eve

[Google Maps API v3] Re: Add markers from database to array

2011-04-27 Thread geocode...@gmail.com
On Apr 27, 12:10 am, Staffan Nilsson wrote: > I''m adding markers from my database to Google Maps using this code: > >  function laggtill() { > >    $query = mysql_query("SELECT * FROM locations"); >  while ($row = mysql_fetch_array($query)){ >  $name=$row['name']; >  $lat=$row['latitude']; >  $lo

[Google Maps API v3] Add markers from database to array

2011-04-27 Thread Staffan Nilsson
I''m adding markers from my database to Google Maps using this code: function laggtill() { center = bounds.getCenter(); map.fitBounds(bounds); } And now I would like to add these markers into an array so that I can hide/show them. How do I do this? -- You received this message beca