Export to GitHub

pymaps - issue #2

Add support for Maps JavaScript API V3


Posted on Jul 14, 2010 by Massive Bear

V3 replaced deprecated V2 of the JavaScript API.

Details are available at: http://code.google.com/apis/maps/documentation/javascript/

Comment #1

Posted on Sep 18, 2010 by Massive Bear

Attached patch that adds support for Maps API V3 and dragable cursor.

Comment #2

Posted on Sep 18, 2010 by Massive Bear

The same patch with fixed map center point.

Attachments

Comment #3

Posted on Nov 20, 2010 by Quick Kangaroo

thanks for the API 3 patch, but it doesn't work yet ... the patch is probably uncomplete

Comment #4

Posted on Nov 21, 2010 by Massive Bear

Loic, thank you for trying the patch. Functionality that is included in the patch was working for me at the time. Are you applying it on the revision 13?

Patch is not a full V3 implementation, so yes it is not complete.

Comment #5

Posted on Nov 23, 2010 by Quick Kangaroo

Hello andyhelp,

You're right, your patch is finally working (but with limitation due to partial implementation)

The new method draggableEvtHandler(self), let the marker to be draggable. That's oK. But you probably began some extra functionnality wich is not completed (when marker is dragged, the function $.post() make the error '$ is not defined). Could you explain me what is the purpose of $.post() (ajax ?) ? Please note that google method marker.getLatLng() must probably be replaced by marker.getPosition())

Best regard

Here is some explanations for others users :

  • it's necessary to replace self.pymapjs() by self.pymapjs3() in showhtml method (with argument draggable=True in order to make marker draggable)
  • user icon is not (yet ?) supported

Comment #6

Posted on Nov 23, 2010 by Massive Bear

Could you explain me what is the purpose of $.post() (ajax ?) ? It is to send the feedback back to the server that user has moved the cursor (using POST request).

Comment #7

Posted on Nov 23, 2010 by Massive Bear

Comment deleted

Status: New

Labels:
Type-Defect Priority-Medium