Opened 16 years ago
Closed 15 years ago
#2344 closed defect (fixed)
zooom to layer fails if only single waypoint in GPX layer
Reported by: | anonymous | Owned by: | team |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | Core | Version: | latest |
Keywords: | Cc: |
Description
If I have GPX layer with waypoints in them, I got "Markers from xyz.gpx" layer when l,oading it. If I select that layer and press "2" (zoom to layer), the view is zoomed to show all the markers. But if the layer contain only single marker, the zoom is changed to entire world in that case (which can be quite confusing) instead of some rather small area around that single node.
Example of GPX with single marker that causes this:
<?xml version='1.0' encoding='UTF-8'?>
<gpx version='1.1' creator='GPSMID' xmlns='http://www.topografix.com/GPX/1/1'>
<wpt lat='50.085922' lon='14.435241' >
<name>some text</name>
</wpt>
</gpx>
Attachments (1)
Change History (4)
by , 16 years ago
Attachment: | GpxLayer.diff added |
---|
comment:1 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fixed it, by creating two waypoints in upper upper and lower left of the given point. Centering it in a box.
comment:2 by , 15 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
Seems not to work in revision 1627 from SVN.
When I use the waypoint file below, load it, select it in Layers list and then press "2", map zooms out to entire world.
<?xml version='1.0' encoding='UTF-8'?> <gpx version='1.1' creator='GPSMID' xmlns='http://www.topografix.com/GPX/1/1'> <wpt lat='50.10123' lon='14.475168'> <name>Waypoint 1</name> <time>2009-05-26T05:09:28Z</time> </wpt> </gpx>
The Patch for GPXLayer