Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Map API, need suggestions for how to execute ideas
-
@RocketBlaster05 said:
the face is not even in the region shown
Yes, it works so, région of zoom does not include user location. Do you want it includes it?
-
@cvp said:
@RocketBlaster05 GitHub ok for 2 seconds
ah there is an issue with this... I assume there is a time.sleep() somewhere in the code when the update is called, because every couple of seconds it freezes for about 1 second. I do not know how vital or where the time.sleep() is.
Edit: I removed the time.sleep() causing the issue and seemingly nothing is wrong with the code...
-
@RocketBlaster05 said:
removed the time.sleep()
Ok but the time.sleep was needed in the past to let the location start doing its job...
-
@cvp I have run it a couple times to test it and it still looks fairly smooth, I do not see anything wrong with it.
-
@RocketBlaster05 in my code, I'll let it with sleep(0.1) by security
-
@cvp said:
Yes, it works so, région of zoom does not include user location. Do you want it includes it?
I forgot to tell you, sorry, that I have realized that including all the pins on start will cause some issues... I would rather it just center on the face. Sorry for the inconvenience
Also, the trash pin on the face removes the face... Is it meant to do so? Thanks
-
@RocketBlaster05 GitHub updated with "at start zoom on region including all pin's and user location"
-
@RocketBlaster05 said:
I forgot to tell you, sorry, that I have realized that including all the pins on start will cause some issues... I would rather it just center on the face. Sorry for the inconvenience
I had just updated in another way....before reading this post,
Ok, I'll modify but if I center on user location, at which scale? Including what?
Or I zoom like if no pin, like the first run
-
@cvp The zoom should just be within maybe just a couple blocks, nothing too large. I want the user to be able to see a couple of nearby roads like if they were in a neighborhood.
-
@RocketBlaster05 said:
the trash pin on the face removes the face... Is it meant to do so?
This bug will be for tomorrow...
-
@RocketBlaster05 said:
The zoom should just be within maybe just a couple blocks, nothing too large. I want the user to be able to see a couple of nearby roads like if they were in a neighborhood.
GitHub updated
-
@cvp said:
This bug will be for tomorrow...
No worries. I'm sure it's pretty late near you now. I have a couple weeks to make sure everything is nice and smooth, so believe me there's no rush for anything here. I still can't say how much I appreciate what you're doing here... saving me so much time... thank you.
-
@RocketBlaster05 my pleasure
-
-
@RocketBlaster05 I've to add that I don't like the look of the .loc file, I want to change it so it could contain all what we need but in a better way. I hope that I'll find the time to do it.
-
@cvp just a note: since the current location is replaced with a trash, It is causing there to be "too many values to unpack" on line 281. I assume this is due to the nature of the other pins.
I'll check in again tomorrow. Thanks.
Edit: In regards to the message below: Yes in your github script. It occurs after you mark the person's location as trash and then attempt to place a second red pin on the map.
-
-
@cvp to clarify what I said above:
Here is the order that causes the issue:
- Place a red pin
- Mark user location as trash
- Attempt to place another red pin
-
@RocketBlaster05 thanks to identify "how to generate the bug", I'll check it tomorrow in my afternoon, not before, sorry
-
@cvp all good. see you tomorrow.