<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Thank for your answers Lorenzo and Raul, but I would like print the poligon when I print with the pdf in KAMAP.<BR>
<BR>
The contourn of index_query.html is very interesting, but if I can print it, It is no good for me.<BR>
<BR>
I would like an example for this code, because with my ka-map-ms4w-1.0.zip I haven't your example and index_query.html is not ok<BR>
<DIV> </DIV>
<DIV>Raul, Do you know the code (php_mapscript + javascript) for print the poligon when i print the map?</DIV>
<DIV> </DIV>
<DIV>Saludos, <BR>----------- <BR>Antonio García Benlloch <BR><BR><STRONG>Correo: <BR></STRONG>angarben@hotmail.com <BR><A href="mailto:angarben@aaa.upv.es">angarben@aaa.upv.es</A> <BR><BR><STRONG>Web: <BR></STRONG>http://personales.alumno.upv.es/~angarben</DIV><BR><BR><BR>
<BR>> From: ka-map-users-request@lists.maptools.org<BR>> Subject: ka-Map-users Digest, Vol 50, Issue 5<BR>> To: ka-map-users@lists.maptools.org<BR>> Date: Tue, 16 Jun 2009 12:00:02 -0500<BR>> <BR>> Send ka-Map-users mailing list submissions to<BR>> ka-map-users@lists.maptools.org<BR>> <BR>> To subscribe or unsubscribe via the World Wide Web, visit<BR>> http://lists.maptools.org/mailman/listinfo/ka-map-users<BR>> or, via email, send a message with subject or body 'help' to<BR>> ka-map-users-request@lists.maptools.org<BR>> <BR>> You can reach the person managing the list at<BR>> ka-map-users-owner@lists.maptools.org<BR>> <BR>> When replying, please edit your Subject line so it is more specific<BR>> than "Re: Contents of ka-Map-users digest..."<BR>> <BR>> <BR>> Today's Topics:<BR>> <BR>> 1. Re: kaMap - setTile function - uses openstreetmap servers.<BR>> (Ionut Muntean)<BR>> 2. Re: mode nquery in kamap (Lorenzo Becchi)<BR>> <BR>> <BR>> ----------------------------------------------------------------------<BR>> <BR>> Message: 1<BR>> Date: Mon, 15 Jun 2009 23:32:36 +0300<BR>> From: Ionut Muntean <ionut@muntean.ro><BR>> Subject: Re: [ka-Map-users] kaMap - setTile function - uses<BR>> openstreetmap servers.<BR>> To: Joe Franklin <traderboy@yahoo.com><BR>> Cc: ka-map-users <ka-map-users@lists.maptools.org><BR>> Message-ID: <4A36AFE4.7000507@muntean.ro><BR>> Content-Type: text/plain; charset="iso-8859-1"<BR>> <BR>> nope. at least i am not aware of any modified tile.php. life and need <BR>> put me to do this hack on setTile. the big challange was (for me) to put <BR>> azScales to match kaMap.<BR>> <BR>> kaMap display engine is fast and simple. nothing fancy, but very <BR>> functional. this is why i will use it as a starting point for displaying <BR>> tiles in my projects. so, if i can hack into the js code of kaMap, why <BR>> use tile.php? ... or openlayers ...<BR>> <BR>> this could become a layer such as wmslayer ... maybe sometime when i <BR>> have time or maybe someone else could do this ;)<BR>> <BR>> ionut<BR>> <BR>> Joe Franklin wrote:<BR>> > very cool. has anyone modified tile.php so it can accept x/y/z parameters instead of the top/left/scale parameters? then tile.php could be used instead of TileCache which is written in Python instead of PHP.<BR>> ><BR>> > joe<BR>> ><BR>> ><BR>> ><BR>> > --- On Mon, 5/25/09, Ionut Muntean <ionut@muntean.ro> wrote:<BR>> ><BR>> > <BR>> >> From: Ionut Muntean <ionut@muntean.ro><BR>> >> Subject: [ka-Map-users] kaMap - setTile function - uses openstreetmap servers.<BR>> >> To: "ka-map-users" <ka-map-users@lists.maptools.org><BR>> >> Date: Monday, May 25, 2009, 6:52 AM<BR>> >> kaMap - setTile function - uses<BR>> >> openstreetmap servers.<BR>> >><BR>> >> File that replaces init.php. Paste the code below in a file<BR>> >> on your <BR>> >> server and load it at run time instead of init.php.<BR>> >><BR>> >> /*init*/<BR>> >> aszScales = new <BR>> >> Array('110936068.18103503','55468034.09051751','27734017.045258757',<BR>> >> '13867008.522629378','6933504.261313272','3466752.130658053',<BR>> >> '1733376.0653290264','866688.0326645132','433344.0163322566',<BR>> >> '216672.008164711','108336.00408377283','54168.002041886415',<BR>> >> '27084.001020943208','13542.000510471604','6771.000253818478',<BR>> >> '3385.5001283265624','1692.7500655806048');<BR>> >> var mResolutions = new Array('156543.0339', '78271.51695',<BR>> >><BR>> >> '39135.758475', '19567.8792375', '9783.93961875',<BR>> >> '4891.969809375', <BR>> >> '2445.984904687',<BR>> >> <BR>> >> '1222.992452344',<BR>> >> '611.496226172', <BR>> >> '305.748113086', '152.874056543', '76.437028271',<BR>> >> '38.218514136', <BR>> >> '19.109257068',<BR>> >> <BR>> >> '9.554628534',<BR>> >> '4.777314267', '2.388657133', <BR>> >> '1.194328567', '0.597164284');<BR>> >> var map = new <BR>> >> _map({name:'Terra',title:'World',currentScale:2,units:3,resolution:72,version:'3',scales:aszScales,<BR>> >><BR>> >> resolutions:mResolutions});<BR>> >> map.setDefaultExtents(-20037508.34, -200037508.34,<BR>> >> 200037508.34, <BR>> >> 200037508.34);<BR>> >> map.setBackgroundColor('rgb(244,244,234)');<BR>> >> map.addLayer(new _layer( { <BR>> >> name:'Terra',visible:true,opacity:100,imageformat:'png',queryable:false,tileSource:'auto',redrawInterval:-1,refreshInterval:-1,scales:<BR>> >><BR>> >> new <BR>> >> Array('1','1','1','1','1','1','1','1','1','1','1','1','1','1','1','1','1')}));<BR>> >> this.addMap( map );<BR>> >> this.tileWidth=256;<BR>> >> this.tileHeight=256;<BR>> >> this.server = 'http://xxx.xxx.xxx/';<BR>> >> this.tileURL = 'http://a.tile.osm.dmtech.ro/tiles/';<BR>> >> this.cacheURL = 'http://localcache.xxx.xxx/tiles/';<BR>> >> this.selectMap('Terra');<BR>> >><BR>> >><BR>> >> Replace setTile with the function below.<BR>> >><BR>> >> _layer.prototype.setTile = function(img) {<BR>> >> var tforce = _settings.alwaysForceDraw;<BR>> >> if (arguments.length == 2)<BR>> >> tforce = true;<BR>> >> var mercExtents = new<BR>> >> Array('-20037508.34', '20037508.34');<BR>> >> var zIdx = (this._map.currentScale + 2);<BR>> >> // osm zooms are from 0 to <BR>> >> 18. azScales contains only calculated scales from 2 to 18<BR>> >> ...<BR>> >> var res = this._map.resolutions[zIdx];<BR>> >> var km = this._map.kaMap;<BR>> >> var left = km.cellSize *<BR>> >> (safeParseInt(img.style.left) + km.xOrigin);<BR>> >> var top = -1 * km.cellSize *<BR>> >> (safeParseInt(img.style.top) + km.yOrigin);<BR>> >> var right = left + km.cellSize *<BR>> >> km.tileWidth;<BR>> >> var bottom = top - km.cellSize *<BR>> >> km.tileHeight;<BR>> >> if (left < mercExtents[0] || left ><BR>> >> mercExtents[2] || top < <BR>> >> mercExtents[0] || top > mercExtents[1]) return false;<BR>> >> var limit = Math.pow(2, zIdx);<BR>> >> var x = Math.round((left -<BR>> >> mercExtents[0]) / (res * km.tileWidth));<BR>> >> var y = Math.round((mercExtents[1] - top)<BR>> >> / (res * km.tileHeight));<BR>> >> if (y < 0 || y >= limit) return<BR>> >> false;<BR>> >> x = ((x % limit) + limit) % limit;<BR>> >> if (tforce) {<BR>> >> var src = this._map.kaMap.tileURL +<BR>> >> zIdx + '/' + x + '/' + y + '.png';<BR>> >> } else {<BR>> >> var src = this._map.kaMap.cacheURL +<BR>> >> zIdx + '/' + x + '/' + y + <BR>> >> '.png';<BR>> >> }<BR>> >> if (img.src != src) {<BR>> >> img.style.visibility =<BR>> >> 'hidden';<BR>> >> img.src = src;<BR>> >> }<BR>> >> };<BR>> >><BR>> >><BR>> >><BR>> >> Have fun!<BR>> >> Ionut Muntean<BR>> >><BR>> >><BR>> >> _______________________________________________<BR>> >> ka-Map-users mailing list<BR>> >> ka-Map-users@lists.maptools.org<BR>> >> http://lists.maptools.org/mailman/listinfo/ka-map-users<BR>> >><BR>> >> <BR>> ><BR>> ><BR>> > <BR>> ><BR>> > <BR>> <BR>> -------------- next part --------------<BR>> An HTML attachment was scrubbed...<BR>> URL: http://lists.maptools.org/pipermail/ka-map-users/attachments/20090615/c61a760d/attachment-0001.htm <BR>> <BR>> ------------------------------<BR>> <BR>> Message: 2<BR>> Date: Tue, 16 Jun 2009 00:21:33 +0200<BR>> From: Lorenzo Becchi <lorenzo@ominiverdi.com><BR>> Subject: Re: [ka-Map-users] mode nquery in kamap<BR>> Cc: ka-map-users@lists.maptools.org<BR>> Message-ID: <4A36C96D.4020100@ominiverdi.com><BR>> Content-Type: text/plain; charset=ISO-8859-1; format=flowed<BR>> <BR>> there's part of what you're looking for already in kaMap.<BR>> http://ominiverdi.org/ka-map/ka-map/htdocs/index_query.html<BR>> try to adjust to your needing<BR>> lorenzo<BR>> <BR>> <BR>> raul retamozo wrote:<BR>> ><BR>> > Hi, If you are working with mapserver in KaMap you can obtain the same <BR>> > effect. Take note that KaMap is just an interface so you can code with <BR>> > php_mapscript + javascript, improving Kamap to get the effect. <BR>> ><BR>> > Si estas trabajando con Mapserver en KaMapa puedes obtener el mismo <BR>> > efecto. Kamap No es otro Mapserver,es solo una interfaz, Solo debes <BR>> > codificar algo de php_mapscript y javascript.<BR>> ><BR>> > *Ra?l Retamozo ***<BR>> > ** <BR>> ><BR>> ><BR>> ><BR>> ><BR>> > ------------------------------------------------------------------------<BR>> > From: angarben@hotmail.com<BR>> > To: ka-map-users@lists.maptools.org<BR>> > Date: Sun, 14 Jun 2009 08:27:11 +0000<BR>> > Subject: [ka-Map-users] mode nquery in kamap<BR>> ><BR>> > In Mapserver when I query about a layer, I obtain a image of the map <BR>> > with the query object in red. How can I obtain this efect with Kamap? <BR>> > <BR>> > En castellano:<BR>> > <BR>> > En mapserver cuando consultas sobre una parcela se genera una imagen <BR>> > del mapa con esa parcela en rojo. ?Como puedo obtener este efecto en <BR>> > Kamap?<BR>> ><BR>> > Saludos,<BR>> > -----------<BR>> > Antonio Garc?a Benlloch<BR>> ><BR>> > *Correo:<BR>> > *angarben@hotmail.com<BR>> > angarben@aaa.upv.es <mailto:angarben@aaa.upv.es><BR>> ><BR>> > *Web:<BR>> > *http://personales.alumno.upv.es/~angarben <BR>> > <http://personales.alumno.upv.es/%7Eangarben><BR>> ><BR>> > ------------------------------------------------------------------------<BR>> > Diferentes formas de estar en contacto con amigos y familiares. <BR>> > Desc?brelas. Desc?brelas. <BR>> > <http://www.microsoft.com/windows/windowslive/default.aspx><BR>> ><BR>> > ------------------------------------------------------------------------<BR>> > Nuevo Windows Live, un mundo lleno de posibilidades Desc?brelo. <BR>> > <http://www.microsoft.com/windows/windowslive/default.aspx><BR>> > ------------------------------------------------------------------------<BR>> ><BR>> > _______________________________________________<BR>> > ka-Map-users mailing list<BR>> > ka-Map-users@lists.maptools.org<BR>> > http://lists.maptools.org/mailman/listinfo/ka-map-users<BR>> > <BR>> <BR>> <BR>> ------------------------------<BR>> <BR>> _______________________________________________<BR>> ka-Map-users mailing list<BR>> ka-Map-users@lists.maptools.org<BR>> http://lists.maptools.org/mailman/listinfo/ka-map-users<BR>> <BR>> <BR>> End of ka-Map-users Digest, Vol 50, Issue 5<BR>> *******************************************<BR><br /><hr />Nuevo Windows Live, un mundo lleno de posibilidades <a href='http://www.microsoft.com/windows/windowslive/default.aspx' target='_new'>Descúbrelo.</a></body>
</html>