Page 1 of 1

Other Gmaps events

Posted: Mon May 25, 2015 9:20 am
by Xavier

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


Other Gmaps events

Posted: Mon May 25, 2015 11:29 am
by Serhii Kulibaba

Hello Xavier,

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


Other Gmaps events

Posted: Mon May 25, 2015 12:25 pm
by Xavier

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


Other Gmaps events

Posted: Tue May 26, 2015 3:40 pm
by Evgene Karachevtsev

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.