Hi Mark, thanks for this component!
OSM geocode work great, but I need to user Google geocode,
and here I have issue, I set APIKEY(its working on jsfidlle), but still not working.
Can you help please??
I used same code from example, only replaced OSM with Google:
@Override
protected void init(VaadinRequest request) {
VerticalLayout vl = new VerticalLayout();
vl.setSizeUndefined();
vl.setWidth("50%");
vl.setSpacing(true);
vl.setMargin(true);
final GoogleGeocoder geocoder = GoogleGeocoder.getInstance();
geocoder.setApiKey("my-working-google-api-key");
// final OpenStreetMapGeocoder geocoder = OpenStreetMapGeocoder.getInstance();
geocoder.setLimit(25);
final LocationTextField<GeocodedLocation> ltf = new LocationTextField<GeocodedLocation>(geocoder);
ltf.setCaption("Address: ");
ltf.setWidth("100%");
ltf.setInputPrompt("<<Enter Address>>");
//ltf.setAutoSelectionEnabled(false);
vl.addComponent(ltf);