mapjfx 1.5.0 adds support for Bing Maps

I released mapjfx version 1.5.0, the artifact coordinates are:

  <dependency>
    <groupId>com.sothawo</groupId>
    <artifactId>mapjfx</artifactId>
    <version>1.5.0</version>
  </dependency>

The source is available at GitHub.

Now has support to display Bing Maps Road and Bing Maps Aerial, when an API Key is provided. More info and descriptions can be found here.

Comments and contributions welcome.

Jsoup and 403 error

In a project I was loading the title of a web page with the following call using the Jsoup library:

String htmlTitle = Jsoup
        .connect(url)
        .timeout(5000)
        .get()
        .title();

This was returning an error 403 on some webpages. I could fix that by passing along an useragent string:

String htmlTitle = Jsoup
        .connect(url)
        .timeout(5000)
        .userAgent("Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36")
        .get()
        .title();

I just took the actual value from my Chrom browser. It seems some sites are picky about clients not identifying themselves.