Create a Web Layout
Use the Publish To Infrastructure Map Server command in AutoCAD Map 3D toolset to publish your map components and to create web layouts.
The Web layout you create for the project is based on the current display model. When you are logged in as an administrator, and you publish your project for the first time, and if no Web layout has been assigned before, you can specify which type of Web layout to use: Basic Web Layout, Flexible Web Layout, or No Layout.
- Basic Web Layout — Employs a basic AJAX based framework developed by the open source geospatial community.
- Flexible Web Layout — Employs an advanced Fusion based framework that supports a variety of widgets.
Assign a Default Web Layout
In Infrastructure Application Extension, you can use several display models to display your map. Display models are assigned to Infrastructure Application Extension automatically. If a display model contains several maps, publish each map to a separate folder.
If a display model contains several maps, you publish each display model map to a separate Map Definition. You publish each display model map into a different folder. See also To Create a Basic Web Layout.
Usually, you have a separate Plot display model that is used to display the plot features, such as the frame, north arrow, legend, or scalebar. You can publish it to Map Server separately.
You can view the assigned display model for the current map.
Create and Use URL Login Parameters
Use the urlaction.aspx and its parameters to start Infrastructure Application Extension. Using the parameters you specify the following actions:
- Login: ACTION=LOGIN&<parameters>
- Logout: ACTION=LOGOUT
- Zoom via FIDs: ACTION=ZOOM&FIDS=<fid,fid>&HIGHLIGHT=True&FACTOR=<factor>&MARK=True
- Zoom via bounding box: ACTION=ZOOM&BBOX=<coordinates>
- Draw temporary points: ACTION=MARK&POINTS=<coordinates>
All parameters can either be passed in the URL via GET method or by submitting a form via POST method. Using the POST method, you can handle larger data sets, and meet higher security requirements.
URL Parameters to Log In
Use the URL parameters to specify the system user, system user password, user, user password, service, and project .
- MAPSYS_USER
- MAPSYS_PWD
- SERVICE
- USER
- PWD
- PROJECT
The login parameters are required only at the first call. Following calls reuse the parameters of the existing Infrastructure Application Extension session.
Example:
http://localhost/mapserver2022/appext/urlaction.aspx?ACTION=LOGIN &MAPSYS_USER=MAPSYS &MAPSYS_PWD=mapsys &USER=Administrator &PWD= &SERVICE=ORCL &PROJECT=APPEXT
URL Parameters to Log Out
Call the Logout action before you perform actions with a different user or project, for example:http://localhost/mapserver2022/appext/urlaction.aspx?ACTION=LOGOUT
URL Parameters to Zoom via Feature IDs
http://localhost/mapserver2022/appext/urlaction.aspx?MAPSYS_USER=MAPSYS &MAPSYS_PWD=mapsys&USER=Administrator&PWD=&SERVICE=ORCL&PROJECT=APPEXT &ACTION=ZOOM &FIDS=3503%2C3890 &HIGHLIGHT=True &FACTOR=1.5 &MARK=True
- FIDS= lists the feature IDs, separated by a comma.
- HIGHLIGHT= Optionally highlights the specified features in the map.
- FACTOR= Optionally sets a magnification factor by which the map extend will be multiplied.
- SCALE= Optionally specifies the scale of the map. If both SCALE and FACTOR are provided, SCALE is ignored. If no SCALE is specified, the scale of the current map applies.
- MARK= Optionally adds a symbol to mark the specified features.
URL Parameters to Zoom via Bounding Box
http://localhost/mapserver2022/appext/urlaction.aspx?MAPSYS_USER=MAPSYS &MAPSYS_PWD=mapsys&USER=Administrator&PWD=&SERVICE=ORCL&PROJECT=APPEXT &ACTION=ZOOM &BBOX=687486%2C335868%2C687544%2C335916
- CRS= Optionally specifies the coordinate system code.
- BBOX= Specifies the 2D bounding box to zoom. Can either be minX,minY,maxX,maxY coordinates of a rectangle, or X1,Y1,X2,Y2,…,Xn,Yn(,X1,Y1) values that specify a polygon.
URL Parameters to Draw Marker Points
http://localhost/mapserver2022/appext/urlaction.aspx?MAPSYS_USER=MAPSYS &MAPSYS_PWD=mapsys&USER=Administrator&PWD=&SERVICE=ORCL&PROJECT=APPEXT &ACTION=MARK &POINTS=687575.139%2C335793.35%2C687562.656%2C335944.721 &ZOOMTO=True &MARKING=On
- CRS= Optionally specifies the coordinate system code
- POINTS= Specifies the point coordinates (p1.x,p1.y,p2.x,p2.y,p3.x,p3.y)
- ZOOMTO= Optionally specifies whether a zoom is applied.
- TOLERANCE= When MARKING is off, optionally specifies a tolerance of unmarking.
- MARKING= Optionally unmarks points (MARKING=OFF).
Steps in this workflow: