forked from Spaction/Leaflet.Canvas-Markers
-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes for IITC #1
Closed
Closed
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
71eab75
Changing Canvas size when changing screen size
modos189 258ad34
Fix typo
modos189 5b67c61
fix broken removeMarker
b0ab2d4
Preparation to support options.padding
modos189 809a4e9
Correction marker positions when panning or resizing a window.
modos189 b2b477b
Simplification of coordinate calculation
modos189 6a81b9c
fix exception in mouse event handler with empty CanvasMarkerLayer
eab1eaf
fixup! Preparation to support options.padding
ab64e18
removeMarker: fix exception when CanvasMarkerLayer is not attached to…
06a7873
fixup! fixup! Preparation to support options.padding
cd7d7d5
return general Layer features lost in refactoring into Renderer
4ade879
fix exception if image is not loaded (yet) / bad url / etc
7bffd6a
fixup! fixup! fixup! Preparation to support options.padding
cef10c4
fix to expose L.CanvasIconLayer class
83304c2
Merge branches 'fixes', 'canvas-resize', 'layer-features-back' and 'p…
d6e5ca5
fix https://github.com/IITC-CE/Leaflet.Canvas-Markers/issues/11
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we inherit this value from map renderer?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In Leaflet
padding
value is specified inRenderer
class (var Renderer = Layer.extend({
) and is not overridden.It would be useful to assign an indent equal to that in
window.map
in iitc, but this is hardly possible.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why hardly? I suppose we just need
map._renderer.options.padding
.Or
map.getRenderer({options:{}}).options.padding
.Then in our
boot.js
we can do like this: