Xavier
Posts: 0
Joined: Wed Oct 29, 2014 8:09 pm

Other Gmaps events

Dear all,

I would like to add another kind of event for Gmaps.
The one interesting me is 'bounds_changed'.
cf. https://developers.google.com/maps/do...

I can't figure out how to code this new event in my project.

Thanks in advance for your advices.

Best regards
Xavier

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Other Gmaps events

Hello Xavier,

You can add any event handler via JS:
(google.maps.event.addListener() function).
Example you can find in the link above.

Xavier
Posts: 0
Joined: Wed Oct 29, 2014 8:09 pm

Other Gmaps events

Hi Sergiy,

I tried to implement your proposal:

I declared a javascript function (CREATE NEW - JavaScript):
function Change_Boundary_Detection() {
omap = Appery("googlemap_57");
google.maps.event.addListener(omap, 'bounds_changed', function() {
Apperyio('test_label').text('TEST');
});
}

When the StartScreen lounch, I execute the following function:
Change_Boundary_Detection();

It does not work... (I put a label named 'test_label' and I change its text value to see if it is working or not.

Do you see any issue with my code ?

Thanks a lot
Best regards
Xavier

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Other Gmaps events

Hello Xavier,

We are very sorry, but unfortunately custom js code is outside the scope of standard Appery.io platform support. You may consider purchasing Advisory Pack to get more in-depth help on this question. Here is more information about it: http://appery.io/services/#Advisory_Pack.

Return to “Issues”