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 could you download the GitHub version and retry.
You could even have the trash button for the face pin and if you tap it, add a trash pin normally stored in the file.
Please test and tell me what -
@cvp I tested the code and it works great. Only suggestion I have is to ask if it is possible to make the trash icon drop a new pin instead of changing the image of the old pin.
So when they press the trash icon, it drops a new pin with the trash symbol. I want the emoji pin to still exist. Other than that, everything works great.
-
@RocketBlaster05 said:
So when they press the trash icon, it drops a new pin with the trash symbol. I want the emoji pin to still exist. Other than that, everything works great.
Do you ask that only for the Current location face pin or for all green pin's also?
Édit: or I didn't understand, as usual.
-
@cvp
Only the current location pin -
@RocketBlaster05 Ok, I'll do it, but that will say that two pin's will have same location and that one may hide the other.
You will have something like this if the transparent trash is in front
But if the non transparent face is in front, you would not see the trash
And perhaps you know that current location is not always exactly the same even if you don't move.
That will say that if you zoom at maximum, you would see the trash and the face not exactly at same x,yThus, please confirm.
-
@cvp this will be fine. I just need the location to be marked. If it’s off by .00000001 it is not an issue. The goal is that people will be able to walk around and get close to the trash icon.
Also, for the idea above to work I would need the map to update the user’s position constantly . Is this possible? Thanks -
@RocketBlaster05 said:
I would need the map to update the user’s position constantly
One more time, I don't understand 🤔
Édit: or do you want that when you keep the script running and the map displayed, if you move with your iDevice in your hands, the face pin also moves?
-
@RocketBlaster05 GitHub version updated: tap trash for face pin will now add a trsh pin while keeping also the face pin.
-
@RocketBlaster05 Github updated to modify face pin location every 10 seconds (hoping it will work 😂)
Test it by moving your iDevice (in your room/garden/street in function of your house size) with script running and map displayed, with maximum zoom
nb: I am surprised myself of my code
-
@cvp it seems to be tracking me pretty well. I do not know the limits of the code but is it just a simple fix to make it about every 2 seconds? to more accurately cover somebody walking versus driving? Thanks
-
@RocketBlaster05 GitHub ok for 2 seconds
-
@cvp and while testing it at school several pins popped up. I am back home now and the map was zooming in on the cluster of pins rather than the face (the face is not even in the region shown). Any idea what might be causing this? Thanks
-
@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