epyks23,

only you will be able to see this map because it references services on 
localhost, which is your own computer. This is called a loopback 
address. Anyone using this html will connect to their own computer, 
which does not have your GeoServer. These requests will fail.

For anyone else to see this map, you will need to deploy your GeoServer 
instance on a server that others can access. You will also need to 
modify your service URLs (currently http://localhost:8080/geoserver/... 
) to use this new address.

If your desktop has an address that is visible to your audience and your 
firewall rules permit connections on port 8080, then just replace 
"localhost" with the fully-qualified host name of your desktop. On 
Windows you can deduce this from running "ipconfig /all".  Note that 
most corporate networks block port 8080 connections from the outside 
world. Serving content from your desktop is a bad idea because it 
becomes available whenever your computer is off. All serious content is 
delivered by dedicated services with high availability.

What are you trying to do? Are you trying to serve a map on a private 
network? Are you in a corporate environment? Do you have IT support who 
operate servers that might host your GeoServer? What is your situation 
and audience?

Kind regards,
Ben.

On 09/01/16 17:04, epyks23 wrote:
> Hi,
>
> I put the html, javascript and css in the www folder of the GeoServer data
> directory.
>
> www.PNG <http://osgeo-org.1560.x6.nabble.com/file/n5244351/www.PNG>
>
>
> Tile2.html <http://osgeo-org.1560.x6.nabble.com/file/n5244351/Tile2.html>
> ol3-layerswitcher.css
> <http://osgeo-org.1560.x6.nabble.com/file/n5244351/ol3-layerswitcher.css>
> ol3-layerswitcher.js
> <http://osgeo-org.1560.x6.nabble.com/file/n5244351/ol3-layerswitcher.js>
>
>
> Are you able to see it?
>
>
>
> --
> View this message in context: 
> http://osgeo-org.1560.x6.nabble.com/layerswitcher-js-and-adding-vector-data-from-Geoserver-tp5243249p5244351.html
> Sent from the GeoServer - User mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>

-- 
Ben Caradoc-Davies <[email protected]>
Director
Transient Software Limited <http://transient.nz/>
New Zealand

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to