this.architectWidget.setLocation(...)
whoops
Seems like I am still kind of stuck.
I am using the sample '09_ObtainPoiData_2_FromLocalResource' and have modified the myjsondata.js so it displays a marker exactly at my location as this:
The objects still spawn multiple times and move with me. I expected them to stay at the given location.
Am I missing something?
Any help is much appreciated!
Hi,
A reason for moving POIs can be due to the compass values that are fed to the SDK. If these are inaccurate or change the POIs move with it. Please make sure to test also outside and not near metal to see if this improves the behavior.
Greetings
Nicola
Hi Nicola,
that did not exactly help. Just to be clear, the POIs are not moving left to right, but with me while I am moving (far off metal).
Furthermore the message "Trying to find out where you are" keeps showing up, though the third party plugin doesn't seem to have any problems locating the device.
Hi,
The message 'Trying to find out where you are' indicates that you don't have a GPS fix yet. As long as this message is shown, we can't distinguish where you are and can't display the POIs. If the messages comes and goes, this indicates that the signal is not stable.
For the compass issue. Can you please try with the device and a compass app to see how the compass is behaving in the location you're testing. If the values move there as well this is another indication that the compass values are not as accurate as needed.
Thx and greetings
Nicola
The message 'Trying to find out...' is shown constantly, while other apps with GPS work fine.
Same for the compass, other apps don't seem to have a problem.
Can I provide you with some other information that might help finding the error?
I think I have misunderstood the Location Provider section profoundly.
I thought I'd only have to pass the gps data into
this.architectureWidget.setLocation(),
which I did with help of the flutter plugin 'location'.
Is it correct that I have to implement this Location Strategy somewhere in my flutter app?
Thanks!
Hi,
So this message is shown in the unchanged SDK sample app? Or did you change something? If you changed something, please also have a look at the unchanged sample app.
Do you get a GPS position on this device if you try a GPS status app?
Thx and greetings
Nicola
Hi Hendrik,
You can find details on Flutter Location handling here:
https://pub.dev/packages/background_location_updates
I hope this helps. Greetings
Nicola
When you say SDK sample app, do you mean e. g. the sample '09_ObtainPoiData_2_FromLocalResource'? Yes, that is unchanged.
If you mean the actual flutter code, here is it:
That does not seem suitable as I would have to use a deprecated Flutter SDK:
Do you see this being updated in the near future?
Do you have any possible alternatives in mind?
Hi Hendrik,
Thx for your feedback and the accuracy. It sounds to me that you solved the problem with the plugin version. For the scaling: did you go just some meters or further. The scaling would only show for POIs that are further away.
Thx and greetings
Nicola
Hendrik Lakaemper
I am trying to adjust one of the provided samples so it uses the device's gps location. To achieve that, I have implemented a third party plugin, which is providing the necessary arguments. Yet I do not know how to exactly call the setLocation-method from within the flutter app.
I have not found a thread tackling that problem, if you have one in mind I am happy to have a look since I am sure that I am not the first to have an issue with this.
Thanks in advance!