omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    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

    Pythonista
    4
    196
    69948
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • RocketBlaster05
      RocketBlaster05 @cvp last edited by

      @cvp tested it... problem mentioned above is fixed. However if all three pins are created from the user’s location with the man emoji then the same issue occurs.

      Thanks

      cvp 1 Reply Last reply Reply Quote 0
      • cvp
        cvp @RocketBlaster05 last edited by

        @RocketBlaster05 said:

        However if all three pins are created from the user’s location with the man emoji then the same issue occurs.

        🥲 No more time today, sorry, but you have already enough to play/test.
        Promised for tomorrow.

        RocketBlaster05 1 Reply Last reply Reply Quote 0
        • RocketBlaster05
          RocketBlaster05 @cvp last edited by RocketBlaster05

          @cvp Okay, I've narrowed down the issue: It seems to only occur if two pins have the same location as one another. Realistically, this would not be an issue, as the gps would most likely update before the person tries to mark another location. However, if somebody were to accidentally mark themselves twice, then this issue still persists. Perhaps there is a way to recognize if a location is already marked, and if so then a new point can't be created on the exact point. Not sure if this would interfere with the process for marking someone's location or not.

          If this is possible, I wish that the error message would just be printed in console. From there I could edit it to make a popup occur saying (invalid location) or something of the sort.

          Just some thoughts for when you get around to it.

          Thanks as always

          cvp 2 Replies Last reply Reply Quote 0
          • cvp
            cvp @RocketBlaster05 last edited by cvp

            @RocketBlaster05 tomorrow, if my wife let me some free time 🙄

            Édit: I need to first correctly understand the bug before to be able to correct it.

            1 Reply Last reply Reply Quote 0
            • cvp
              cvp @RocketBlaster05 last edited by cvp

              @RocketBlaster05 said:

              there is a way to recognize if a location is already marked, and if so then a new point can't be created on the exact point.

              Done ( Github updated) you would get a console.alert message (up to you to put your own text).
              I've seen it once but not easy to reproduce (thus to test) because it depends on the current location...

              Do you know that I could easily make the circle of the crosshairs variable in function of the number of pin's they represent, or even display at center of the crosshairs the number of pin's they represent.
              Ask if you want.

              And I'm almost sure that your next request would be that if a pin just trashed is close to a crosshair area, this pin would be automatically included in this area if the pin is at good distance of each of area's points.
              Am I wrong? Even if this process is not so easy. 😀

              RocketBlaster05 1 Reply Last reply Reply Quote 0
              • RocketBlaster05
                RocketBlaster05 @cvp last edited by

                @cvp said

                Do you know that I could easily make the circle of the crosshairs variable in function of the number of pin's they represent, or even display at center of the crosshairs the number of pin's they represent.
                Ask if you want.

                Can you explain this a little more? As in the crosshairs would get larger the more pins are nearby? Because if so, that would be great. If this is what you are talking about, then I would prefer if it said on the crosshairs how many pins were combined (not coordinates but rather whole numbers)

                And I'm almost sure that your next request would be that if a pin just trashed is close to a crosshair area, this pin would be automatically included in this area if the pin is at good distance of each of area's points.
                Am I wrong? Even if this process is not so easy. 😀

                I’m assuming this would be necessary for what was said above, so, yes that was my next plan lol

                cvp 2 Replies Last reply Reply Quote 0
                • cvp
                  cvp @RocketBlaster05 last edited by

                  @RocketBlaster05 said:

                  I would prefer if it said on the crosshairs how many pins were combined (not coordinates but rather whole numbers)

                  That is what I wanted to say 🥲 in my poor English.

                  RocketBlaster05 1 Reply Last reply Reply Quote 0
                  • cvp
                    cvp @RocketBlaster05 last edited by

                    @RocketBlaster05 said:

                    yes that was my next plan lol

                    Obviously, not for today because, for me, not so easy, but promised

                    1 Reply Last reply Reply Quote 0
                    • RocketBlaster05
                      RocketBlaster05 @cvp last edited by

                      @cvp but what do you mean by variable function? Does it change color, size, etc?

                      cvp 3 Replies Last reply Reply Quote 0
                      • cvp
                        cvp @RocketBlaster05 last edited by

                        @RocketBlaster05 said:

                        variable function?

                        Not variable function but variable in function.
                        If the group contains 3 pin's: small diameter, if it contains 10: big diameter.
                        But if the drawing contains the number of pin's, this varying diameter is not needed.

                        1 Reply Last reply Reply Quote 0
                        • cvp
                          cvp @RocketBlaster05 last edited by cvp

                          @RocketBlaster05 you know that pin dimension stays fixed, in pixels, even if you are zooming in or out.
                          What do you think of this (complex) feature (mkmapview overlay) where I draw a circle of 10 meters around the center of the group and small circles at each point included in the group.

                          1 Reply Last reply Reply Quote 0
                          • cvp
                            cvp @RocketBlaster05 last edited by

                            @RocketBlaster05 in the previous example, the trash pin is in the circle but at more than 10 meters from at least one point.

                            RocketBlaster05 1 Reply Last reply Reply Quote 0
                            • RocketBlaster05
                              RocketBlaster05 @cvp last edited by

                              @cvp that looks amazing. Take as much time as you like because that is beyond what I would have thought of.

                              Thanks!

                              cvp 3 Replies Last reply Reply Quote 0
                              • cvp
                                cvp @RocketBlaster05 last edited by cvp

                                @RocketBlaster05 Github updated with version with map overlay (I spent 3 hours this morning, don't worry, for my fun because I did not know this feature)
                                Please try it and tell me your opinion.

                                I don't forget the 2 requests:

                                1. display number of points in the crosshair area at center of cross
                                2. automatically add a trashed pin at close crosshair area

                                Both will be done before end of tomorrow.

                                Don't forget that you need to zoom a lot before to see a circle with radius of 10m

                                1 Reply Last reply Reply Quote 0
                                • cvp
                                  cvp @RocketBlaster05 last edited by

                                  @RocketBlaster05 sorry, I think I didn't upload the right code, waits one minutes, sorry

                                  1 Reply Last reply Reply Quote 0
                                  • cvp
                                    cvp @RocketBlaster05 last edited by

                                    @RocketBlaster05 GitHub uploaded with

                                    RocketBlaster05 2 Replies Last reply Reply Quote 0
                                    • RocketBlaster05
                                      RocketBlaster05 @cvp last edited by

                                      @cvp looks great!

                                      1 Reply Last reply Reply Quote 0
                                      • RocketBlaster05
                                        RocketBlaster05 @cvp last edited by

                                        @cvp I have a question. I see that for the number three in the center of the marks it has a white background, (I assume to make it easier to see) is it possible to apply the same thing to the trash emoji? I realized it was rather difficult to see on the hybrid map, and thought a white background would likely help

                                        cvp 2 Replies Last reply Reply Quote 0
                                        • JonB
                                          JonB last edited by

                                          @RocketBlaster05 Out of curiosity, is this for some sort of class project? .You have mentioned a few times your deadline, and teachers comments...

                                          1 Reply Last reply Reply Quote 0
                                          • cvp
                                            cvp @RocketBlaster05 last edited by

                                            @RocketBlaster05 said:

                                            apply the same thing to the trash emoji

                                            Sure it is, but in this way, you would hide the map behind...
                                            I'll do it.

                                            Nb. Be patient for the more complex request about automatic add of a new trash to existing crosshair area.

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Powered by NodeBB Forums | Contributors