[mapguide-users] RE: SPAM-LOW: Re: Tooltps and images

Andy Morsell amorsell at spatialgis.com
Thu May 24 12:12:40 EDT 2007


Here is the advanced view of the tooltip for the parcels layer (which
displays a parcel photo for every parcel) from this site:
http://mapguide.spatialgis.com/mapguide/spokanemaps/.  Paste this into the
advanced view and then look at it in the Builder.  From there you should be
able to replace with your own information.

concat('<br><div id=PADALimage style=width: 150px; height:113px><img
src=http://someurl/some_image_generation_page.aspx?imageWidth=150&PID=',
concat("PID", concat(' border=0 alt=Property Photo></div>', concat('\nParcel
ID: ', concat("PID", concat('\nOwner Name: ', concat("OWNER_NAME",
concat('\nAddress: ', "SITE_ADDRE"))))))))



Andy 

-----Original Message-----
From: mapguide-users-bounces at lists.osgeo.org
[mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Krunoslav
Sent: Wednesday, May 23, 2007 11:09 PM
To: mapguide-users at lists.osgeo.org
Subject: [mapguide-users] RE: SPAM-LOW: Re: Tooltps and images




Andy Morsell wrote:
> 
> Yes, images in the tooltip will not work with the DWF viewer.  They 
> work fine with the AJAX viewer and you do not need to modify the 
> ajaxmappane.templ file in any way to gain support for this.  Just put 
> a valid ' yoururl ' constant string into your tooltip definition and 
> it will obey the HTML.  Of course you can get more fancy and do things 
> like concatenate an ID from the feature so that the image is 
> dynamically determined.
> 

Hi Andy,

Could you give us an example of this? Here is my case: I have two
properties: Name and ID. Picture of the Name is in /pictures/$ID.jpg , where
$ID is ID of the Name. I would like tooltip to display Name at first row,
and below this row to display $ID.jpg

So, how would code for such example look like in Advanced Tooltip editor in
Studio? I tried few options, but my picture doesn't get displayed.
--
View this message in context:
http://www.nabble.com/Tooltps-and-images-tf3791131s16610.html#a10777960
Sent from the MapGuide Users mailing list archive at Nabble.com.

_______________________________________________
mapguide-users mailing list
mapguide-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users




More information about the mapguide-users mailing list