summaryrefslogtreecommitdiff
path: root/navit
Commit message (Collapse)AuthorAgeFilesLines
* Fix:graphics/android: polygons with hole drawing (#973)Stefan Wildemann2020-09-222-16/+74
| | | | | | | | | | | | | | | * graphics/android: Fix: array size * g_malloc JNI arrays instead of using stack. Draw triangles. We now know that polygons with holes tend to get big so don't even try to allocate that on stack. * Ensure polygons are correctly directed for android. * Fix typos * Explicit decisions
* fix:plugins: too few arguments to functions navit_attr_iter_new and ↵Joseph Herlant2020-09-221-2/+2
| | | | | | | | config_attr_iter_new (#966) * fix:plugins: too few arguments to function navit_attr_iter_new * fix:plugins: too few arguments to function config_attr_iter_new
* Fix:port/android:Use new icon for notification (#963)mvglasow2020-09-226-14/+44
| | | Signed-off-by: mvglasow <michael -at- vonglasow.com>
* Fix run when in build dir (#957)jkoan2020-09-222-1/+4
| | | | | * add:build:core:Add file which is only visible to devs to detect when navit is running in build dir
* vehicle:fix: add compatibility for gpsd 3.20 (#959)Joseph Herlant2020-09-221-0/+4
| | | | | | * vehicle:fix: add compatibility for gpsd 3.20 * Fix spacing
* feature:graphics/android: add polygons with holes support (#889)Stefan Wildemann2020-09-222-3/+112
| | | | | | | | | | | | | | | | | | | | | | | | | * Feature:graphics/android:add polygons with holes * fix java errors * add jni code * link routine to structure * try to pass sanity check for java. This is so annoying * Fix errors * Fix cloaking variables a and b. Silly me. * Fix bad merge * Fix checkstyle errors Co-authored-by: Joseph Herlant <aerostitch@users.noreply.github.com> Co-authored-by: jkoan <jkoan@users.noreply.github.com>
* fix:ci:Fix checkstyle changes since 8.24 (#946)Joseph Herlant2020-09-221-1/+1
| | | | | | | | | | * fix:ci:TreeWalker is not allowed as a parent of LineLength since 8.24 * fix:ci:minLineCount has been removed from JavadocMethod in checkstyle 8.25 * Upgrade checkstyle to 8.26 * update:doc:Specify a minimum version needed for checkstyle outside of gradle
* fix:tomtom:Make sure the tomtom_plugin and tomtom_minimal contain navit.xml ↵gefin2020-09-221-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#875) * Issue/823 Fix navit.xml (tomtom480.xml) and locales path * Issue/823 Fix missing navit.xml (tomtom480.xml) and locale path * add xslt support * Update setup_common_requirements.sh * Moving change performed in aa10e05a89f9bd26a4c5cf46a264b41fd9ec93b9 inside setup_tomtom_requirements.sh (and adding it to circleci process) * Only running installation for xsltproc in circleci * Update build_tomtom_minimal.sh copy also the layout xml files to target * copy also the layout xml to target * Selecting specific xml prefixes during copy * Fixing tomtom's xslt following split of xml config files at e70a28963ff9754d3257361fad93aebf59edee08
* Update:Android:Navit logo. Closes #909 (#943(lains2020-09-225-0/+0
|
* fix:various:fix compiler warnings (#940)Stefan Wildemann2020-09-2229-350/+419
| | | | | | | | | | | | | | | | * fix:core:build without warnings on my setup navit_core build without non avoidable warnings. * fix:dbus:fix compiler warnings * fix:gui/internal: remov compiler warnings * fix:various:remove compiler warnings * fix:various remove compiler warnings. * fix:various: fix android compiler warnings
* fix:all:fix compiler warnings (#935)Stefan Wildemann2020-09-2230-186/+228
| | | * fix:core:remove many compiler warnings from core
* fix:core:Don't flood stack on big map elements (#928)Stefan Wildemann2020-09-224-70/+277
| | | | | | | | * fix:core:Don't flood stack on big map elements Use g_malloc instead of g_alloca on huge map elements. Correctly calculate element intersection with map selection even if buffer is too small.
* cleanup:qt:Whitespaces and blank lines cleanup according to cpplint (#930)Joseph Herlant2020-09-229-170/+164
| | | | | | | | | | | | * cleanup:qt:Whitespaces and blank lines cleanup according to cpplint * More blank lines * Yet another one [skip-ci] * Another few fixes * Weird use case. Do we need this protected declaration?
* Fix:Android:fixes (#919)jandegr2020-09-2215-744/+693
|
* enhancement:maptool:slice big polygons into smaller parts (#906)Stefan Wildemann2020-09-2221-28/+950
| | | | | | | | | | | | | | | | | | | This commit allows to slice all polygons (except poly_water_sliced) into squares so that they fit into smaller map tiles. Holes if present are correctly sliced as well. This has the advantage that they do not need to be processed albeit not being displayed, and navit-planet-extractor can filter them out. This has the disadvantage that the big polygons are displayed checkered if the corresponding itemgra in config features an outline. TODO: Slice already on polygon creation. Currently the slicing has to be performed twice, because of tile preprocessing and saving is done in seperate steps from the tempfiles. TODO: Make the trigger for slicing configurable. Right now it slices everything smaller than tile level 4.
* cleanup:search:Remove duplicate code for search_fix_spaces (#917)Joseph Herlant2020-09-223-31/+13
| | | | | | | | | | | | | | | | * cleanup:search:Remove duplicate code for search_fix_spaces * Remove the static modifier to allow its usage in multiple files * Avoid discards const qualifier from pointer target type warning * Fix the bad redirect and force const in signature * Add doc for search_fix_spaces * Update description * Handle case when the string will only contain chars that will be discarded
* Add/Android Supporting sending & receiving geo: intents (#812)lains2020-09-226-81/+248
|
* enhancement:maptool:improve processing speed and fix some memory holes (#901)Stefan Wildemann2020-09-225-29/+292
| | | | | * Convert turn relation processing to multi threaded * Enhance item read function to block read the items for faster overall reading speed. * Fix some memory holes found by valgrind. There are still many left. Specially in coastline and Country border code.
* fix:maptool:create valid zip64 central directory (#915)Stefan Wildemann2020-09-221-4/+14
| | | | | | This fixes the zip64 central directory created by the maptool. While the broken one works on navit itselve, it failed to extract with usual zip tools due to parts of the zip64 end of directory part not being filled correctly with values.
* Fix:Android:system bars (#890)jandegr2020-09-229-565/+582
| | | fixes system bars losing transparency on Android 20 and up
* Fix:traffic:Determine item delay correctlymvglasow2020-09-221-1/+1
| | | | Signed-off-by: mvglasow <michael -at- vonglasow.com>
* Fix:traffic:Use correct coord count for restored items, fixes #900mvglasow2020-09-221-1/+1
| | | | Signed-off-by: mvglasow <michael -at- vonglasow.com>
* fix:core:prevent stack overflow on drawing huge polygons (#897)Stefan Wildemann2020-09-221-14/+39
| | | | This commit prevents c_alloca from flooding the stack if we have to deal with really huge polygons. Use slower g_maalloc instead.
* fix:circleci: do not download build environment for sanity check (#891)Stefan Wildemann2020-09-221-1/+11
| | | and reenable xml lint for all configurations shipped.
* feature:gui_internal: include post code in town serch (#818)Stefan Wildemann2020-09-221-1/+1
| | | This pull request includes postal code or zip code into the town search.
* cleanup:search:Minor - Use fallthrough like the rest of the cases (#886)Joseph Herlant2020-09-221-1/+0
| | | | | | | | | | * cleanup:search:Minor - Use fallthrough like the rest of the cases * Remove fallthrough for readability * Revert "Remove fallthrough for readability" This reverts commit 68a78f692ebcd19b5b2ca2100e221eb8987bc71a.
* Add watch after reopen the gps file (#872)gefin2020-09-221-0/+1
| | | | | | * Add watch after reopen the file vehicle_file_close(priv) disables the watch of the file. vehicle_file_open(priv) dont re enable it. So the gps position was frozen
* Fix:android:64 bit and cleanup2 (#877)jandegr2020-09-2243-2840/+2679
| | | https://github.com/navit-gps/navit/pull/877
* enhancement:layout_car:use transparency to draw some map features (#879)Stefan Wildemann2020-09-221-34/+38
| | | | | | | | | | | | | | | | | | | | | | | | | With the introduction of the multipolygon code we now have all the nice landuses in the map. However, in OSM there are some map features that are not mapped as multipolygon but just "above" the other landuses. Like poly_zoo, poly_theme_park or poly_airfield. Current configuration causes them to be hidden by the landuses, as these are drawn after the above mentioned. OSM's Mapnik style solves the problem by drawing those feature transparent above the landuses. This pull request does so for some map features as well causing the map to look way better. If transparent drawing is not supported by the platform, this causes the mentioned polys to be drawn above the landuses, showing them, eventually hiding some landuse details underneath. But this looks even better than before too. NOTE: Transparent drawing is known to work on: Qt5 (sailfish) and gtk. NOTE: Transparent drawing is known NOT to work on SDL Dont't know for all the others. Sombody might want to check Android? Remember #852 on comparing screenshots though. * Fix: layout_car: draw map features transparent on top Some map featuresa re usually not put into multipolygons, but simple tagged "on top" of the others. So It's quite common for example to tag "poly_airport" on top of the underlying other landuses inside the airport. Move (some) of those elements on top of the polygon draw stack and make them transparent. Looks way better on graphics that support transparency. Not much is lost on those that don't. * Fix: layout_car: differentiate meadow and farmland in color * enhancement:layout-car:Make poly_barracks and poly_university transparent
* fix/enhancement:graphics/layout:get default icon size from layout + draw ↵Stefan Wildemann2020-09-2212-46/+250
| | | | | | | | | | | | | tunnels transparent + mark oneway streets (#884) This pull request adds the possibility to globally set a default for icon size of a layout. You can now give "icon_h" and "icon_w" properties in "layout" tag. This causes navit to not use the real size of an icon but to scale it to have the requested size. Guessing prescaled icons (the name_w_h.png's of course works. Default size of 22x22px which is the default size hint on most of the svg's is used. This fixes #819. This pull request adds the property "underground_alpha" to the "graphics" tag giving the alpha value to use as transparency if ways are flagged with AF_UNDERGROUND. This effectively renders tunnels in transparent. This pull request adds a "oneway" tag to itemgras in layouts. Together with the enhancements of the "arrows" itemgra used for drawing the route graph one can print nice arrows on oneway roads.
* Feature:Support USERPROFILE folder for Windows target (#758)OLFDB2020-09-221-16/+39
| | | | | * Rework:USERPROFILE for Windows Use extended environment_vars array for Windows. Use ~ to provide homedir for Windows using USERPROFILE.
* Add/Android: Provide geo coordinates for clicked position in contextual menu ↵lains2020-09-2211-213/+344
| | | | | | | | | | | | | | | | | | | | (#794) * Adding unescape string utility and unescaping alls values in textfile attributes * Moving coordinates_geo out of internal use in gui_internal_command.c (to coord.c) * Moving gui_internal_escape() into generic str_escape() function in util.c * Moving strncpy_unescape() into generic function in util.c * Using geo coords as item name in Android contextual menu "Route Here" * Using string escaping (for double quotes) when writing former destinations to file * Adding new type DEGREES_MINUTES_SECONDS_BRIEF to factorize coordinates_geo() And fixing the example strings to match what is actually output by the function * Adding support for DEGREES_MINUTES_SECONDS_BRIEF format into coord_format And add internal coord_format_with_sep() to specify the separator * Fixing doxygen doc for coord_format_with_sep() * Making coord_format() inline * Using new factorized generic function coord_geo_format_short() instead of coordinates_geo() * Changing single contextual window title with GPS coords on Android * Adding string bytes length for each coord to string format, using short format in pcoord_format_short() and coord_geo_format_short() * Using pcoord_format_short() in android
* fix:graphics/qt5: Allow to draw transparent polygons (#878)Stefan Wildemann2020-09-221-23/+5
| | | | There is a "misconception" in qt5 graphics about how to draw transparent stuff causing transparent items on the map to not correctly work. This PR changes qt5 graphics to force-clear overlays on starting to draw them instead of force clearing the shape of a transparent item. While this imposes the limitation that the content of an overlay cannot be drawn in multiple runs, it allows to draw transparent stuff on the map. Luckily I don't know of any overlay item yet that is not drawn in one run. So this seems to work OK.
* update: Navit logo for (sailfish) desktop (#874)Stefan Wildemann2020-09-225-0/+0
| | | #724 updated the navit logo, but forgot about the desktop icons used for Sailfish and maybe others.
* Merging PR #724: Updating Navit logo according to proposal in issue #436lains2020-09-226-672/+347
| | | | | | | | | * Updating navit logo for QT * Adding navit icon to GTK GUI's windows, using the black and white version of the icon in GTK GUI for better readability * Fixing memory leak in GTK geticon() * Adding source svg for all variations of the logo (integrating to the repo, the svg logo catalog that was last posted in #436 (https://github.com/navit-gps/navit/issues/436#issuecomment-450587935) Credits for logo design: redmusic27 and zintor
* fix:core:add clipping to polygons with holes (#870) fixes (#869)Stefan Wildemann2020-09-221-43/+186
| | | | | | | | | | | | | | * fix:core:refactor polygon clipping This commit extracts the polygon clipping into its own function to be re used for polygon with holes clipping. * fix:core:Clip polygons with holes prior drawing. While this helps drawing for limited graphics like SDL or WindowsCE, it will slightly slow down on graphics that do clipping themselves like qt5. As this is done for polygons already, we do this for polygons with holes as well.
* Merge branch 'trunk' into baltic_admin_levelsStefan Wildemann2020-09-224-34/+406
|\
| * Merge branch 'trunk' into windowsCE_with_holesStefan Wildemann2020-09-223-29/+236
| |\
| | * Fix:graphics/sdl Always use new polygon with holes primitiveWildemann Stefan2020-09-221-36/+4
| | | | | | | | | | | | | | | | | | | | | Always use polygon with holes primitive for drawing polygons, as this should be faster than older SDL_gfx like drawing primitives because we do not copy the coordinates into different style buffer before raycasting.
| | * Add:graphics/sdl:Add polygon with holesStefan Wildemann2020-09-223-1/+240
| | |
| * | Add:graphics/windows: polygons with holes for windows CEWildemann Stefan2020-09-221-5/+170
| |/
* | Merge branch 'trunk' into baltic_admin_levelsmvglasow2020-09-2214-360/+1420
|\ \ | |/
| * Merge branch 'trunk' into multipolygonStefan Wildemann2020-09-221-17/+20
| |\
| * \ Merge branch 'trunk' into multipolygonStefan Wildemann2020-09-224-19/+15
| |\ \
| * | | Add:graphics/windows: draw polygon with holes (#855)Stefan Wildemann2020-09-221-0/+63
| | | | | | | | | | | | | | | | | | | | | | | | * Add:graphics/windows: drawing polygons with holes For all Windows except windows CE.
| * | | Merge branch 'trunk' into multipolygonStefan Wildemann2020-09-223-0/+2
| |\ \ \
| * \ \ \ Merge branch 'trunk' into multipolygonStefan Wildemann2020-09-221-1/+1
| |\ \ \ \
| * \ \ \ \ Merge branch 'trunk' into multipolygonStefan Wildemann2020-09-221-1/+2
| |\ \ \ \ \
| * | | | | | Add struct traffic *traffic; lost on trunk merge conflictmetalstrolch2020-09-221-58/+59
| | | | | | |
| * | | | | | Merge branch 'trunk' into multipolygonStefan Wildemann2020-09-221-22/+51
| |\ \ \ \ \ \