I use a math formula to transform lat and lon (sensitive data) in pixels.
Formula is hiden in php result is shown in javascript. But this method is
valid only for Image layers I think.
----- Original Message -----
From: "Nick Kendall" <n.e.kend...@gmail.com>
To: "Mihai Visan" <mis...@gmail.com>
Cc: "OpenLayers User list" <openlayers-users@lists.osgeo.org>
Sent: Thursday, December 09, 2010 4:00 PM
Subject: Re: [OpenLayers-Users] create vector layer from Mysql
How did you solve this?
Sent from my mobile device
On Dec 9, 2010, at 1:58 AM, "Mihai Visan" <mis...@gmail.com> wrote:
Thanks for advices, I think I can solved the problem.
Mihai
----- Original Message ----- From: "Michael" <m...@yachtpc.com>
To: <openlayers-users@lists.osgeo.org>
Sent: Tuesday, December 07, 2010 7:06 PM
Subject: Re: [OpenLayers-Users] create vector layer from Mysql
Simpler, and what I do, is just run a PHP script to query the database
and
write a file that contains the data. I do this only when the database
is
updated.
Javascript that directly queries mySQL is said to be a BAD thing....
m
On 12/7/2010 8:48 AM, David Fawcett wrote:
For Case 1: I believe that if you want to create a vector layer (on
the client side), you will have to send data in a format that someone
else will be able to read. In other words, if OpenLayers can
read/decode it, someone else will be able to do so also.
If you really want to only expose a picture of your data and not the
data itself, I recommend looking into creating your own WMS service
using OpenLayers to display the image of the data as returned by your
WMS.
David.
On Tue, Dec 7, 2010 at 10:06 AM, Mihai Visan<mis...@gmail.com> wrote:
Hi everybody,
This probably have been talk already but I wasn't a menber then.
I have 2 simple question:
Case 1:
Let's say I have a MySql table with some data that I don't want to
expose to
public. I know that I can read data from an xml, but xml files can be
"read"
by others and I don't want this. Is there a way I can create an Vector
layer
vith multiple data directly from an MySql querry?
Case 2:
I request dota shown in map (vectorl layers active or note with
different
data) from an form. What is the best way to comunicate betwen form and
OpenLayers Map?
Thanks for help,
By the way I stiil wait some help with my previos post: "custom Lat
and
Lon
display in wrap data line help needed"
Mihai
_______________________________________________
Users mailing list
us...@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users
_______________________________________________
Users mailing list
us...@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users
_______________________________________________
Users mailing list
us...@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users
_______________________________________________
Users mailing list
us...@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users