PDA

View Full Version : button in google maps infowindow



rickert
9 Apr 2012, 11:51 PM
Hello i want a user to be able to click on a button inside a google maps infowindow and after the user pressed the button i want it to go to a detailview how do i do this?
currently this is my code in the view with the map:


infoWindow.content = '<div id=mapDetailviewText><div id=mapname onclick="'+ "var view = Ext.create('senchatest.view.Test'); Ext.Viewport.add(view); "
+'">'+ tank.get('naam')+ '</div>'


but this doesn't work how do i create a new view and make it the current view?

scottmartin
11 Apr 2012, 8:31 PM
I believe you will have to look at the Google Maps API for this.

http://onwebdev.blogspot.com/2011/02/css-stylizing-google-maps-infowindow.html
http://stackoverflow.com/questions/2176467/how-to-add-a-combobox-and-a-button-to-the-infowindow-on-google-map
http://groups.google.com/group/google-maps-js-api-v3/browse_thread/thread/d49652f3d4d334ed

Regards,
Scott.

khangwei
24 Apr 2012, 6:47 PM
hey Rickert, did you manage to solve this? I am looking at a similar problem