January 2006
AppforMap Application
Posted by admin on January 25, 2006 in web client
วันนี้จะทำการลง Mapserver Client ใหม่ อะนะครับ
AppforMap Application
การลงก็ไม่ยากอะไรเป็นแค่ Web Map Client Application ก็ extract ไว้ใน htdocs path
จากนั้นต้องทำการแก้ไข้ไฟล์
maplinkconfig.php ซี่งอยู่ใน conf/ directory
โดยค่าที่สำคัญคงเป็นค่า
workingDirworkingDir and imageUrl
$workingDir=”C:/ms4w/tmp/ms_tmp/”;$imageUrl=”http://localhost/ms_tmp/”;//url to the map image.
อีกทั้งต้องทำการแก้ไข IMAGEURL ใน mapfile ให้เป็นในลักษณะ http:// เช่นเดียวกันด้วย
แล้วยังต้องมีการไปแก้ไขไฟล์
browserconfig.xml
เพื่อทำให้สามารถใช้ควบคุมการกำหนดการเปิด ปิด Layer ได้
แต่ทั้งนี้ทั้งนั้นจำเป็นต้องทำการแก้ไข php.ini ให้เปลี่ยนแค่ register_globals=on ด้วยไม่เช่นนั้นก็ใช้ไม่ได้
และหากยังต้องทำการปรับแก้ไขไฟล์refmapconfig.php
ที่เป็นตัวควบคุมของ Reference map ด้วย โดยต้องแก้ไข Extent ของภาพที่้ใชได้
ข้อแนะนำ
ส่วนใหญ่ การอ้างอิงถึงในตัวแปรให้ใช้ค่า Actual path
