[Google Maps API v3] Re: onclick zoom level
Look at this page: http://gmaps-samples-v3.googlecode.com/svn/trunk/geocoder/v3-geocoder-tool.html Enter a place to search for and look at the result returned from Google. I'm pretty sure that not all results contain a viewport bounds (but could be wrong!) so you'd have to test for it's presence and if present you can use that with the Map fitBounds() method to better pan and zoom your map. See the documentation: http://code.google.com/apis/maps/documentation/javascript/services.html#GeocodingResults Martin. On Aug 27, 5:19 pm, Jesus jesus.delaga...@gmail.com wrote: Hello, Is it possible to define the zoom level of a map on an javascript onclick link? What I'm trying to do with the zoom its to give individual zoom level per place as, in some cases, smaller cities needs more zoom than big cities. I hope this make this more clear. Different zoom level per onclick link and each onclick link will open a new map. Here's what I currently have: var buceriasHTML = 'img src=images/rn-bucerias.jpg height=80 width=80 style=float: left; margin-right: 20px / strongBucerias,br /Nayarit/strong'; lia onclick=findAddress('Bucerias, Nayarit, MX',buceriasHTML) style=color: #009; text-decoration: underline; cursorointerBucerias, Nayarit/a/li function findAddress(address, HTML) { if (HTML === undefined) { HTML = strong + address + /strong; } markerHTML = HTML; var geocoder = new google.maps.Geocoder(); geocoder.geocode( { 'address': address}, function(results, status) { if (status == google.maps.GeocoderStatus.OK) { map.setCenter(results[0].geometry.location); addressSet = 1; startAddress = address; searchCenter = results[0].geometry.location; createMarker(searchCenter, 0, markerHTML, pin); var trafficLayer = new google.maps.TrafficLayer(); trafficLayer.setMap(map); getCategories(0); if (mapExtra === true) { mapPost(); } } else { alert(Geocode was not successful for the following reason: + status); } }); } So, each onclick link will open a new map and I'm looking to insert a proper default zoom level per link/map. Any ideas how can I do this? I was thinking on something like this: lia onclick=findAddress('Bucerias, Nayarit, MX',INSERTZOOMLEVELHERE,buceriasHTML) style=color: #009; text- decoration: underline; cursorointerBucerias, Nayarit/a/li Here's a link to my page with the map:http://www.mundoregio.com/puntosdeinteres/mapa-rivieranayarit.html You will see below the map on the right side a 5 links and I want to include a zoom value to those links as this are very small towns so the map will really work better if I can give a street zoom value to each of those links. But I'll like to give a specific value per map so I can adjust it as need it. Thanks in advance for your help! -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
Re: [Google Maps API v3] Grey map when adding marker in Chrome beta
Hi Adrian, Can you specify which version of Chrome you mean (click Spanner - About Google Chrome) as well as which operating system? Regards, James On Sun, Aug 28, 2011 at 5:42 AM, Adrian CDL adriancodedel...@gmail.com wrote: http://gmaps-samples-v3.googlecode.com/svn/trunk/drivingdirections/directions-optimized.html With the latest Chrome, click on the map to create a marker. The top 80% of the background will go grey -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en. -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
[Google Maps API v3] Re: onclick zoom level
On Aug 28, 12:44 pm, Martin™ warwo...@gmail.com wrote: I'm pretty sure that not all results contain a viewport bounds (but could be wrong!) so you'd have to test for it's presence and if present you can use that with the Map fitBounds() method to better pan and zoom your map. geometry.viewport and geometry.bounds are different things. geometry.viewport is always returned and recommended to be used with fitBounds(). -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
Re: [Google Maps API v3] Re: Street View in separate window
Or in an InfoWindow: http://blog.mridey.com/2010/11/maps-api-javascript-v3-multiple-markers.html On Sun, Aug 28, 2011 at 10:51 AM, geocode...@gmail.com geocode...@gmail.com wrote: On Aug 27, 11:53 am, maplab ibc...@aol.com wrote: Is there an EXAMPLE of opening Street View in a separate window. I would like to have the Street View and Map up at the same time. You mean like this (from the documentation): http://code.google.com/apis/maps/documentation/javascript/examples/streetview-simple.html -- Larry Thanks, David Coggeshall -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en. -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
[Google Maps API v3] Re: Templated code for geocoding current location, destination and showing directions
I was wondering if anyone knew of an example where I could copy / paste the code? not offhand. here's an example that uses directions from the user's location to a hardcoded destination: http://xelawho.com/map/crabhouse.htm with a little bit of copying and pasting, you could take this example: http://code.google.com/apis/maps/documentation/javascript/examples/geocoding-simple.html and use it to find the destination entered (instead of the hardcoded bizAdd), then call the directions function once that is done. -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
[Google Maps API v3] Re: Showing change over time
Would such a scenario be possible with the API as it is today or will I need to wait a few more versions before all the functionality is there? the slider may be tricky, but it's certainly possible in javascript. As a start, I'd suggest using radio buttons that match your time periods and adding and removing overlays according to which button is clicked. Once you get that working adding a slider shouldn't be too much work (google for javascript sliders - there are a million of them out there). I also imagine you could animate the display, using setInterval, but it all depends on how you want the interface to be. -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
[Google Maps API v3] Re: Creating a Project map with pin makers around the world for company projects
Hi Michael, The map linked to here: http://gis.zgroks.com/rw2.html could be used for the purpose you describe. It allows anyone to add markers anywhere ~ and to delete markers as well. Markers can also be imported from a pre-existing database (i.e., you don't have to add them manually). It's based on the Google examples on how to link up to an SQL database using PHP. Doesn't have the filtering that's including the example you cite, but that could be added. Feel free to check it out - to add markers all you need to do is right click on the map. ~ Bob On Aug 24, 5:27 am, Michael Halpin mjhalpi...@gmail.com wrote: Hello all, I'm starting to look into using google maps to create a project map. Using google maps i want to be able to create pin makers around the world, and what the viewer to be able to click the pin and for it to display the information on the project. i will be much grateful for any help on this. please find link below of a perfect example of what I'm trying to create. http://www.rubb.com/projects/ thank you Michael -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
[Google Maps API v3] what is the spatial reference system Google map's
hello all, i am new user of Google maps and i have 2 question what is the spatial reference system Google map's and i can use other define for me thanks -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
Re: [Google Maps API v3] Re: Street View in separate window
I was looking for this also thanks... but in my case I would upload an image and then ounce image uploaded would resize and rotate using settings (50% size 33 degrees e.g.) On Sun, Aug 28, 2011 at 4:06 PM, Marc Ridey mri...@google.com wrote: Or in an InfoWindow: http://blog.mridey.com/2010/11/maps-api-javascript-v3-multiple-markers.html On Sun, Aug 28, 2011 at 10:51 AM, geocode...@gmail.com geocode...@gmail.com wrote: On Aug 27, 11:53 am, maplab ibc...@aol.com wrote: Is there an EXAMPLE of opening Street View in a separate window. I would like to have the Street View and Map up at the same time. You mean like this (from the documentation): http://code.google.com/apis/maps/documentation/javascript/examples/streetview-simple.html -- Larry Thanks, David Coggeshall -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en. -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en. -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
[Google Maps API v3] Multiple Route returned by DirectionResult object using the Directions API
Hi, I am a new be into this. What I am trying to do is show the various direction options returned by the DirectionResult object, using custom HTML. I want to show the various routes available between source and destination. Till now I get *at the most* 3 routes in the DirectionRoutes array within the DirectionResult. Is this the maximum number for any given source and destination, or am I doing something wrong? Also whenever a waypoint is added between the route, the number of routes returned is always 1, i.e. no routes options are returned? Is this the way the API works, or have I tried very limited search request with the waypoints? Thanks, Subodh -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To view this discussion on the web visit https://groups.google.com/d/msg/google-maps-js-api-v3/-/p0ow_RAwsNEJ. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
[Google Maps API v3] infowindow outside of the map
hello, use google maps api v3,i have a question that is if i want to the infowindow outside of the map and display all not hidder part when infowindow width is large than the map container width ? how can i do? just like this site http://www.openrice.com/english/restaurant/sr2.htm?maptype=1shopid=90 i know this site is create a div in body itself and cal the position but i just want use infowindow? help me! -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.