You are here

leelight's blog

Google Maps is not available on Amazon tablet devices

Blog Terms: 

Google Maps is not available on Amazon tablet devices, if you need map, Amazon Maps API is required to be migrated.

Ref:
https://developer.amazon.com/sdk/maps/migrating.html

cloudmade, a company to offer geocode, map tile cache, routing service

Blog Terms: 

http://cloudmade.com/

A company to offer geocode, map tile cache, routing service.
Can be used with OSM android SDK.

Ref:
http://code.google.com/p/osmdroid/wiki/HowToUseJar

Build JBoss AS 7.1.2.Final

Blog Terms: 

In one project Jboss EAP 6.0.0 was required, but it is commercial product from Red Hat, before i get the lisence from Red Hat, i need go on working. Jboss EAP 6.0.0 was built on base of JBoss AS 7.1.2.Final , only a little bit different in Branch.

But there is no built version for JBoss AS 7.1.2.Final in Jboss website:
http://www.jboss.org/jbossas/downloads/
https://repository.jboss.org/nexus/content/groups/public/org/jboss/as/jboss-as-dist/

What i can find is the source code in GIT:
https://github.com/jbossas/jboss-as/tree/7.1.2.Final

Sailfish OS

The Sailfish OS is a mobile-optimized operating system, baseed on Linux core, support Qt™ platform, and you can develop Android, QT, and HTML5 app for it.

This new mobile OS will release its first phone in China.

https://sailfishos.org/

Tiled (Qt)

Blog Terms: 

Tiled (Qt)
Maybe the source code can be used for GIS? Just mark here

http://www.mapeditor.org/
http://files.mapeditor.org/doxygen/files.html

Use different Symbol style in one layer (Geoserver)

Blog Terms: 

I have one layer in Geoserver, the data query is one table with geometry, there is one column named 'TYPE', which has 3 different type: 'rest', 'park', 'hotel'.
I need set 3 different color for this layer depends on 'TYPE', so custom SLD style should be defined in Geoserver like this:

  1. <?xml version="1.0" encoding="ISO-8859-1" ?>

How to install Postgre database into Xampp

Blog Terms: 

How to install pgsql into Xampp:

1. install pgsql under user/xampp/pgsql/9.1/
You can choose other version

and download phpPgAdmin as you will, copy it under user\xampp\phpPgAdmin

2. edit user\xampp\apache\conf\extra\httpd-xampp.conf

....

Alias /phppgadmin "user/xampp/phpPgAdmin/"

AllowOverride AuthConfig
Order allow,deny
Allow from all

3. edit user\xampp\phpPgAdmin\conf\config.inc.php

$conf['servers'][0]['host'] = 'localhost';

$conf['extra_login_security'] = false;

Error "Access-Control-Allow-Origin" At Android 4.1

One of my Android Hybrid HTML5 app does not work now at Android 4.1.0, but it worked fine on 3.0 and 4.0.

Issue:
The app call one WFS service from other server, this Ajax throw exception:

11-22 14:30:47.062: E/Web Console(734): XMLHttpRequest cannot load http://xxxx Origin null is not allowed by Access-Control-Allow-Origin. at null:1

Solution:

if (Build.VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN) //16
// yourwebview, i use phonegap here
super.appView.getSettings().setAllowUniversalAccessFromFileURLs(true);

Why:

Sencha Touch 2 Orientation problem in Android browser or Webview

Blog Terms: 

Issue:
Sencha Touch 2 was used in project and tested in Android browser or webview, when orietation is being changed, from landscape to portait or reverse, the layout will take the previous orietation's height, or half of the screen.

Solution:

Ext.setup({
viewport:{
autoMaximize:true},
onReady:function(){
Ext.Viewport.on('orientationchange', function() {
if (Ext.os.is.Android) {
Ext.Viewport.setSize(window.innerWidth,window.innerHeight);
}
});

......
}
...

Refer:

Pages

Subscribe to RSS - leelight's blog