Tim Schaub
3510c37e43
Handle map size changes in the renderer
2012-09-26 14:10:16 +02:00
Tim Schaub
5b36cf1312
Only adjust tile when necessary
2012-09-26 13:12:36 +02:00
Tim Schaub
24edce24f1
Add alternate tiles under tiles at target z
...
When zooming or panning, if we have tiles at alternate resolutions, those tiles are inserted in the DOM before the tiles at the target resolution. This means you should see blurry tiles instead of whitespace when panning (assuming you've already zoomed in a bit).
2012-09-26 12:18:11 +02:00
Tim Schaub
48c4cbc1e5
Correcting comment typos
2012-09-26 11:11:51 +02:00
Tim Schaub
8e38ab0fdc
Lint free.
2012-09-26 10:58:17 +02:00
Tim Schaub
3479e20b0a
Merge branch 'alt-tiles'
2012-09-26 10:55:25 +02:00
Tim Schaub
7f58d1a8c6
Proper handling of out-of-range and alt-z tiles
...
Tile pruning code separated into to methods for clarity. Alt-z tiles are only removed when all current-z tiles have loaded. Thanks @elemoine for the excellent debugging session.
2012-09-26 10:52:17 +02:00
Tim Schaub
299173194c
First pass at alt-tile rendering for dom renderer
2012-09-25 20:06:20 +02:00
Tim Schaub
900eead7c6
Correct type for imagesToLoad. Add note about shorter path.
2012-09-25 12:08:02 +02:00
Tim Schaub
5eb5715530
More longname display.
2012-09-24 18:23:19 +02:00
Tim Schaub
2b307ef6a9
Replace opt_ prefix with (Optional) in description.
2012-09-24 18:23:19 +02:00
Tim Schaub
b73ffbdc7c
Hide source tags (until we get the full path).
2012-09-24 18:23:19 +02:00
Tim Schaub
f2c05bdf0f
Remove "arguments" column from params table.
2012-09-24 18:23:19 +02:00
Tim Schaub
99e58cb8e0
Stylesheet to hide protected members.
...
Source tags are also hidden here as they only provide the file name and not the complete path. This should be fixed in JSDoc 3.
2012-09-24 18:23:19 +02:00
Tim Schaub
2add7288e5
Doc target for building with JSDoc 3.
...
This assumes jsdoc is on the path.
2012-09-24 17:25:33 +02:00
Tim Schaub
d51cd1c395
Interaction in ol.interaction namespace.
2012-09-24 17:18:21 +02:00
Tim Schaub
ed754fbfdf
Control in the ol.control namespace.
2012-09-24 17:15:30 +02:00
Tim Schaub
1f9e2aa3c4
Move Layer into ol.layer namespace.
2012-09-24 17:08:36 +02:00
Tim Schaub
57d75ace5d
Adding a JSDoc 3 template.
2012-09-24 16:59:27 +02:00
Tim Schaub
c3a41c967e
Removing file overviews for now.
2012-09-24 16:58:55 +02:00
Tim Schaub
c56fce2be8
Attempting to clarify.
2012-07-11 17:20:06 +02:00
Tim Schaub
1dd2512765
Specs for getting tile coords.
2012-07-09 01:15:56 -06:00
Tim Schaub
7f594364ca
Pixels aligned top,left to origin.
2012-07-09 01:15:56 -06:00
Tim Schaub
5a485ea856
Getting explicit about pixels and size.
...
Eventually, well have to ask renderers for all pixel and size related stuff. And the map overlay renderer will do all pixel<->loc math. For now, we let the map do this math based on its viewport - as this is where the mouse events are handled and it is pixels relative to the viewport that are being generated. For now, the getViewportPixelForLoc and getLocForViewportPixel are now more explicitly named.
2012-07-08 20:57:36 -06:00
Tim Schaub
3d130d3325
Letting the map ask renderer for resolution.
2012-07-08 20:56:36 -06:00
Tim Schaub
4dfb5d0dee
Set center on reset. Only shift if offset.
2012-07-08 20:42:15 -06:00
Tim Schaub
b24d63a898
Spaces for tabs.
2012-07-08 19:34:53 -06:00
Tim Schaub
4911320eef
Rework DOM composite renderer.
2012-07-08 18:37:23 -06:00
Tim Schaub
ceaba3cdd4
Overlays above the renderer.
2012-07-08 18:37:23 -06:00
Tim Schaub
bb7127c548
Merge branch 'renderer'
2012-07-07 17:17:59 -06:00
Tim Schaub
ddd57426b5
Allow renderer to have a buffer.
2012-07-07 16:50:22 -06:00
Tim Schaub
dc409ebcc4
Resize images in case they were previously scaled.
2012-07-07 15:42:08 -06:00
Tim Schaub
c0777cc003
Working with integer pixel space.
2012-07-07 15:19:49 -06:00
Tim Schaub
523f4d61fc
Shift container for all layer renderers together.
2012-07-07 13:13:07 -06:00
tschaub
d435f6b4fd
Simplifying the loader.
...
Plovr checks the referrer for query string parameters (like mode), so we don't need any of this query string parsing (thanks @elemoine for the tip).
The reason we still dynamically generate the script tag is to work on other domains (e.g. testing on a VM or mobile device). In this case, we make use of the `window.location.hostname`.
2012-07-05 13:55:24 -06:00
Tim Schaub
0650d93d17
Let the composite renderer manage containers.
2012-07-04 22:17:56 -06:00
Tim Schaub
d8e8e55b44
Generalizing query string parsing in the loader.
2012-07-04 20:53:03 -06:00
Tim Schaub
08d6e35252
Accept an id param for the loader.
2012-06-23 20:00:28 +02:00
Tim Schaub
2fcbce30bc
For now, we require a projection on loc internally.
2012-06-23 19:59:49 +02:00
Tim Schaub
bcc85b9dd7
Must set a projection before setting center.
2012-06-23 16:55:16 +02:00
Tim Schaub
db2cbe07b7
Transforming coords before setting center.
...
The internal setCenter method can only be called with locations that have projections. This method always transforms.
2012-06-23 16:42:51 +02:00
Tim Schaub
48704cce2f
Make sure to set a projection on user center.
...
Only in the API do we allow setting the map center without a projection. This is all handled in the center getter/setter.
2012-06-23 15:40:43 +02:00
Tim Schaub
167f77dd7e
Updating example with build config.
2012-06-23 15:22:37 +02:00
Tim Schaub
df1dfd5295
Adding exports to get advanced compilation.
2012-06-23 15:22:37 +02:00
Tim Schaub
795f8b854d
Adding instructions for build utilities.
2012-06-23 14:10:25 +02:00
Tim Schaub
a1fcb4e065
Build with an arbitrary configuration.
2012-06-23 13:55:06 +02:00
Tim Schaub
2991041b3c
Cleaning up a bit.
2012-06-23 13:23:10 +02:00
Tim Schaub
c4f91d498c
Prep for more efficient moves.
2012-06-23 12:42:09 +02:00
Tim Schaub
76d90428bd
Pleasant zoom.
2012-06-23 03:32:27 +02:00
Tim Schaub
0554bceb29
Drag and zoom without throwing.
...
(This is a bit tedious, suggests a pending state.)
2012-06-23 02:17:14 +02:00
Tim Schaub
789eaa2742
Loaded typo.
2012-06-23 02:11:26 +02:00
Tim Schaub
ef0fd8da60
Pixels increase right and down.
2012-06-23 02:00:28 +02:00
Tim Schaub
b6cfeecdfb
Adjust tiles if already rendered.
2012-06-23 01:59:20 +02:00
Tim Schaub
5fa42e9b30
A map that zooms.
2012-06-22 20:46:34 +02:00
Tim Schaub
cfe3f14777
Stray console log.
2012-06-22 20:38:24 +02:00
Tim Schaub
787f2ba979
Common method for conditionally rendering.
2012-06-22 20:37:29 +02:00
Tim Schaub
b986395358
This is not doing what you think it is.
2012-06-22 20:25:26 +02:00
Tim Schaub
f46a7dbc2a
Updated example.
2012-06-22 20:10:02 +02:00
Tim Schaub
bc0614d3ee
Render last.
2012-06-22 20:08:44 +02:00
Tim Schaub
f86e6f17a9
Absolute position for tiles.
2012-06-22 20:08:44 +02:00
Tim Schaub
af73489bd5
Create a renderer and draw when possible.
2012-06-22 20:08:44 +02:00
Tim Schaub
7b41119bc9
Composite renderer creates layer renderers.
2012-06-22 19:46:40 +02:00
Tim Schaub
ff9bacf044
Temporary way for map renderers to register.
2012-06-22 19:46:40 +02:00
Tim Schaub
915f7b5330
Clean up old tiles.
2012-06-22 19:46:40 +02:00
Tim Schaub
2fffa0293d
Test renderer type.
2012-06-22 17:48:44 +02:00
Tim Schaub
5b2d29878b
Tile may be null.
2012-06-22 17:38:59 +02:00
Tim Schaub
0c0eecebd9
Tile index based math (needs simplification).
2012-06-22 17:29:06 +02:00
Tim Schaub
db3a6e9c4a
Get closest resolution.
2012-06-22 16:14:33 +02:00
Tim Schaub
ef06bee222
Allowing people to set up things backwards.
2012-06-22 15:42:56 +02:00
Tim Schaub
4e2ea47e73
Decode what we encode.
2012-06-22 13:12:47 +02:00
Tim Schaub
c67ca2660d
Partial tile layer renderer.
2012-06-21 19:59:43 +02:00
Tim Schaub
948e792ddd
Bounds transforms.
2012-06-21 19:59:43 +02:00
Tim Schaub
6198df9381
Location transform in api.
2012-06-21 19:59:43 +02:00
Tim Schaub
ba7b54949c
Bounds spec.
2012-06-21 19:59:43 +02:00
Tim Schaub
7c17374231
Bounds has projection or null.
2012-06-21 17:28:47 +02:00
Tim Schaub
0a1f8cddd8
Intersects method for bounds.
2012-06-21 17:12:05 +02:00
Tim Schaub
2741a22cf1
Add animate to draw.
2012-06-21 13:31:23 +02:00
Tim Schaub
a6f464e473
New name for element.
...
You are provided a container. To this container you can append elements, and you are responsible for removing elements that you add. You cannot move or otherwise alter anything about this container.
2012-06-21 13:28:29 +02:00
Tim Schaub
5da8fc8d49
Allow map renderers access to target.
2012-06-21 12:26:51 +02:00
Tim Schaub
661f07d80a
Only check src for js.
2012-06-21 12:23:14 +02:00
Tim Schaub
45f734d77e
Base for map renderer.
2012-06-21 11:40:51 +02:00
Tim Schaub
9cc501caba
Composite renderer requires an element.
2012-06-21 11:30:53 +02:00
Tim Schaub
43c8b89460
Initial pass at tiled layer renderer.
2012-06-21 01:18:57 +02:00
Tim Schaub
fe0e242a39
Initial composite map renderer.
2012-06-21 01:17:34 +02:00
Tim Schaub
ae242de94a
Ignoring jsdoc output.
2012-06-21 01:16:37 +02:00
Tim Schaub
4baf760b7e
Layer for demo.
2012-06-21 01:15:54 +02:00
Tim Schaub
be54add905
Width and height on unreferenced bounds.
2012-06-21 00:50:26 +02:00
Tim Schaub
5287677489
Additional tileset getters.
2012-06-21 00:42:28 +02:00
Tim Schaub
d8b31ab1ff
Class name on archetype image.
2012-06-21 00:33:31 +02:00
Tim Schaub
57764813e3
Constructing tiles with bounds.
2012-06-20 23:38:15 +02:00
Tim Schaub
f9813616e5
Giving a tile bounds.
2012-06-20 23:38:15 +02:00
Tim Schaub
c9c1f79928
Layer hierarchy for renderers.
2012-06-20 23:38:14 +02:00
Tim Schaub
a4a6bc4db4
Typo in PointLike def.
2012-06-20 18:49:40 +02:00
Tim Schaub
32d5397301
Dot notation for unquoted property.
2012-06-20 18:42:43 +02:00
Tim Schaub
1ac40021bb
Quoting properties for external use.
2012-06-20 17:43:46 +02:00
Tim Schaub
5eeb21c125
Disallow nowhere.
2012-06-20 16:11:41 +02:00
Tim Schaub
09a6b6c456
Changing expectations for projection.
2012-06-20 14:52:29 +02:00
Tim Schaub
14b1a34f98
Splitting tests between api and internal.
2012-06-20 11:56:20 +02:00
Tim Schaub
54b8ebacaf
OS neutral dev tools.
2012-06-20 00:41:28 +02:00
Tim Schaub
b06a52888f
Adding unreferenced bounds.
2012-06-20 00:11:06 +02:00