-
Notifications
You must be signed in to change notification settings - Fork 34
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
Use OpenLayers instead of Mapbox #176
Merged
Changes from all commits
Commits
Show all changes
70 commits
Select commit
Hold shift + click to select a range
f3d4246
Replace awesome-typescript-loader with ts-loader, update package-lock…
easbar c33d240
Upgrade to npm 8.1.0, lockfileVersion 2
easbar 233faaa
remove mapbox, add ol
easbar 83e637d
hello ol
easbar 02e1e1e
disable test for now
easbar 18f51f9
Remove @types/ol
easbar 8f26073
code formatting
easbar 5c6bf18
Enable other raster layers
easbar a5aa582
Enable commented out raster layers too (they work with OL)
easbar 2dc764d
Include vector tiles using ol-mapbox-style
easbar 64e119f
Properly remove existing layers
easbar be71e3e
trigger build
easbar f24b454
Move MapStore and BackgroundLayer out of Map component
easbar 686b2a3
Show paths layer and dummy markers
easbar 520fc7e
Handle view change actions
easbar bb2f14a
remove controls
easbar 03e6186
Remove MapLayer, add some comments
easbar 7ccf309
Update route when dragging markers
easbar 9529a3d
code formatting
easbar f75c4d9
Allow click selection of alternative paths
easbar a270a38
Add context menu
easbar 24c4d68
disable user selection on ios
cb3e74e
Make context menu work on ios using long touch handler
easbar 4e1b5e1
code formatting
easbar ddc0764
Add map attributions
easbar 738db85
Add function names
easbar bf63e92
Update comments
easbar 44aba35
Merge branch 'master' into fix_package_lock
easbar ff9ccb1
Merge branch 'fix_package_lock' into ol_exp
easbar 09e426f
Merge branch 'master' into fix_package_lock
easbar 172c1c0
Merge branch 'fix_package_lock' into ol_exp
easbar 6f2d51b
Update package-lock.json
easbar 46bf484
Add path detail popup and elevation visualization
easbar c9cd40a
Update package-lock.json
easbar f2213e2
Add markers (still has a few issues)
easbar 44f833b
Update package-lock.json
easbar 313fa38
Merge branch 'fix_package_lock' into ol_exp
easbar 2b93d66
Add px and backtick for translate transform of SVG marker (as in Mark…
easbar d1fda59
Update todo comments
easbar 7528a3c
Fix cursor appearance when hovering the map and when grabbing markers…
easbar 0744bcb
Do not change cursor for vector tile elements
easbar 29f749b
Set maxZoom for different raster tile layers
easbar 6972a78
Merge branch 'master' into fix_package_lock
easbar 3ddf866
Update package-lock.json again
easbar dddea6c
go back to node gallium
easbar 5cac394
Remove tileSize, add tilePixelRatio for 2x tiles
easbar 07b7967
Update readme (use fermium for now)
easbar 60f4c4e
Merge branch 'master' into fix_package_lock
easbar eb400e4
Merge branch 'fix_package_lock' into ol_exp
easbar 0673b58
Update to master
easbar 1b0a795
No fit bounds for /info bbox, disable view animation
easbar f598f40
Merge branch 'master' into ol_exp
easbar ea787a5
code formatting
easbar dafbbac
Merge branch 'master' into ol_exp
easbar eadca9e
Merge branch 'master' into ol_exp
easbar ad10643
Use raster tiles by default
easbar a8bd00b
Merge branch 'master' into ol_exp
easbar fa2af4d
estimate bbox from query points
easbar c2ba47c
Use custom hooks for layers
easbar 2e4dddc
Make map just an action receiver instead of a store
easbar 8c75821
Separate map creation from action receiving code
easbar 3e0cb14
minor
easbar ff745d0
Merge branch 'master' into ol_exp
easbar adb8315
Remove allowJs, use typed useRef etc.
easbar d9213ec
Use display grid for App module instead of 100% height/width for map
easbar 74ab4a7
Use Omniscale tiles by default
easbar dd0ade8
Fix map size estimation for initial bbox choice
easbar e41435c
aws deployment does not show map on mobile, try to revert css change
easbar d401067
Really? Revert "aws deployment does not show map on mobile, try to re…
easbar 3976084
go back to start... Revert "Really? Revert "aws deployment does not s…
easbar 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/* todo: this is just copy-pasta from https://openlayers.org/en/latest/examples/popup.html, I have no idea what all this means, | ||
and the popup looks ugly still, at the very minimum the background color needs to be set though | ||
the popup design needs an overhaul anyway... https://github.com/graphhopper/graphhopper-maps/issues/136 | ||
*/ | ||
.popup { | ||
position: absolute; | ||
background-color: white; | ||
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); | ||
padding: 15px; | ||
border-radius: 10px; | ||
border: 1px solid #cccccc; | ||
bottom: 12px; | ||
left: -50px; | ||
min-width: 100px; | ||
} | ||
.popup:after, | ||
.popup:before { | ||
top: 100%; | ||
border: solid transparent; | ||
content: ' '; | ||
height: 0; | ||
width: 0; | ||
position: absolute; | ||
pointer-events: none; | ||
} | ||
.popup:after { | ||
border-top-color: white; | ||
border-width: 10px; | ||
left: 48px; | ||
margin-left: -10px; | ||
} | ||
.popup:before { | ||
border-top-color: #cccccc; | ||
border-width: 11px; | ||
left: 48px; | ||
margin-left: -11px; | ||
} |
Oops, something went wrong.
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.
Compared to the react-map-gl wrapper OpenLayers does not provide a popup component. Therefore I used a simple div and copy-pasted some css from the OpenLayers examples for the context menu and path details popup. I'm pretty sure this can be improved...
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.
I don't have a better template at hand at the moment. Since this is such a big PR already, I would suggest to go with this version.