Commit graph

1986 commits

Author SHA1 Message Date
Laura Klünder
3e41ac9e14 use HybridGeometry to precache triangulations 2017-11-08 18:04:07 +01:00
Laura Klünder
7790c16bc0 draw lines aroung geometries with altitude only in svg engine 2017-11-08 18:03:40 +01:00
Laura Klünder
7d0eb3975d add contains_points to mpl utils and move mpl utils to mapdata 2017-11-08 16:03:32 +01:00
Laura Klünder
c87780dd75 store background_rgb as 0-1 float, not 0-255 int 2017-11-08 14:35:14 +01:00
Laura Klünder
f82c7de5da refactor one_pixel logic 2017-11-08 14:31:50 +01:00
Laura Klünder
335970ffcc implement SSAA 2017-11-08 14:31:37 +01:00
Laura Klünder
b54661ef78 add OpenGLWorker to make it possible to reuse OpenGL resources 2017-11-08 14:17:06 +01:00
Laura Klünder
0713fe2e44 fix OpenGLEngine._add_geometry 2017-11-08 12:35:48 +01:00
Laura Klünder
596dc48f33 don't use quality meshing. we want to get a result, not freeze the device 2017-11-08 12:32:31 +01:00
Laura Klünder
a07c7506dd add missing keep_holes 2017-11-07 23:04:18 +01:00
Laura Klünder
bee51f000b move triangulate_polygon into c3nav.mapdata.utils.mesh 2017-11-07 22:58:47 +01:00
Laura Klünder
accd656a78 fix comment referencing old SVGImage class 2017-11-07 22:16:52 +01:00
Laura Klünder
3b628681d6 render levels_on_top of current level 2017-11-07 21:52:51 +01:00
Laura Klünder
0e23945be4 replace trimesh.triangulate_polygon with faster direct meshpy implementation 2017-11-07 14:15:03 +01:00
Laura Klünder
d28ee8b461 cache color_to_rgb 2017-11-07 12:57:00 +01:00
Laura Klünder
d0abf2a282 support for rgba() color string in opengl renderer and <1px lines 2017-11-07 12:24:31 +01:00
Laura Klünder
2d7cc52941 simplify opengl stroke creation 2017-11-07 12:03:18 +01:00
Laura Klünder
ee0e5a5f0a add type hinting to fix linter 2017-11-07 00:29:18 +01:00
Laura Klünder
b5a83f08b9 if stroke and fill color are identical, only draw buffered fill 2017-11-07 00:26:59 +01:00
Laura Klünder
1fd7c51c21 draw strokes in OpenGLEngine 2017-11-07 00:20:23 +01:00
Laura Klünder
1a0fc522cf something something triangles 2017-11-06 23:44:06 +01:00
Laura Klünder
a05c7a5a3c add base for OpenGL map render engine 2017-11-06 11:19:53 +01:00
Laura Klünder
80fb9e2df7 move clip_altitudes() to base RenderEngine 2017-11-06 10:02:34 +01:00
Laura Klünder
400f2892bb fix scroll wheel zoom on thinkpads and similar 2017-11-05 18:19:45 +01:00
Laura Klünder
0e3fa01131 main index: only show primary levels 2017-11-05 17:54:03 +01:00
Laura Klünder
6c8479a660 show bootstrap_messages in level detail and space detail editor view 2017-11-05 17:51:37 +01:00
Laura Klünder
54628f5d1b put user id in etag in editor 2017-11-05 17:47:31 +01:00
Laura Klünder
3ee7cf91bf fix cache invalidation / mapupdate creation in direct edit with DEBUG=False 2017-11-05 17:44:54 +01:00
Laura Klünder
de6e67d8ae fix import 2017-11-05 17:15:20 +01:00
Laura Klünder
ae5bbb7705 superusers get their own cache key 2017-11-05 16:47:25 +01:00
Laura Klünder
0f251af6a9 remove filter and clip_path 2017-11-05 13:30:45 +01:00
Laura Klünder
e0ae343503 remove old render_svg code 2017-11-05 13:29:16 +01:00
Laura Klünder
891a1df418 rename elevation → height 2017-11-05 13:24:35 +01:00
Laura Klünder
f928fd8b6e fix imports 2017-11-05 12:32:07 +01:00
Laura Klünder
36146ac954 c3nav.mapdata.render.image → c3nav.mapdata.render 2017-11-05 11:24:53 +01:00
Laura Klünder
df451f9143 cleanup render code to make room for the opengl rendering engine 2017-11-04 23:21:36 +01:00
Laura Klünder
f7291ff237 disable altitudearea shadow rendering for now (takes too long) 2017-11-03 14:59:55 +01:00
Laura Klünder
4216998ec6 cast elevation to float so we can multiply it with floats 2017-11-03 13:00:06 +01:00
Laura Klünder
75682dda97 MapHistory: remember filename if the file does not exist 2017-11-03 12:30:22 +01:00
Laura Klünder
5ee98ccdc4 set L.Browser.touch = false for leaflet-editable 2017-11-03 12:11:38 +01:00
Laura Klünder
a58bf3753d fix json reindender for coordinates 2017-11-02 13:44:44 +01:00
Laura Klünder
949b88389e add Location.details_display() 2017-11-02 13:35:58 +01:00
Laura Klünder
ba3e1e485e remove debug statement 2017-11-02 12:45:33 +01:00
Laura Klünder
614c61efee fix redirect in location display api 2017-11-01 15:59:04 +01:00
Laura Klünder
e6b6db1c7c add location display endpoint 2017-11-01 15:55:59 +01:00
Laura Klünder
6cf8ea40c0 fix sources being invisible in the editor 2017-11-01 14:44:31 +01:00
Laura Klünder
554b36d22f utils.svg: skip LineStrings with no fill set 2017-11-01 14:20:08 +01:00
Laura Klünder
619ccab617 cache mapdata api 2017-11-01 12:26:13 +01:00
Laura Klünder
4e3dd875c6 django complains without a clear reason, so remove .select_related().only() 2017-11-01 12:05:37 +01:00
Laura Klünder
b0cfa4e309 rename simple_api_cache → api_etag to avoid confusion 2017-11-01 11:12:40 +01:00