Can't get images to display in Map Layer feature description
There is an option in the Map>Layer>Feature Description Editor to insert an image. We have an image associated for each address on this feature layer as well as a hyperlink. The images are stored on our local machine so am using Insert Image > entering URL for images on our local machine "http://myservername/mywebsite/resources/images/picture.jpg, but the image is not showing up. Any suggestions?
-
<img src="http://SERVERNAME/VIRTUALDIRECTORY/{PARK_STRUCTURE_IMAGES.FILENAME}" width="150" height="150"/>
/customer/servlet/servlet.FileDownload?file=00P6000000e88PdEAI
0 -
Images can be displayed in both the feature description and feature long description.
/customer/servlet/servlet.FileDownload?file=00P6000000e88PiEAI
0 -
Great - thanks for the help...still on the learning curve here so can I ask how you go about dynamically selecting the picture for the selected feature? I can insert a hyperlink without problem but to include the image dynamically in the Feature description I'm not having any luck (I can hard code the image but that gives me the same image for all selections) . I have a field in my feature layer called "Image1" that includes the full name of the image contained in the virtual directory - e.g. Field Name = Image1, actual image name in selected field = 111WilliamSt_1.JPG . I've put the actual image in http://SERVERNAME/VIRTUALDIRECTORY/111WilliamSt_1.JPG and then used the following Feature Description source
"{Provider}<br/>Program: {Housing_Program}<br/>Mandate: {Mandate}<br/>Address: {Address}<br/>Bedrooms: {Bedrooms}<br/><br/><img src="http://MYSERVER/VIRTUALDIRECTORY/{Image1}"/><br/>"
I know I'm missing something very simple here, just not finding it - thanks for any help!
0 -
Got it - forgot to declare a width and height and this was a large jpg!
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
4 Kommentare