Changes between Version 1 and Version 2 of maestro/UserGuides/VectorLayerEditor
- Timestamp:
- 05/04/09 00:50:20 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
maestro/UserGuides/VectorLayerEditor
v1 v2 27 27 A feature in MapGuide can also have a link. If the user pauses the mouse over a feature with a link, they will recieve a message that indicates they can open the link. If you type in a string like: 28 28 {{{ 29 "http://osgeo.mapguide.org/" 29 'http://osgeo.mapguide.org/' 30 30 }}} 31 31 all features will point to the same page. 32 32 If you type in the name of a column, then that columns value will be used as the link. You can build more complex links by using the + operator: 33 33 {{{ 34 'URL' + "?ID=" + 'ID' 34 "URL" + '?ID=' + "ID" 35 35 }}} 36 36 If a feature has the values: URL = "http://osgeo.mapguide.org" and ID = "7", the link becomes "http://osgeo.mapguide.org?ID=7". A slightly more robust but less obvious way is to use the "concat" function: 37 37 {{{ 38 CONCAT(CONCAT( 'URL', "?ID="), 'ID')38 CONCAT(CONCAT("URL", '?ID='), "ID") 39 39 }}} 40 40 The two statements produce the same results, but the latter is required for some providers. If you click the "..." button at the end, you will see an incomplete editor that basically gives you a bigger text area to type in. … … 42 42 The "Tooltip" field is subject to the same rules as the "Link" field, but will result in a tooltip the user can see. You may build a html fragment rather than a simple string. Such a html fragment can include an image like this: 43 43 {{{ 44 "<b>Preview:</b><br/><img src='http://mapguide.osgeo.org/sites/all/themes/osgeo/logo.png?ID=" + 'ID' + "' />" 44 '<b>Preview:</b><br/><img src="http://mapguide.osgeo.org/sites/all/themes/osgeo/logo.png?ID=' + "ID" + '" />' 45 45 }}} 46 46