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

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

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.

Bruce Stuart
Posts: 0
Joined: Fri Oct 24, 2014 4:42 am

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

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

Ihor Didevych
Posts: 0
Joined: Wed Nov 19, 2014 7:55 pm

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

Hi Bruce,

Could you please post it one more time ?

Bruce Stuart
Posts: 0
Joined: Fri Oct 24, 2014 4:42 am

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

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...

Bruce Stuart
Posts: 0
Joined: Fri Oct 24, 2014 4:42 am

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

Yurii and Evgene,

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

(no aftereffects either...)

Best,

Bruce

Bruce Stuart
Posts: 0
Joined: Fri Oct 24, 2014 4:42 am

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

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

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

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

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.

Return to “Issues”