Re: [OpenLayers-Users] Die Erlaubnis für den Aufruf der Methode XMLHttpRequest.open wurde verweigert - PGRouting

2009-09-11 Thread Mehmet Sirin
Okay, i destroyed the error "undefined function" by installing the package php5-pgsql. Now everything works fine thank you kind regards mehmet shirin Am 12. September 2009 01:39 schrieb Mehmet Sirin : > Hi, thanks, It really seems to solve that problem! But now I got another > one: > Firebug need

Re: [OpenLayers-Users] Die Erlaubnis für den Aufruf der Methode XMLHttpRequest.open wurde verweigert - PGRouting

2009-09-11 Thread Mehmet Sirin
Hi, thanks, It really seems to solve that problem! But now I got another one: Firebug needs to POST to the server to get this information for url: http://localhost/OpenLayers/examples/routing2.php?startpoint=890544.23042729%206847095.3929257&finalpoint=893983.89669951%206848777.0075477&method=SPD&s

Re: [OpenLayers-Users] Die Erlaubnis für den Aufruf der Methode XMLHttpRequest.open wurde verweigert - PGRou ting

2009-09-11 Thread Andreas Hocevar
Hi, you have to run your application off a web server, not the file system. Du mußt deine Anwendung auf einem Webserver installieren, statt sie vom Dateisystem zu starten, d.h. du brauchst URLs, die mit http:// beginnen statt mit file:// lg Andreas. Mehmet Sirin wrote: > Hi, I got an error like

[OpenLayers-Users] Die Erlaubnis für den Aufruf der Methode XMLHttpRequest.open wurde verweigert - PGRouting

2009-09-11 Thread Mehmet Sirin
Hi, I got an error like "No access for for method XMLHttpRequest.open, when trying to calculate a route with pgrouting (data comes from postgis). Hi, derzeit versuche ich mich am Tutorial http://pgrouting.postlbs.org/wiki/WorkshopOL2.7andOSM bzw. habe schon alle dortigen Schritte ausgeführt. Nun, w

Re: [OpenLayers-Users] wrong location when load map on googlemap

2009-09-11 Thread truongpm
Thanks so much. I solved this problem. I wrong when defined EPSG:900913 on my mapserver. Because of in vietnam, we use VN2000 coordinator system. So change projection element in map file to "ellps=WGS84" "a=6378137" "rf=298.257223563" "datum=WGS84"

Re: [OpenLayers-Users] wrong location when load map on googlemap

2009-09-11 Thread Arnd Wippermann
Hi, Perhaps your polygons of the layer "SDE_Province50" are not in projection EPSG:900913? The OpenLayers code should be alright. Arnd -Ursprüngliche Nachricht- Von: users-boun...@openlayers.org [mailto:users-boun...@openlayers.org] Im Auftrag von truongpm Gesendet: Freitag, 11. Septemb

Re: [OpenLayers-Users] HELP!!! How implement Filter in WMS Layer

2009-09-11 Thread fsalas
Andreas, Thanks , but I am beginner and don't have information about this topic. Can you send me illustrative example or information. I using GeoServer and I like obtain dynamic maps with some condition. I try with this code but don't change the maps. mapa = new OpenLaye

Re: [OpenLayers-Users] wrong location when load map on googlemap

2009-09-11 Thread truongpm
Arnd Wippermann wrote: > > Hi, > > The parameter SRS and BBOX for the WMS layer are set through OpenLayers, > so > you don't need to set them. As you say your WMS is displayed in africa, it > is likely the BBOX=-220,-712631,3072800,384 the reason therefor. > It > is the area of north a

Re: [OpenLayers-Users] wrong location when load map on googlemap

2009-09-11 Thread Arnd Wippermann
Hi, The parameter SRS and BBOX for the WMS layer are set through OpenLayers, so you don't need to set them. As you say your WMS is displayed in africa, it is likely the BBOX=-220,-712631,3072800,384 the reason therefor. It is the area of north africa. Delete the two parameters. By the wa

[OpenLayers-Users] Dynamically refreshing a map built from a single image

2009-09-11 Thread ABB
Hello, I have a web service that returns a single PDF image from a given size/position. I'm trying to show a map with some zoom/move controls. I tried to use the OpenLayers.Layer.WMS layer type but my PDF image was automatically multiplied/resized and the layout was not acceptable. My guess is t

[OpenLayers-Users] wrong location when load map on googlemap

2009-09-11 Thread truongpm
Hi, I have small app to load wms map and display on top layer of google. This is my mapfile and html NAME "World wms test" STATUS ON SIZE 400 300 UNITS METERS SHAPEPATH "../data" IMAGECOLOR 255 255 255 WEB IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA "wms_title" "WMS

Re: [OpenLayers-Users] GeoJSON filter function

2009-09-11 Thread Adrián Ribao Martínez
Hello, you are right, my mail wasn't clear. Whant I wanted to do is change the icon of the feature in function of an attribute. I thought that the filter funcion would help me to do that but then I discovered this solution: var style = new OpenLayers.Style({ 'pointRadius': 10, 'exter

Re: [OpenLayers-Users] showing tooltip over a mapserver map

2009-09-11 Thread Christopher Schmidt
On Fri, Sep 11, 2009 at 07:27:36AM -0500, sunny74 wrote: > > Dear Friends, > > I need to show the name of cities as a tooltip on a map.The tooltip should > appear as soon as the mouse moves over a city.While I am able to fetch the > name of the city from the database I not very sure as to how to

Re: [OpenLayers-Users] GeoJSON filter function

2009-09-11 Thread Christopher Schmidt
On Fri, Sep 11, 2009 at 10:36:32AM +0200, Adrian Ribao wrote: > Hello, > > I'm trying to use GeoJSON Format but I can't make the filter function work. > Could someone give me an example please? You're trying to describe how you're trying to do something, instead of what you're trying to do. I rec

Re: [OpenLayers-Users] changing fonts in the layerswitcher

2009-09-11 Thread P Kishor
On Fri, Sep 11, 2009 at 1:13 AM, Andreas Hocevar wrote: > P Kishor wrote: >> is there a way to change the fonts in the layerswitcher control short >> of fiddling with the hard coded styles in LayerSwitcher.js >> loadContents method? >> > > Unfortulately not. But patches to move these style definit

Re: [OpenLayers-Users] changing fonts in the layerswitcher

2009-09-11 Thread P Kishor
On Fri, Sep 11, 2009 at 1:51 AM, Lehtonen, Mika wrote: > Hi, > > I did some changes a while ago with the following style definition because I > had too long layer names. I didn't have to mess up with the hardcode. Am I > not understanding the question? > >  .olControlLayerSwitcher { >            

[OpenLayers-Users] showing tooltip over a mapserver map

2009-09-11 Thread sunny74
Dear Friends, I need to show the name of cities as a tooltip on a map.The tooltip should appear as soon as the mouse moves over a city.While I am able to fetch the name of the city from the database I not very sure as to how to create and display the tooltip. Pls give the detailed javascript co

Re: [OpenLayers-Users] changing fonts in the layerswitcher

2009-09-11 Thread Andreas Hocevar
Hey Mika- Lehtonen, Mika wrote: > I did some changes a while ago with the following style definition > because I had too long layer names. I didn't have to mess up with the > hardcode. Am I not understanding the question? > > .olControlLayerSwitcher { > font-size: x-small !importan

[OpenLayers-Users] GeoJSON filter function

2009-09-11 Thread Adrian Ribao
Hello, I'm trying to use GeoJSON Format but I can't make the filter function work. Could someone give me an example please? Thank you very much! Regards, Adrián. ___ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users

Re: [OpenLayers-Users] using openlayers as map interfacefordownloading pdf maps

2009-09-11 Thread maning sambale
Arnd, Thanks! This worked without a hitch! On Thu, Sep 10, 2009 at 11:20 PM, Arnd Wippermann wrote: > Hi, > > Set extractStyles to false > > and add the following style to your layer after layer creation. It should > also be possible to declare the style in the layer constructor. > > var styleMa