Manikanths / jquery-ui-map

Automatically exported from code.google.com/p/jquery-ui-map
0 stars 0 forks source link

Callback Doesnt Work #26

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Use the following code
2. // map
        $('#map_canvas').gmap({ 
            'center': new google.maps.LatLng(17.3926,78.428435),
            'zoom' : 15,
            'mapTypeId': google.maps.MapTypeId.ROADMAP,
            'disableDefaultUI': true,
            'callback' : function(){

                    // marker
                    $('#map_canvas').gmap('addMarker', { 
                        'position': new google.maps.LatLng(17.3926,78.428435)
                    });

            }
        });
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
2.0.2
Windows XP

Please provide any additional information below.

Callback doesnt work

Original issue reported on code.google.com by atif...@gmail.com on 15 Nov 2011 at 1:03

GoogleCodeExporter commented 8 years ago
It works. See the basic example html in the download (just change the jquery ui 
map url since it's pointing to the trunk (which is version 3.0 alpha) to the js 
file in the download).

Original comment by johansalllarsson on 22 Dec 2011 at 11:16

GoogleCodeExporter commented 8 years ago
the code which I wrote above.. is that incorrect ?

Original comment by atif...@gmail.com on 23 Dec 2011 at 7:00

GoogleCodeExporter commented 8 years ago
No it's correct. I tried the your code with the plugin v 2.0.2 and the callback 
executed. So unless you show me the entire code (js+html) I can only base this 
call on what I tested.

Original comment by johansalllarsson on 23 Dec 2011 at 4:52