Page 3 of 3

Build map , call service to update data , return - map is 'lost'....

Posted: Fri Nov 21, 2014 7:29 am
by Evgene Karachevtsev

Hello Bruce,

It's hard to say about any downside of this approach, because it was just invented, but for the first sight it's ok. Please contact us if you'll find any disadvantages in this approach.
It also hard to say about approximate time of fixing, our developers will try to manage to fix this bug to the new release, in this case it will be fixed in about a week or two, otherwise it will be longer.


Build map , call service to update data , return - map is 'lost'....

Posted: Fri Nov 21, 2014 2:05 pm
by Bruce Stuart

Evegene, thanks much. Did you guys have a chance to look at the other issue I've logged that seems like a bug to see if it is related ? Similarly ... It occurs when a rest service is fired ....

Thanks


Build map , call service to update data , return - map is 'lost'....

Posted: Fri Nov 21, 2014 3:42 pm
by Ihor Didevych

Hi Bruce,

Could you please post it one more time ?


Build map , call service to update data , return - map is 'lost'....

Posted: Fri Nov 21, 2014 3:50 pm
by Bruce Stuart

Ihor,

Thanks for the reply. Here is the link to the select menu problem - where, after a service call - the select menu loses what's selected ..... I've traced it down in my code - and - it has the same symptoms..... value in select menu intact before and during mapping in the rest-service - and then upon return - when the ui controls appear to be forced to refresh - the value is lost - and - the selected item returns to the first item in the select.

Here is the thread....

https://getsatisfaction.com/apperyio/...

Looks like Yurii responded on it yesterday and I didn't catch it --- will do that now as well...


Build map , call service to update data , return - map is 'lost'....

Posted: Fri Nov 21, 2014 6:17 pm
by Bruce Stuart

Yurii and Evgene,

The fix to the map problem works wonderful. Thanks so much!!!

(no aftereffects either...)

Best,

Bruce


Build map , call service to update data , return - map is 'lost'....

Posted: Thu Jan 29, 2015 1:44 am
by Bruce Stuart

did this defect get cleared in a release ? and I can remove my workaround?


Build map , call service to update data , return - map is 'lost'....

Posted: Thu Jan 29, 2015 10:41 am
by Evgene Karachevtsev

Hello Bruce,

Our development team investigated this issue and here is their resolution:

It seems not a bug, rather Appery.io feature. Here are two ways to avoid this behavior:
1) Use recommended Google Map API approach to get map instance:
prevar gMap = new google.maps.Map(document.getElementById('startScreen_googlemap_2'));
gMap.setCenter(new google.maps.LatLng(48.015883, 37.80285));
gMap.setZoom(5);/pre
2) If the new instance of Google map wasn't created, then "latitude", "longitude" and "address" properties of ApperyMapComponent should be overridden. Please, see this snippet of code:
prevar map = Appery("googlemap_2");
map.options.latitude = 48.015883;
map.options.longitude = 37.80285;
map.options.address = '';
map.options.mapElement.gmap(
{ 'center': new google.maps.LatLng(48.015883, 37.80285), 'zoom': 5}
);/pre
This code should be executed on "Set center" button click.