[maplab-users] links from map to jpg

charley cheng chengcharlie2003 at yahoo.ca
Fri Jul 30 11:43:03 EDT 2004


Thanks. It is what I need to know!
 
Charlie

Zak James <zak-ms at hoppsan.org> wrote:
Hi Charley,

Sorry about that. I realized after my post that I wasn't very clear on 
that point. The generated applications use mapscript to set up the 
query results in the file 
maplab/htdocs/gmapfactory/templates/app_query.phtml so you would have 
to modify the php code there to treat an attribute field containing a 
reference to the jpeg differently (format it as an img tag or a url, 
for instance). If you have already generated your gmapfactory 
application, you can modify the query.phtml file in the project - it is 
just copied from the gmapfactory app_query.phtml file when you start a 
project.

GMapfactory doesn't support this kind of customization so you are going 
to have to do some digging in the mapscript and php documentation to 
figure this out.

zak
--
Zak James
Applications and Software Development
DM Solutions Group Inc.
http://www.dmsolutions.ca


On Jul 30, 2004, at 11:07 AM, charley cheng wrote:

> Hi Good morning! Zak,
>
> Could you give a little more detatiled explaination of how to place 
> special query template in maplab?
> I tried it, however, maplab does not read the query template as query 
> template works in mapserver. Whatever template value ( ttt, 
> ttt_query.html or file path and myquery.html with image tag inside) I 
> put in the template of layer in maplab, query button i give the all 
> attributes in the shapefile attribute table for the point I queried, 
> which is generated by query.phtml in Gmapfactory.
>
> Thank you very much again!
>
> Charlie
>
> MGIS Canadiate
> Department of Geography
> University of Calgary
> E-mail: chengcharlie2003 at yahoo.ca or lcheng at ucalgary.ca
>
>
> Zak James wrote:
> Kenneth,
>
> You will need to add some symbols to the generated symbol file that
> reference gif or png thumbnails of the jpeg images (make them type
> PIXMAP). Then they can be used as point symbols. If you make up a
> special html query template for your application that has an image tag
> for the corresponding full jpeg file, it can be displayed when you
> query the point. Your query template would have to be set in the layers
> that had used the pixmap symbols and placed relative to the map file in
> the generated gmapfactory application.
>
> This has definitely been done before; maybe some other users can
> provide detailed information. You could also look through the archives
> for the mapserver-users list as this is not maplab specific.
>
> zak
> --
> Zak James
> Applications and Software Development
> DM Solutions Group Inc.
> http://www.dmsolutions.ca
>
>
> On Jul 30, 2004, at 7:28 AM, Kenneth Slot wrote:
>
>> I have a problem with my mapserver using maplab.
>>
>> I have a layer called pics.shp containing hyperlink to some jpg files.
>> and
>> the coordinates from where the picture was taken.
>>
>> I would like the points to be listet in my map with a special icon, 
>> not
>> the standard listed in maplab, but with the typical jpg icon so you
>> can se
>> its a picture, is this possible, and how?
>> Next i would like it to be possible to click on the icon in the map 
>> and
>> get the choosen picture downloadet in a new window. Has any one done
>> these two things?
>>
>>
>>
>>
>>
>> Thanks!
>>
>> Kenneth Slot_______________________________________________
>> Maplab-users mailing list
>> Maplab-users at lists.maptools.org
>> http://lists.maptools.org/mailman/listinfo/maplab-users
>
> _______________________________________________
> Maplab-users mailing list
> Maplab-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/maplab-users
>
>
>
> ---------------------------------
> Post your free ad now! Yahoo! Canada Personals
> _______________________________________________
> Maplab-users mailing list
> Maplab-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/maplab-users




---------------------------------
Post your free ad now! Yahoo! Canada Personals
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/maplab-users/attachments/20040730/231dff9a/attachment-0001.htm


More information about the Maplab-users mailing list