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:
I would like that process to be applied to the user's location through the button I mentioned earlier. However, to make it more simple maybe, could it just drop another pin on the person's location?
For example: The person's emoji is moving across the map, and then they mark their location with the unique trash pin. Their emoji will not get replaced by the trash pin but will just give it a location to be dropped on. Please tell me if I need to explain anything better.Not yet understood, sorry
-
@RocketBlaster05 actually, my script foresees 4 types of pin:
- dropped pin red, becomes green at next dropped, no button accessible when you tap the pin
- user point Green, trash button accessible when you tap the pin
- trash pin, no button accessible when you tap the pin
- person emoji pin for current location, no button accessible when you tap the pin
Do you want to change something?
-
@cvp Could you make it so that the trash button is accessible when you tap the emoji pin? But instead of changing the emoji to trash, could it drop a trash pin onto the map? The location of the trash pin would need to be saved. Thanks!
-
@cvp said:
This is done, GitHub updated, try it: set a pin as trash, rerun script and see
Maybe I missed something, but the trash pins do not seem to be saved when I rerun the map...
-
@RocketBlaster05 said:
Could you make it so that the trash button is accessible when you tap the emoji pin? But instead of changing the emoji to trash, could it drop a trash pin onto the map? The location of the trash pin would need to be saved. Thanks!
I'll do it but no time immediately, in some hours.
A little correction: the emoji pin is not saved in the file actually, it is set at each run in function of real location.
That will say that if you close the program, move in an another location and restart the script, you will not see anymore your previous location. -
@RocketBlaster05 said:
Maybe I missed something, but the trash pins do not seem to be saved when I rerun the map...
Did your re-download the script? It has been updated some minutes ago.
-
@cvp I'll give it another shot. Take as much time as you need, I understand this might be a lot to work on and I feel bad for having you do so much. Thank you so much for all this effort you've put in so far.
-
@cvp said:
Did your re-download the script? It has been updated some minutes ago.
I reset the loc file and had the program create a new one... same issue. Let me make sure I am doing this right: I tap a green pin, make it trash, then close the map using the X in the top left. Anything I'm doing wrong?
-
@RocketBlaster05 said:
I reset the loc file and had the program create a new one... same issue. Let me make sure I am doing this right: I tap a green pin, make it trash, then close the map using the X in the top left. Anything I'm doing wrong?
No, you're right, obviously a bug, sorry, I'll correct it but not immediately, sincerely sorry.
-
@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