Code Monkey home page Code Monkey logo

Comments (7)

sothawo avatar sothawo commented on August 12, 2024

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.

zcaudate avatar zcaudate commented on August 12, 2024

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.

sothawo avatar sothawo commented on August 12, 2024

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.

zcaudate avatar zcaudate commented on August 12, 2024

okay. thanks for the explanation.

from mapjfx.

sothawo avatar sothawo commented on August 12, 2024

I'll have a look at this now; let's see if it can be integrated

from mapjfx.

sothawo avatar sothawo commented on August 12, 2024

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.

bildschirmfoto 2019-03-02 um 18 00 47

from mapjfx.

zcaudate avatar zcaudate commented on August 12, 2024

thanks for taking your time to look into it. I really appreciate it.

from mapjfx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.