How I can show details a marker in openlayer through MapServer?

المشرف العام

Administrator
طاقم الإدارة
I have a problem but no solutions. Can you help me?

I have a mapfile read from shapefile:

MAP IMAGETYPE PNG EXTENT 779275 2222000 788430 2233835 SIZE 800 800 SHAPEPATH "/ms4w/apps/openlayers-3.8.2/Du Lieu Ban Do Bach Long Vy/Maps" IMAGECOLOR 190 232 255 FONTSET "/ms4w/apps/tutorial/fonts/fonts.list" SYMBOL NAME "circlef" TYPE ellipse FILLED true POINTS 10 10 END # POINTS END # SYMBOL LAYER NAME "chitieu_mt_Dau" TYPE POINT DUMP true DEBUG on STATUS on DATA chitieu_mt CLASSITEM "Dau" LABELITEM "Dau" CLASS STYLE SYMBOL "circlef" SIZE 16 COLOR 212 3 255 END LABEL COLOR 183 68 85 TYPE TRUETYPE FONT arial SIZE 12 TEXT (tostring([Dau],"%.2f")) POSITION AUTO PARTIALS FALSE MINDISTANCE 50 BUFFER 4 STYLE # since to version 6 GEOMTRANSFORM 'labelpoly' OFFSET 2 2 END # STYLE END # end of label END # end of CLASS END # end of LAYER END I have code javascript using Openlayer to show map through Mapserver:

Results received my code as shown:

now, I want to show all the points become the marker, and when you click on the marker, I received information of marker



But I do not have a solutions is I can not get the data lon, lat all the points in the shapefile



أكثر...
 
أعلى