[OpenLayers-Users] Openlayers.map with no div. Javascript on server side

Andreas Heckwolf andreas.heckwolf at menturagroup.com
Tue May 29 01:13:42 PDT 2012


Hello Alex,

I have no idea where your data is but naturally I would use a
geo-spatial database to do this. With one SQL-query you can find out if
your point is inside or ouside of a polygon. For example you could use
PostgreSQL and PostGis with JDBC in our servlet.

Cheers,
Andreas

On Mon, 2012-05-28 at 16:58 -0700, alexe100 wrote:
> Hi
> Is it possible to instantiate a openlayers.map object with no div?
> I am asking this question because of this:
> I have javascript file that constructs a openlayers.map with a function that
> tells me if a point is inside a polygon or not. All works good. 
> But i need that functionality (point is inside/outside a polygon) on server
> side, in a servlet.
> As far as i know, it is possible to run a javascript file on servlet. Now I
> am trying to execute the script file inside the servlet and ask the script
> if a point is inside or outside a polygon but I am having troubles in de
> first javascript instruction which is Openlayers.map(div). Now there is no
> div and i dont need it either.
> 
> How to build a map without providing a div object?
> 
> Thanks a lot
> 
> Alex
>  
> 
> --
> View this message in context: http://osgeo-org.1560.n6.nabble.com/Openlayers-map-with-no-div-Javascript-on-server-side-tp4977562.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users

-- 
\_________________________________________________________________
Dipl.-Ing. Andreas Heckwolf              Voice : +358 40 5847 445
  Mentura Group Oy                         Fax: +358 424480 800 
    Lönnrotinkatu 32 A 26 00180 Helsinki www.menturagroup.com



More information about the Users mailing list