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

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

Alena,

That absolutely does not help.

I commented out my update code. Tested the app. Works fine. (however no update to the db for the new marker -that's bad - but for now... ok).

I attached a listener event (already had one anyway) to moving the marker on 'dragend' . On dragend the map prompts if the user wants to move the marker to the dragend location.

Upon yes - I launch the db update method (by passing a key from the marker). stepping through this event - the google map loses all of it's knowledge of current location upon return from the success event (i put an alert in there and in the pre-) - and post db value mapping events for the rest service).

Have you tried this in a simple app - and found that your results are different? Can you send me the example?

When I dumb my app down to just the basics - I still get - if I have a map showing, and I isse any db update in the background - upon completion of the db update - the map in the UI is no longer positioned where it needs to be - it moves it center - to somewhere in the Indian Ocean.

thanks!
Bruce

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

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

Also - here's a log (a dump from my console) - of what happens in this event:

I have code in the service event to log the start of the event, and code in the event to log the end of the event. I also have code in the function calling the service - to log when it kicks off the update --- you'll see that in my log below.) Again - there are no other UI Events going on - please note that the framework - or some other code - is making map calls while my service is executing .... that's what's causing the issue - and note - my app is not making these calls to the google api...or at least I've not written any code to ask it to...)

moving markerWomen's Tee
id:546e88a3e4b05c4ac3bbdcff _id key is:546e88a3e4b05c4ac3bbdcff GolFHolesGeoWork.js:545 event and inspection of the db shows the update completed successfully==========================

more google API failures immediately afterward
============================================================

completed updating marker in page_holedetail with id:546e88a3e4b05c4ac3bbdcff VM1004:1179
Failed to load resource: the server responded with a status of 404 (Not Found) https://khms1.googleapis.com/kh?v=162...
Failed to load resource: the server responded with a status of 404 (Not Found) https://khms1.googleapis.com/kh?v=162...
Failed to load resource: the server responded with a status of 404 (Not Found) https://khms0.googleapis.com/kh?v=162...
Failed to load resource: the server responded with a status of 404 (Not Found) https://khms0.googleapis.com/kh?v=162...
Failed to load resource: the server responded with a status of 404 (Not Found) https://khms1.googleapis.com/kh?v=162...
Failed to load resource: the server responded with a status of 404 (Not Found) https://khms1.googleapis.com/kh?v=162...
Failed to load resource: the server responded with a status of 404 (Not Found) https://khms0.googleapis.com/kh?v=162...
Failed to load resource: the server responded with a status of 404 (Not Found) https://khms0.googleapis.com/kh?v=162...
Failed to load resource: the server responded with a status of 404 (Not Found) https://khms1.googleapis.com/kh?v=162...
Failed to load resource: the server responded with a status of 404 (Not Found) https://khms1.googleapis.com/kh?v=162...
Failed to load resource: the server responded with a status of 404 (Not Found) https://khms0.googleapis.com/kh?v=162...
Failed to load resource: the server responded with a status of 404 (Not Found) https://khms0.googleapis.com/kh?v=162...
Failed to load resource: the server responded with a status of 404 (Not Found) https://khms1.googleapis.com/kh?v=162...
Failed to load resource: the server responded with a status of 404 (Not Found) https://khms1.googleapis.com/kh?v=162...
Failed to load resource: the server responded with a status of 404 (Not Found) https://khms0.googleapis.com/kh?v=162...
Failed to load resource: the server responded with a status of 404 (Not Found) https://khms0.googleapis.com/kh?v=162...
Failed to load resource: the server responded with a status of 404 (Not Found) https://khms1.googleapis.com/kh?v=162...
Failed to load resource: the server responded with a status of 404 (Not Found) https://khms1.googleapis.com/kh?v=162...
Failed to load resource: the server responded with a status of 404 (Not Found) https://khms0.googleapis.com/kh?v=162...
Failed to load resource: the server responded with a status of 404 (Not Found) https://khms0.googleapis.com/kh?v=162...
Failed to load resource: the server responded with a status of 404 (Not Found) https://khms1.googleapis.com/kh?v=162...
Failed to load resource: the server responded with a status of 404 (Not Found) https://khms1.googleapis.com/kh?v=162...
Failed to load resource: the server responded with a status of 404 (Not Found) https://khms0.googleapis.com/kh?v=162...
Failed to load resource: the server responded with a status of 404 (Not Found) https://khms0.googleapis.com/kh?v=162...
Failed to load resource: the server responded with a status of 404 (Not Found) https://khms1.googleapis.com/kh?v=162...
Failed to load resource: the server responded with a status of 404 (Not Found) https://khms1.googleapis.com/kh?v=162...
Failed to load resource: the server responded with a status of 404 (Not Found) https://khms0.googleapis.com/kh?v=162...
Failed to load resource: the server responded with a status of 404 (Not Found) https://khms0.googleapis.com/kh?v=162...
Failed to load resource: the server responded with a status of 404 (Not Found) https://khms1.googleapis.com/kh?v=162...
Failed to load resource: the server responded with a status of 404 (Not Found) https://khms1.googleapis.com/kh?v=162...
Failed to load resource: the server responded with a status of 404 (Not Found) https://khms0.googleapis.com/kh?v=162...
Failed to load resource: the server responded with a status of 404 (Not Found) https://khms0.googleapis.com/kh?v=162...
Failed to load resource: the server responded with a status of 404 (Not Found) https://khms1.googleapis.com/kh?v=162...
Failed to load resource: the server responded with a status of 404 (Not Found) https://khms1.googleapis.com/kh?v=162...
Failed to load resource: the server responded with a status of 404 (Not Found) https://khms0.googleapis.com/kh?v=162...
Failed to load resource: the server responded with a status of 404 (Not Found) https://khms0.googleapis.com/kh?v=162...
Failed to load resource: the server responded with a status of 404 (Not Found) https://khms1.googleapis.com/kh?v=162...
Failed to load resource: the server responded with a status of 404 (Not Found) https://khms1.googleapis.com/kh?v=162...
Failed to load resource: the server responded with a status of 404 (Not Found) https://khms0.googleapis.com/kh?v=162...
Failed to load resource: the server responded with a status of 404 (Not Found) https://khms0.googleapis.com/kh?v=162...
Failed to load resource: the server responded with a status of 404 (Not Found) https://khms1.googleapis.com/kh?v=162...
Failed to load resource: the server responded with a status of 404 (Not Found) https://khms1.googleapis.com/kh?v=162...
Failed to load resource: the server responded with a status of 404 (Not Found) https://khms0.googleapis.com/kh?v=162...
Failed to load resource: the server responded with a status of 404 (Not Found) https://khms0.googleapis.com/kh?v=162...
Failed to load resource: the server responded with a status of 404 (Not Found) https://khms1.googleapis.com/kh?v=162...
Failed to load resource: the server responded with a status of 404 (Not Found) https://khms1.googleapis.com/kh?v=162...
Failed to load resource: the server responded with a status of 404 (Not Found) https://khms0.googleapis.com/kh?v=162...
Failed to load resource: the server responded with a status of 404 (Not Found) https://khms0.googleapis.com/kh?v=162...
Failed to load resource: the server responded with a status of 404 (Not Found) https://khms1.googleapis.com/kh?v=162...
Failed to load resource: the server responded with a status of 404 (Not Found) https://khms1.googleapis.com/kh?v=162...
Failed to load resource: the server responded with a status of 404 (Not Found) https://khms0.googleapis.com/kh?v=162...
Failed to load resource: the server responded with a status of 404 (Not Found) https://khms0.googleapis.com/kh?v=162...
Failed to load resource: the server responded with a status of 404 (Not Found) https://khms1.googleapis.com/kh?v=162...
Failed to load resource: the server responded with a status of 404 (Not Found) https://khms1.googleapis.com/kh?v=162...
Failed to load resource: the server responded with a status of 404 (Not Found) https://khms0.googleapis.com/kh?v=162...
Failed to load resource: the server responded with a status of 404 (Not Found) https://khms0.googleapis.com/kh?v=162...

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

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

Here's the story in pictures:
UI Before:

Image

UI After the Drag event with user prompt (listener event pops up at dragend)
Image

Service gets called - to update the db with new location (no other activity):screen looks like this:
Image

After I manually press zoom out on the map about 17 times .... here's what the map looks like (note my markers are intact .... :-) and so is the zoom location...)

Image

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

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

also - of note - my map markers I used were custom markers from an add-on-plugin - I removed those (to ensure this was not causing my issue) and moved back to icons that are a part of the google api - and still - the issue persists.

Help ??? i'm honestly clueless - and now way behind on my deliverables.....

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

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

Hi Bruce,

Please give us your app public link and describe steps to reproduce this problem.

We need to take a look more close..

Regards.

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

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

Consider this as the likely issue, after doing a bit of research ...

  1. The framework code is trying to refresh the map after the service invocation ... Under the belief that all UI's need refreshing after a data service call. That's not always correct and you ( I ) ought to be able to set a property of a method call to keep this from happening.

  2. The map I've built, uses an Appery object for its map. As such it believes I've used an appery marker ( which I have not !) in the designer UI. As such, when the refresh occurs ( under the rules of #1 above ) it tries to center the map around the non-existent marker. Since the non existent marker has a geo-point of lat:0 and LNG:0 it tries to center the map, in its existing view and existing zoom to point 0,0 on the map... Which is the Indian Ocean as I've described ..... So..... That's a challenge !!!

    What do,you think? That's my issue correct ? The real question then is how do I work around this issue ?

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

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

Yuri,

Just got this note. Still want my public link and steps to repro I assume ? ( didn't see your note when I logged my post as it wasn't visible here at that time )

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

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

Link to test:

http://appery.io/app/mobile-frame?src...

Steps to repro:

  1. Register

  2. Login

  3. Change default search to be by name

  4. Enter 'Encanterra' as the search by name

  5. Click on Encanterra Country Club

  6. Click 'course setup'

  7. Click club location, then click save, then click 'course'

  8. In the llist - click on 'Encanterra Country Club'.

  9. Click the flag that says 'course'
    9.this UI then appears:
    Image

    take the new movie marker - and move it only marginally - respond Ok to the the Confirmation dialog that pops up - and you'll observe the challenge - and the symptoms I am describing.

    let me know if you have any questions - I'll be watching my mail until very late Arizona, USA Time...

    thanks for the help!!!

    best,

    Bruce

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

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

Dear Bruce,

I've checked your app, and need to say unfortunatly that's bug.

I've posted this but to our developers team. And we will update you have as soon as it will be fixed.

Here is temporal workaround i've found for you:

Add page load event handler with following js code:

pre

//Where "multiGoogleMap" is your gmap component name.
jQuery('[name="multiGoogleMap"]').removeAttr("dsid");

/pre

Regards.

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

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

Yurii ,

Well thank you very much for the time on this issue. It's good news that I wasn't losing my mind.

If the workaround is that simple ... Great ! I'll try it out in the morning ... 7 or so hours from now.

Is the any downside to using that workaround ?? What's the usual turnaround time for a bug like this ? Weeks? Months ? Days ?

Thanks again for the help ! Very appreciated ...

Bruce

Return to “Issues”