Comments (8)
Are you still having this issue?
from gmapsfx.
I'm using GMapsFX for nearly one year with full satisfaction . But I am also facing the issue described here. I just upgraded to version 2.0.9, but the problem still persists. I tried to execute an additional (delayed) map refresh after map initialization, without success.
from gmapsfx.
@PSchmitzMo Are you using the core html file or one in your own jar? In a sample app I created to test images I'm able to load different images using MarkerImageFactory, including one from the local filesystem. It's a different process than specifying the image directly to the WebView/Javascript, but avoids the problems with WebView not being able to reference images in jars unless they're in the same folder as the html file. If you're having trouble could you post a bit of code so we can get an idea of where it might be going wrong? Thanks!
from gmapsfx.
Thank you for the analysis of my (quite minor) problem.
My experiences with your proposals:
- Images in the same folder as the html file:
The images are displayd. But my problem hasn't vanished: intially all markers display the same icon. After zooming the correct images are displayed.
- Loading images with MarkerImageFactory:
a) I use GMapFX 2.0.9
b) I used the MarkerImageFactory implementation committed on Dec. 15 on GitHub.
Icons are not displayed: I specified absolute paths on a drive D: and used the syntax "file:///D://image.png". I verified that "D://image.png" is a valid path.
Execution of createMarkerImageFromFile() does not run into an exception.
Snippet of my code:
markerOptions.position( new LatLong(x,y) )
.visible(Boolean.TRUE)
.icon( GMapsFXUtil.createMarkerImage( "file:///D:/myPath/image.png", "png") )
.title( title );
(GMapsFXUtil.java is a copy of MarkerImageFactory.java)
My conclusion: My problem is not related to 'image files cannot be found or are wrongly referenced'. I assume that there is some initial mix-up of icons ? But I cannot find it in my code or in MarkerOptions.java.
from gmapsfx.
I have the same problem. When Placing different types of markers on the map initially they are messed up (not correct markers are shown for locations). Zooming in or out refreshes the map and solves the problem.
from gmapsfx.
Is it possible to execute 'Zooming in or out' programmatically on map initialisation in a way that it is not noticed by the user? I didn't succeed.
from gmapsfx.
One solution is to add markerOptions.animation(Animation.NULL) in order to display the right icons.
from gmapsfx.
Hi Mickael,
your advice solved my problem.
Thanks a lot!
Peter
from gmapsfx.
Related Issues (20)
- How to update marker in a thread
- How to suppress DirectionsService markers
- Polygons appearing "patchy" when added to map on Windows HOT 4
- ReferenceError: Can't find variable: LatLong<number> when I try to create new LatLong HOT 5
- Any way to use google.maps.geometry?
- White page after several restart of the application HOT 1
- Egsa87
- Unable to edit maven dependency
- GMapsFX application with Java 11 immediately exits HOT 1
- Markers not appearing.
- GmapsFx loading with a warning and not giving directions HOT 17
- ERROR com.lynden.gmapsfx.GoogleMapView - Error: User data directory [null (C:\Users\Admin\AppData\Roaming\application.Main\webview)] is already in use
- 4K Monitor resolution with windows zoom makes polyline jump
- Add InfoWindow to current click position
- Map not rendering (ReferenceError: Can't find variable: loadMapLibrary) HOT 2
- Maven artifacts in 2020 HOT 2
- usage error HOT 1
- JAVADOC Site not available HOT 1
- Map (v11.0.6) freezes on Java/FX 17.0.2 shortly after beeing initialized HOT 6
- Webkit used in JavaFX 18.0.1 breaks the library HOT 8
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 gmapsfx.