L.TileLayer.WebGis = L.TileLayer.extend({
initialize: function (url, options) {
options = L.setOptions(this, options);
if (options.detectRetina && L.Browser.retina && options.maxZoom > 0) {
options.tileSize = Math.floor(options.tileSize / 2);
if (options.minZoom > 0) {
options.bounds = L.latLngBounds(options.bounds);
this._url = url + "/gis_render/{x}_{y}_{z}/" + options.userId + "/tile.png";