本文整理汇总了Java中com.lynden.gmapsfx.javascript.object.GoogleMap类的典型用法代码示例。如果您正苦于以下问题:Java GoogleMap类的具体用法?Java GoogleMap怎么用?Java GoogleMap使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
GoogleMap类属于com.lynden.gmapsfx.javascript.object包,在下文中一共展示了GoogleMap类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: succeeded
import com.lynden.gmapsfx.javascript.object.GoogleMap; //导入依赖的package包/类
@Override
protected void succeeded() {
super.succeeded();
GeocoderGeometry geometry = getValue();
if (geometry != null) {
LatLong position = new LatLong(geometry.getLocation().getLat().doubleValue(), geometry.getLocation().getLng().doubleValue());
MarkerOptions markerOptions = new MarkerOptions();
markerOptions.position(position);
markerOptions.title(entry.getTitle());
Marker marker = new Marker(markerOptions);
GoogleMap map = createMap();
map.addMarker(marker);
map.setCenter(position);
map.panTo(position);
mapViewWrapper.setVisible(true);
Platform.runLater(() -> Platform.runLater(() -> map.setCenter(position)));
}
}
示例2: createMap
import com.lynden.gmapsfx.javascript.object.GoogleMap; //导入依赖的package包/类
public GoogleMap createMap(MapOptions mapOptions, boolean withDirectionsPanel) {
checkInitialized();
if (mapOptions != null) {
map = internal_createMap(mapOptions);
} else {
map = internal_createMap();
}
direc = new DirectionsPane();
if (withDirectionsPanel) {
map.showDirectionsPane();
}
map.addStateEventHandler(MapStateEventType.projection_changed, () -> {
if (map.getProjection() != null) {
mapResized();
fireMapReadyListeners();
}
});
return map;
}
示例3: createMap
import com.lynden.gmapsfx.javascript.object.GoogleMap; //导入依赖的package包/类
private GoogleMap createMap() {
MapOptions options = new MapOptions();
options.zoom(15)
.overviewMapControl(false)
.mapTypeControl(false)
.panControl(false)
.rotateControl(false)
.scaleControl(false)
.streetViewControl(false)
.zoomControl(false)
.mapType(MapTypeIdEnum.ROADMAP);
return mapView.createMap(options, false);
}
示例4: DirectionsRenderer
import com.lynden.gmapsfx.javascript.object.GoogleMap; //导入依赖的package包/类
public DirectionsRenderer(boolean drag, GoogleMap map, DirectionsPane panel){
super(GMapObjectType.DIRECTIONS_DISPLAY);
getJSObject().eval(getVariableName()+".setOptions({draggable:" +drag+"});");
getJSObject().eval(getVariableName()+".setMap("+map.getVariableName()+");");
getJSObject().eval(getVariableName()+".setPanel("+panel.getVariableName()+");");
}
示例5: setMap
import com.lynden.gmapsfx.javascript.object.GoogleMap; //导入依赖的package包/类
public void setMap(GoogleMap map){
if( map == null ) {
getJSObject().eval(getVariableName()+".setMap(null);");
} else {
getJSObject().eval(getVariableName()+".setMap("+map.getVariableName()+");");
}
}
示例6: setMap
import com.lynden.gmapsfx.javascript.object.GoogleMap; //导入依赖的package包/类
public void setMap(GoogleMap map) {
this.map = map;
}
示例7: internal_createMap
import com.lynden.gmapsfx.javascript.object.GoogleMap; //导入依赖的package包/类
@Override
protected GoogleMap internal_createMap() {
return new ClusteredGoogleMap();
}
示例8: getMap
import com.lynden.gmapsfx.javascript.object.GoogleMap; //导入依赖的package包/类
public GoogleMap getMap() {
checkInitialized();
return map;
}
示例9: internal_createMap
import com.lynden.gmapsfx.javascript.object.GoogleMap; //导入依赖的package包/类
protected GoogleMap internal_createMap() {
return new GoogleMap();
}