Comments (2)
Hi,
The MainApp file in com.lynden.gmapsfx includes numerous bits of code.
One of these is the code below that assigns a click handler to the map
and creates a LatLong object, setting the text of a label as a result:
map.addUIEventHandler(UIEventType.click, (JSObject obj) -> {
LatLong ll = new LatLong((JSObject) obj.getMember("latLng"));
//System.out.println("LatLong: lat: " + ll.getLatitude() + " lng: "
- ll.getLongitude());
lblClick.setText(ll.toString());
});
Cheers,
Geoff
On 21/03/2016 4:10 PM, deepsidhu1313 wrote:
Hi,
I was experimenting with the code. May i know, how can i get latitude
and longitude of the location where i click on map ??And thanks for the nice project 😄 !!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#51
from gmapsfx.
Thanks that solved the problem !!! 😃
from gmapsfx.
Related Issues (20)
- 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
- JavaFX WebView no longer works with Google Maps JS sdk HOT 2
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.