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
    69667
    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.
    • cvp
      cvp @RocketBlaster05 last edited by

      @RocketBlaster05 said:

      the trash pin on the face removes the face... Is it meant to do so?

      This bug will be for tomorrow...

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

        @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

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

          @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.

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

            @RocketBlaster05 my pleasure

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

              @RocketBlaster05 said:

              I'm sure it's pretty late near you now.

              Yes, and I' so old...

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

                @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.

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

                  @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 1 Reply Last reply Reply Quote 0
                  • cvp
                    cvp @RocketBlaster05 last edited by

                    @RocketBlaster05 said:

                    on line 281

                    In my script?

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

                      @cvp to clarify what I said above:

                      Here is the order that causes the issue:

                      1. Place a red pin
                      2. Mark user location as trash
                      3. Attempt to place another red pin
                      cvp 1 Reply Last reply Reply Quote 0
                      • cvp
                        cvp @RocketBlaster05 last edited by cvp

                        @RocketBlaster05 thanks to identify "how to generate the bug", I'll check it tomorrow in my afternoon, not before, sorry

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

                          @cvp all good. see you tomorrow.

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

                            @RocketBlaster05 the problem occurs even if the pin to trash is a green, not only the user pin.
                            Red/trash/red
                            Identified, correction tomorrow

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

                              @RocketBlaster05 GitHub corrected for crash "red, set trash user or green, red"

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

                                @RocketBlaster05 Github corrected for bug "the trash pin on the face removes the face... Is it meant to do so?"

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

                                  @cvp Code works great! For the time being I need to test the accuracy of the pins dropped on the person’s location, so I commented all of the long press function and just had it pass. No errors so that’s good.

                                  Whenever you get the time, could you show me how to make it so that the map type button only allows you to use “hybrid” or “standard”? Thanks

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

                                    @RocketBlaster05 GitHub updated, or

                                    	def maptype_button_action(self,sender):
                                    		x = self.x + sender.x + sender.width/2
                                    		y = 70 + self.y + sender.y + sender.height
                                    		sub_menu_dict = {'standard':0, 'hybrid':2}
                                    		#sub_menu_dict = {'standard':0, 'satellite':1, 'hybrid':2, 'satelliteFlyover':3, 'hybridFlyover':4, 'mutedStandard':5}
                                    		sub_menu = []
                                    		for k in [*sub_menu_dict]:
                                    			sub_menu.append(k)
                                    		tv = ui.TableView()
                                    		tv.frame = (0,0,180,85)
                                    		#tv.frame = (0,0,180,280)
                                    
                                    RocketBlaster05 2 Replies Last reply Reply Quote 0
                                    • RocketBlaster05
                                      RocketBlaster05 @cvp last edited by RocketBlaster05

                                      @cvp hm.... got the new github code and it’s causing the iPad to crash... only happened after the map type change.

                                      I've done some poking around... I have an old version of the map saved which runs with no issues. If I run the github version, it causes the iPad to crash. However, if I run the old version of the map first, then run the github version, the github version runs fine. This doesn't make any sense to me but I'm looking for any reason as to why this is happening.

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

                                        @cvp Also, when the code is shortened to just 'standard':0 and 'hybrid':2, when the user selects hybrid it actually shows the 'satellite' view...

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

                                          @RocketBlaster05 sorry for these bugs, GitHub corrected

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

                                            @cvp works great!

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