[Geoserver-users] New to Geoserver plz help [Solved] How to place markers

Hi all,
I finally figured out a way to do what i wanted to and its working.
These are the steps i took.
1- Made a map i want to show to my customers.
2- Open it in "preview" save the opened file's code as say example.htm
(mainly openlayers script)
3- Edit the example.htm, Insert my php script, that does the trick.
4- Save the file as myexample.php in my webserver directory.
5- Access as http://mywebserver/example.php… :jumping:

ISSUES :
This way one issue that im having is, the "click on map to get info" feature
is not working.
Havent given it much thot yet.

i am uploading the example.php file so that you guys can improve it further.
http://www.nabble.com/file/p12689486/example.php example.php

Thanks to all the folks who replied to my post.
--
View this message in context: http://www.nabble.com/New-to-Geoserver-plz-help--Solved--How-to-place-markers-tf4447451.html#a12689486
Sent from the GeoServer - User mailing list archive at Nabble.com.

coderage ha scritto:

Hi all,
I finally figured out a way to do what i wanted to and its working.
These are the steps i took.
1- Made a map i want to show to my customers.
2- Open it in "preview" save the opened file's code as say example.htm
(mainly openlayers script)
3- Edit the example.htm, Insert my php script, that does the trick.
4- Save the file as myexample.php in my webserver directory.
5- Access as http://mywebserver/example.php… :jumping:

ISSUES :
This way one issue that im having is, the "click on map to get info" feature
is not working.
Havent given it much thot yet.

This is usually the javascript not being able to call back the site
because the php page is not served by the same host/port as geoserver.
To make this work you'll have to proxy geoserver inside apache/iis.
If using apache, mod_proxy is a solution.

See also:
http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#WhydoIneedaProxyHost
http://en.wikipedia.org/wiki/Same_origin_policy

Cheers
Andrea

Thanks Andrea, i will chek this out. Meanwhile more serious issue is the
disappearing markers when zoomin in. Kindly tell some solution for that.

kind regards
Code

aaime wrote:

coderage ha scritto:

Hi all,
I finally figured out a way to do what i wanted to and its working.
These are the steps i took.
1- Made a map i want to show to my customers.
2- Open it in "preview" save the opened file's code as say example.htm
(mainly openlayers script)
3- Edit the example.htm, Insert my php script, that does the trick.
4- Save the file as myexample.php in my webserver directory.
5- Access as http://mywebserver/example.php… :jumping:

ISSUES :
This way one issue that im having is, the "click on map to get info"
feature
is not working.
Havent given it much thot yet.

This is usually the javascript not being able to call back the site
because the php page is not served by the same host/port as geoserver.
To make this work you'll have to proxy geoserver inside apache/iis.
If using apache, mod_proxy is a solution.

See also:
http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#WhydoIneedaProxyHost
http://en.wikipedia.org/wiki/Same_origin_policy

Cheers
Andrea

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
View this message in context: http://www.nabble.com/New-to-Geoserver-plz-help--Solved--How-to-place-markers-tf4447451.html#a12697388
Sent from the GeoServer - User mailing list archive at Nabble.com.