mirror of https://github.com/ehrudxo/GoMap.git
map.go doc updated. I will make application more accurate
parent
7310f478f2
commit
24ff172b9d
|
@ -23,6 +23,7 @@ func (c GoMap) Index() revel.Result {
|
||||||
return c.Render(maps)
|
return c.Render(maps)
|
||||||
}
|
}
|
||||||
//look at the Custom Result More.
|
//look at the Custom Result More.
|
||||||
|
//it would be change to WMS common Contoller.
|
||||||
|
|
||||||
func (c GoMap) Toilet() revel.Result {
|
func (c GoMap) Toilet() revel.Result {
|
||||||
var bbox,srs,widthStr,heightStr string
|
var bbox,srs,widthStr,heightStr string
|
||||||
|
@ -31,6 +32,7 @@ func (c GoMap) Toilet() revel.Result {
|
||||||
c.Params.Bind(&srs, "SRS")
|
c.Params.Bind(&srs, "SRS")
|
||||||
c.Params.Bind(&widthStr, "WIDTH")
|
c.Params.Bind(&widthStr, "WIDTH")
|
||||||
c.Params.Bind(&heightStr, "HEIGHT")
|
c.Params.Bind(&heightStr, "HEIGHT")
|
||||||
|
|
||||||
splited:=strings.Split(srs,"EPSG:")
|
splited:=strings.Split(srs,"EPSG:")
|
||||||
if(len(splited)>1){
|
if(len(splited)>1){
|
||||||
srsNo,_ = strconv.Atoi(splited[1])
|
srsNo,_ = strconv.Atoi(splited[1])
|
||||||
|
@ -68,3 +70,8 @@ func (c GoMap) Toilet() revel.Result {
|
||||||
}()
|
}()
|
||||||
return c.RenderFile(file, revel.Inline )//Not an attachment. But Who disconnect the file.
|
return c.RenderFile(file, revel.Inline )//Not an attachment. But Who disconnect the file.
|
||||||
}
|
}
|
||||||
|
// I would like to add Function that model can be loaded automatically.
|
||||||
|
// and database would be pluggable
|
||||||
|
func (c GoMap) Toilet() revel.Result {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
//It will be deleted
|
||||||
package models
|
package models
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
|
|
Loading…
Reference in New Issue