Community Mapy.com Mapy.com Community
    • Categories
    • Popular
    • Categories
    • Login

    GPX import

    Scheduled Pinned Locked Moved Community Support | Uživatelská poradna
    8 Posts 2 Posters 60 Views 2 Watching
    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.
    • Petr DanesP
      Petr Danes
      last edited by

      I am trying to import a GPX file. The import works, sort of, but I cannot get it to display labels (name, description) on the map. It instead displays a pin with a number, and I have to go to the side panel to see the text. I want to see the text (it is very short) directly on the map. Tutorials on the web seem to show I have the GPX file formed correctly, but Mapy.cz does not display them. How do I get it to display on the map?

      1 Reply Last reply
      Reply Quote 0
      • Jan BuriánekJ
        Jan Buriánek Mapsters Premium
        last edited by

        You are not doing anything wrong with your GPX file.

        Mapy.com displays the <desc> content during the initial stage of the import, but importing descriptions is not yet supported. Once the import is completed, only the <name> content is retained. The name is limited to 200 characters; otherwise, the import fails.

        Displaying waypoint names directly on the map instead of numbered pins is not currently supported either.

        GPX import functionality may be extended in the future, but these are the current limitations.

        Petr DanesP 1 Reply Last reply
        Reply Quote 0
        • Petr DanesP
          Petr Danes @Jan Buriánek
          last edited by

          @Jan-Buriánek Okay, thank you. Is it at least possible to change the numbering of the pins, or is that done by the website automatically? If I could assign the pins a specific number, instead of just accepting 1- n, it would help a lot.

          Petr DanesP 1 Reply Last reply
          Reply Quote 0
          • Jan BuriánekJ
            Jan Buriánek Mapsters Premium
            last edited by

            Where do you see the "numbers in the pins"? If you import GPX waypoints, they are marked with stars, not numbers.

            Only intermediate points of a planned route are numbered, but these cannot be imported in the usual way.

            What exactly are you trying to import? Could you provide a screenshot?

            Petr DanesP 2 Replies Last reply
            Reply Quote 0
            • Petr DanesP
              Petr Danes @Petr Danes
              last edited by

              Or actually, maybe there is a better way to do it all. I am trying to overlay a grid onto the Czech Republic., with a label in the middle of each square. I formerly did it with a .KML file, but you no longer support that, so I am trying with a .GPX file - tracks and waypoints. Do you know of a better way to do that?

              1 Reply Last reply
              Reply Quote 0
              • Petr DanesP
                Petr Danes @Jan Buriánek
                last edited by

                @Jan-Buriánek image.jpeg

                1 Reply Last reply
                Reply Quote 0
                • Petr DanesP
                  Petr Danes @Jan Buriánek
                  last edited by

                  @Jan-Buriánek I tried to send you my .GPX file to look at, but it was not accepted. Here is the text of the first few points - the entire file is thousands of lines.

                  <?xml version='1.0' encoding='UTF-8'?>
                  <gpx version='1.1'>
                  <wpt lat='51.05' lon='14.25'>
                  <name>4951</name>
                  </wpt>
                  <wpt lat='51.05' lon='14.4166666666667'>
                  <name>4952</name>
                  </wpt>
                  <wpt lat='51.05' lon='14.5833333333333'>
                  <name>4953</name>
                  </wpt>
                  <wpt lat='51.05' lon='14.9166666666667'>
                  <name>4955</name>
                  </wpt>
                  <wpt lat='51.05' lon='15.0833333333333'>
                  <name>4956</name>
                  </wpt>
                  <wpt lat='51.05' lon='15.25'>
                  <name>4957</name>
                  </wpt>
                  <trk>
                  <trkseg>
                  <trkpt lat='51.1' lon='14.1666666666667'/>
                  <trkpt lat='51.1' lon='14.3333333333333'/>
                  <trkpt lat='51' lon='14.3333333333333'/>
                  <trkpt lat='51' lon='14.1666666666667'/>
                  <trkpt lat='51.1' lon='14.1666666666667'/>
                  </trkseg>
                  <trkseg>
                  <trkpt lat='51.1' lon='14.3333333333333'/>
                  <trkpt lat='51.1' lon='14.5'/>
                  <trkpt lat='51' lon='14.5'/>
                  <trkpt lat='51' lon='14.3333333333333'/>
                  <trkpt lat='51.1' lon='14.3333333333333'/>
                  </trkseg>
                  <trkseg>
                  <trkpt lat='51.1' lon='14.5'/>
                  <trkpt lat='51.1' lon='14.6666666666667'/>
                  <trkpt lat='51' lon='14.6666666666667'/>
                  <trkpt lat='51' lon='14.5'/>
                  <trkpt lat='51.1' lon='14.5'/>
                  </trkseg>
                  <trkseg>
                  <trkpt lat='51.1' lon='14.8333333333333'/>
                  <trkpt lat='51.1' lon='15'/>
                  <trkpt lat='51' lon='15'/>
                  <trkpt lat='51' lon='14.8333333333333'/>
                  <trkpt lat='51.1' lon='14.8333333333333'/>
                  </trkseg>
                  <trkseg>
                  <trkpt lat='51.1' lon='15'/>
                  <trkpt lat='51.1' lon='15.1666666666667'/>
                  <trkpt lat='51' lon='15.1666666666667'/>
                  <trkpt lat='51' lon='15'/>
                  <trkpt lat='51.1' lon='15'/>
                  </trkseg>
                  </trk>
                  </gpx>

                  1 Reply Last reply
                  Reply Quote 0
                  • Jan BuriánekJ
                    Jan Buriánek Mapsters Premium
                    last edited by

                    Now I understand what you are trying to achieve. I also noticed the name of your GPX file (DataSavcuGPXMriz.gpx) and the dimensions of the grid cells. I therefore assume that you are mapping the distribution of mammals in the Czech Republic. Judging by the filename, perhaps we could also communicate in Czech. 🙂

                    The numbered pins you see in the screenshot are displayed only in the import preview. Once the import is completed, the waypoints will be marked with stars, and their names will only appear when you hover over them. Mapy.com does not currently support permanently displaying the names of imported waypoints directly on the map.

                    However, I can think of two alternative solutions:

                    1. Drawing numbers using a GPX track

                    Just as you created the grid itself using individual GPX track segments, you could use additional segments to draw the digits in the centre of each grid cell. All you would need is a simple algorithm to generate the digits from coordinates.

                    The advantage is that this solution would work directly in Mapy.com, including the mobile app. The disadvantage is that the size of the digits would change as you zoom in and out. In your particular case, however, this might not be a problem.

                    The digits should be drawn using simple geometric shapes, for example in a seven-segment display style, to keep the number of GPX points and the file size as small as possible, since Mapy.com imposes certain limits on GPX imports.

                    2. Creating your own map page using the Mapy.com REST API

                    Creating a simple custom map page using the Leaflet library and map tiles provided by the Mapy.com REST API should not be too complicated.

                    You could draw both the grid and its labels directly using JavaScript, without having to create and import a GPX file. You would also have full control over the appearance of the grid, the size of the labels and their visibility depending on the zoom level.

                    Such a page could also be optimised for mobile browsers and include a feature to display your current GPS location. However, it would not be part of the Mapy.com app and would not be able to use its downloaded offline maps.

                    It therefore depends mainly on what exactly you intend to use the map for.

                    1 Reply Last reply
                    Reply Quote 0

                    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                    With your input, this post could be even better 💗

                    Register Login
                    • First post
                      Last post
                    Mapy.com are part of Seznam.cz, a.s. – all rights reserved. Powered by excellent NodeBB
                    NodeBB & contributors, OSM & contributors
                    Terms of Use   Privacy Policy