Questions tagged «javafx-webengine»

3
Google Maps&JavaFX:单击JavaFX按钮后在地图上显示标记
当我单击JavaFX应用程序的按钮时,我一直试图在地图上显示标记。因此,发生的事情是当我单击该按钮时,将位置写入JSON文件,该文件将被加载到包含地图的html文件中。问题是,当我在浏览器中打开html页面时,它可以完美运行,但是JavaFX的Web视图中什么也没有发生,而且我也不知道为什么! 这是html文件: <!DOCTYPE html> <html> <head> <title>Simple Map</title> <meta name="viewport" content="initial-scale=1.0"> <meta charset="utf-8"> <style> /* Always set the map height explicitly to define the size of the div * element that contains the map. */ /*#map { height: 100%; }*/ #map{width:100%;height:100%;margin:auto;} /* Optional: Makes the sample page fill the window. …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.