[mapserver-users] Is it possible to combine between openlayers script and mapfile?
Brent Fraser
bfraser at geoanalytic.com
Thu Feb 2 06:54:08 PST 2012
On 2/1/2012 9:53 PM, Vivaldi Al Barado wrote:
> Very thanks for your fast answer, Mr. Brent Fraser.
>
> I want to create a points using openlayers to describes realtime GPS
> tracking.
> But i want to insert the openlayers script into web tempate of the
> mapfile, can i do that?
Yes, but in most (all?) implementations OpenLayers is loaded only once
into your browser. It then makes requests to mapserver for data (i.e an
image on every pan and zoom). In the "old" way (without OpenLayers or
some similar JavaScript/Java package) of configuring mapserver,
mapserver would deliver HTML, images, etc to render the entire interface
on every pan and zoom. I don't think many people use it this way
anymore since browsers are a lot more capable, but you can configure it
this way if you really want to.
Have a look at the OpenLayers examples. Use your browser's debugging
tool to see the conversation between OpenLayers and mapserver.
Note to Mapserver documenters: we need to update the Mapserver
Introduction (especially the "Anatomy...") to show the more modern AJAX
style implementation.
>
> If it were possible, what the effect when I zoom the map?
>
> Thanks for attention & your kindness
>
> Best regards
> Gozali
>
> ------------------------------------------------------------------------
> *From:* Brent Fraser <bfraser at geoanalytic.com>
> *To:* Vivaldi Al Barado <vivaldi_albarado at yahoo.com>
> *Cc:* "mapserver-users at lists.osgeo.org" <mapserver-users at lists.osgeo.org>
> *Sent:* Tuesday, January 31, 2012 11:34 PM
> *Subject:* Re: [mapserver-users] Want to create a dynamic GPS Tracking
> using MapServer
>
> Gozali,
>
> Due to the dynamic nature of the data, a spatial relational database
> such as PostGIS would be a good choice for the data storage. The
> tables would depend on which features are important to you (positions,
> tracks, etc).
>
> Populating the tables from GPS data would likely require some custom
> coding.
>
> There were a couple of sessions at FOSS4G 2007:
>
> http://www.foss4g2007.org/presentations/view.php?abstract_id=83
> http://www.foss4g2007.org/presentations/view.php?abstract_id=253
> Best Regards,
> Brent Fraser
>
> On 1/31/2012 1:37 AM, Vivaldi Al Barado wrote:
>>
>> Hi friends. I plan to create a map that can display the GPS tracking
>> dynamically.
>> For the best choice, what is needed to make GPS tracking dynamically
>> using MapServer? Please guide.
>> Thank you so much for your explanations and your kindness.
>>
>> Best Regards
>> Gozali
>>
>>
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org <mailto:mapserver-users at lists.osgeo.org>
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120202/e1dda8c0/attachment.htm>
More information about the MapServer-users
mailing list