ColdSauce / pymaps

Automatically exported from code.google.com/p/pymaps
0 stars 0 forks source link

Add support for Maps JavaScript API V3 #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
V3 replaced deprecated V2 of the JavaScript API.

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

Original issue reported on code.google.com by andyh...@gmail.com on 14 Jul 2010 at 9:01

GoogleCodeExporter commented 9 years ago
Attached patch that adds support for Maps API V3 and dragable cursor.

Original comment by andyh...@gmail.com on 18 Sep 2010 at 7:30

Attachments:

GoogleCodeExporter commented 9 years ago
The same patch with fixed map center point.

Original comment by andyh...@gmail.com on 18 Sep 2010 at 9:25

Attachments:

GoogleCodeExporter commented 9 years ago
thanks for the API 3 patch, but it doesn't work yet ... the patch is probably 
uncomplete

Original comment by loic.duf...@hotmail.fr on 20 Nov 2010 at 7:09

GoogleCodeExporter commented 9 years ago
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.

Original comment by andyh...@gmail.com on 21 Nov 2010 at 8:27

GoogleCodeExporter commented 9 years ago
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

Original comment by loic.duf...@hotmail.fr on 23 Nov 2010 at 10:43

GoogleCodeExporter commented 9 years ago
>>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).

Original comment by andyh...@gmail.com on 23 Nov 2010 at 8:59