[Geomoose-users] popup service
Brent Fraser
bfraser at geoanalytic.com
Mon Nov 19 07:25:48 PST 2012
I can't seem to get the popup icon to appear in v2.6 (*a bug?*). In
theory, you need to:
1. Add popups="true" to the layer definition in your mapbook, e.g.:
<layer title="Media" src="Media/all" status="off" legend="false"
show-legend="false" expand="true" fade="false"
unfade="false"*popups="true"*/>
Note the Popup icon appears under the legend entry in the catalog tab
because of the popups="true" setting on the layer.
2. Add a 'popups' METADATA object of the LAYER in the layer's mapfile:
METADATA
'identify_record' 'media_identify.html'
'popups' 'media_popups.html'
END
3. Create a Popup html template. Note for positioning the popup the
LAYER projection must be the same as the MAP projection
<!-- MapServer Template -->
<popup x="[shpmidx]" y="[shpmidy]" width="500" height="500">
<![CDATA[
<table>
<tr>
<td>Date:</td><td>[acquisition_date]</td>
</tr>
<tr>
<td colspan="2">[comments]</td>
</tr>
</table>
<img width="450" src="./data/media/[path]" alt="photo" />
]]>
</popup>
Best Regards,
Brent Fraser
On 11/19/2012 7:38 AM, moff mofire wrote:
> Hey guys,
>
> Do we have popup service in geomoose 2.6 ? I cant locate a nice
> documentation on how to configure it.
> any help ?
>
>
> _______________________________________________
> Geomoose-users mailing list
> Geomoose-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geomoose-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geomoose-users/attachments/20121119/a3b207df/attachment.html>
More information about the Geomoose-users
mailing list