Comments (7)
this sure looks interesting; I'm not sure if the existing handling of clickes and events will work without major changes; this is something to be tried and tested.
What's harder is the fact, that the Google Mpas Api Key must be present in the HTML before the normal Javascript will be loaded, that means that in a Java application, after entering the Google Maps API Key it would be necessary to completely build a new MapView object.
I'll mark this ans enhancement, but I don't know when I might find time for this.
from mapjfx.
Are you able to point to the locations of code that you are talking about. How different is supporting Google Maps as opposed to Bing Maps?
from mapjfx.
Bing Maps integration is provided by OL, so my code only uses OL functions, whereas the GM integration - as far as I understood it at a first glance - sits on top of the OL code.
So it might not be too hard to change the code to use GM, but as a library mapjfx needs to support all the different map types and - in the best case - switching between them without loosing markers, labels etc.
I have to take a deeper look at this to find the exact places to change/adapt.
from mapjfx.
okay. thanks for the explanation.
from mapjfx.
I'll have a look at this now; let's see if it can be integrated
from mapjfx.
I tried to integrate olgm (created a new branch google-maps-support branched of 2.x), but found the following problems:
- olgm comes bundled with a version of OpenLayers, so I have to remove the version I use. The latest version of olgm 1.1.1 from 2019/02/20 includes ol version 5.0.3 from 2018/07/03. The current version of ol, that I implemented mapjfx against, is 5.3.0 from 2018/11/06, so my ol calls which should be handled by olgm, are not compatible, I guess this is the main cause for the other problems.
- I managed to integrate olgm into the test html I use and the lib and was able to create a view with Google Maps as layer. But this had several problems:
- The map does not fill the entire space, there is a grey area at the bottom, see attached screenshot
- There are no zoom controls visible
- When showing a marker and then using the scroll wheel to zoom, the marker jumps to a different position although the mouse cursor is not even near to it
- When including olgm and then using OSM map style, the map view, marker etc are working as expected, but no zoom controls or attributions are shown.
This might be worth a second try when olgm uses an up to date version of ol, I'll keep the branch around on the repo.
from mapjfx.
thanks for taking your time to look into it. I really appreciate it.
from mapjfx.
Related Issues (20)
- adjust circles on resolution change HOT 1
- maps other than openstreetmap is not working HOT 1
- Any way to accurately define the displayed area? HOT 4
- Problem with marker rotation HOT 2
- Marker rotation HOT 1
- When setting the WINDOWS Screen zoom to 150 % The map does not fill the whole app view HOT 4
- mapjfx doesn't work with javafx 12 or higher on macOS with Silicon chip HOT 2
- Not loading with current OpenJFX 8 HOT 7
- MAP_POINTER_MOVED Event Consumes All Events for Map and Markers HOT 13
- Upgrade branch 3.x to JDK16 HOT 1
- CoordinateLine disappears HOT 2
- Marker custom marker image HOT 2
- Upgrade to use Java 17
- Upgarde to OpenLayers 6.7.0
- Upgrade to OpenLayers 6.8.1 HOT 1
- Add a layer to the map HOT 1
- Resizing map too fast causes to to completely break - D3DTextureResource.getResource() null HOT 8
- Did not opening WMS and getting error Slf4j HOT 3
- Change url local server OSM
- MapView crashes the Application after calling setCenter() HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mapjfx.