Home Page

The list of supported map services

Back to Main Page

Google Map

Render Map using place name

Example:

[imgshow]q:name=gmap,center=Kuala Lumpur[/imgshow]
  		
[imgshow q:name=gmap,center=Kuala Lumpur]
  		
<?php
require_once 'class_imgshow.php';

$img = new imgshow();
echo $img->name('gmap')->p('center', 'Kuala Lumpur')->load();

?>  		
var imgshow = require('imgshow');

imgshow().name('gmap').p('center', 'Kuala Lumpur').load(function(result) {
	console.log(result);
});
  		
var imgshow = require('./imgshow.js');

var win = Ti.UI.createWindow({title:'Imgshow Client'});
var btn = Ti.UI.createButton({left:5,top:5,right:5,bottom:5,title:'Show Me Result'});
btn.addEventListener('click', function() {
	imgshow().name('gmap').p('center', 'Kuala Lumpur').load(function(result) {
		alert(result);
	});	
});  		
include('imgshow.js');

if(session.ready()) {
	session.answer();
	util.say('Please hold while we querying');
	
	imgshow().name('gmap').p('center', 'Kuala Lumpur').load(function(message) {
		util.say('the result is ' + message);
	});
}
  		

Visit Imgshow API Github Page for more information

Render Map using Latitude/Longitude

Example:

[imgshow]q:name=gmap,lat=x,lng=y[/imgshow]
  		
[imgshow q:name=gmap,lat=x,lng=y]
  		
<?php
require_once 'class_imgshow.php';

$img = new imgshow();
echo $img->name('gmap')->p('lat', 'x')->p('lng', 'y')->load();

?>  		
var imgshow = require('imgshow');

imgshow().name('gmap').p('lat', 'x').p('lng', 'y').load(function(result) {
	console.log(result);
});
  		
var imgshow = require('./imgshow.js');

var win = Ti.UI.createWindow({title:'Imgshow Client'});
var btn = Ti.UI.createButton({left:5,top:5,right:5,bottom:5,title:'Show Me Result'});
btn.addEventListener('click', function() {
	imgshow().name('gmap').p('lat', 'x').p('lng', 'y').load(function(result) {
		alert(result);
	});	
});  		
include('imgshow.js');

if(session.ready()) {
	session.answer();
	util.say('Please hold while we querying');
	
	imgshow().name('gmap').p('lat', 'x').p('lng', 'y').load(function(message) {
		util.say('the result is ' + message);
	});
}
  		

Visit Imgshow API Github Page for more information

Render Map with place and with paths (in red color)

Get a list of points <latitude,longitude>, each seperated by |.

[imgshow]q:name=gmap,lat=x,lng=y,path=x1|y1|x2|y2|x3|y3|x4|y4[/imgshow]
  		
[imgshow q:name=gmap,lat=x,lng=y,path=x1|y1|x2|y2|x3|y3|x4|y4]
  		
<?php
require_once 'class_imgshow.php';

$img = new imgshow();
echo $img->name('gmap')->p('lat', 'x')->p('lng', 'y')->p('path', 'x1|y1|x2|y2|x3|y3|x4|y4')->load();

?>  		
var imgshow = require('imgshow');

imgshow().name('gmap').p('lat', 'x').p('lng', 'y').p('path', 'x1|y1|x2|y2|x3|y3|x4|y4').load(function(result) {
	console.log(result);
});
  		
var imgshow = require('./imgshow.js');

var win = Ti.UI.createWindow({title:'Imgshow Client'});
var btn = Ti.UI.createButton({left:5,top:5,right:5,bottom:5,title:'Show Me Result'});
btn.addEventListener('click', function() {
	imgshow().name('gmap').p('lat', 'x').p('lng', 'y').p('path', 'x1|y1|x2|y2|x3|y3|x4|y4').load(function(result) {
		alert(result);
	});	
});  		
include('imgshow.js');

if(session.ready()) {
	session.answer();
	util.say('Please hold while we querying');
	
	imgshow().name('gmap').p('lat', 'x').p('lng', 'y').p('path', 'x1|y1|x2|y2|x3|y3|x4|y4').load(function(message) {
		util.say('the result is ' + message);
	});
}
  		

Visit Imgshow API Github Page for more information