HTTP ajax 통신.
Example
var ugHttp = ugmp.uGisHttp.requestData( { url : '/sampleXML.xml', type : 'GET', dataType : 'XML', contentType : 'text/xml', data : { param1 : '1', param2 : '2' } } ); ugHttp.then( function(res) { console.log( res ); } );
Methods
-
Request Data.
Name Type Description opt_options
Object Name Type Description url
String URL 주소.
type
String GET or POST. Default is
GET
.data
Object 서버에 전송할 데이터.
contentType
String contentType 유형. Default is
application/x-www-form-urlencoded; charset=UTF-8
.dataType
String dataType 유형. Default is
XML
.dataViewId
String 지도의 View ID.
Returns:
deferred.promise