Thursday, April 11, 2013

Re: [Google Maps API v2] How to migrate this code from Google API V2 to V3

It is explained in the source code of this link.





On Thu, Apr 11, 2013 at 11:40 AM, Developer <tak2k2@gmail.com> wrote:
Thank you very much! It worked!

El miércoles, 10 de abril de 2013 22:18:44 UTC+2, barryhunter escribió:
See the documentation for the geocoder


the 'codeAddress' function on that page also almost the same as your function. 


(dont see a getPosition function in relation to the geocoder) 



On Wed, Apr 10, 2013 at 5:05 PM, Developer <tak...@gmail.com> wrote:
Hello,
I've migrated almost everything to V3 but I don't know how to migrate this code. I know I have to replace getLatLng for getPosition but I have problems replacing function(point) to the apropiated code.

Can someone help me, please?

function showAddress(address) { if (geocoder) { geocoder.getLatLng( address, function(point) { if (!point) { //alert(address + " not found"); } else { var zoom = 15; map.setCenter(point, zoom); var marker = new GMarker(point); map.addOverlay(marker); marker.openInfoWindowHtml("Some text"); } } ); } }

Thank you in advance.

--
You received this message because you are subscribed to the Google Groups "Google Maps API V2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-maps-a...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

--
You received this message because you are subscribed to the Google Groups "Google Maps API V2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-maps-api+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

--
You received this message because you are subscribed to the Google Groups "Google Maps API V2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-maps-api+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate