[OSM-dev] map disappear on YourS local installation

Nic Roets nroets at gmail.com
Sat Dec 24 06:42:44 GMT 2011


On Thu, Dec 22, 2011 at 5:36 PM, Anwar Azulfa <anwar at troyans.net> wrote:

> i have checkout from
> http://svn.openstreetmap.org/applications/routing/yours/branches/version-1.0-via
>
> now, map is appear. but when i try to make routing, i get error again
>
>
> this is step which i did :
>
> 1. i following reference from http://wiki.openstreetmap.org/wiki/YOURS and
> checkout from http://svn.openstreetmap.org/applicatio … on-1.0-via<http://svn.openstreetmap.org/applications/routing/yours/branches/version-1.0-via>
>
> 2. i checkout gosmore source from http://svn.openstreetmap.org/applicatio
> … ng/gosmore <http://svn.openstreetmap.org/applications/rendering/gosmore>
>
> 3.download file .pak and rename to gosmore.pak.i put this file inside
> gosmore folder
>
> 4. i put YOURS/* to /var/www so i can acces it via browser with
> http://localhost
> now i can access map, but when i make a route from one location to another
> location and click find route, error message :Status: An unexpected error
> occured in Gosmore: appear
>
> i check on /var/log/apache2/error.log and i get this error message :
>
>  *[Thu Dec 22 22:29:48 2011] [error] [client 127.0.0.1] PHP Notice:
>  Undefined index: format in /home/maple/yours/api/1.0/gosmore.php on line
> 105, referer: http://localhost/*
>
> *nice: ./gosmore: No such file or directory*
>
> *
> *
>
> What should i do to solve this ?
>

Inside the gosmore folder, you should run

 ./configure
 make

Currently, gosmore will not compile with HEADLESS. I suggest you compile
with gtk+2 includes and libraries installed. Or you can check out a version
what is more than 3 months old.

It is also a good idea to test routing from the command line before you
test YOURS e.g.
QUERY_STRING="flat=52.396545&flon=4.915714&tlat=52.373075&tlon=4.901638&fast=0&v=motorcar"
./gosmore

Regards,
Nic


> Help me, please
>
>
>
> 2011/12/21 Anwar Azulfa <anwar at troyans.net>
>
>> I try install yours on my computer, i have followed reference from
>> http://wiki.openstreetmap.org/wiki/YOURS
>>
>> But when i access it via browser, i can't found any map.
>>
>> then i get idea to pointing js to my map on local computer because i have
>> own local tiles .
>>
>> I try to change init function on yournavigation.js with :
>>
>>
>>  function init() {
>>            var options = {
>>                 projection: new OpenLayers.Projection("EPSG:900913"),
>>                 displayProjection: new OpenLayers.Projection("EPSG:4326"),
>>                 units: "m",
>>                 maxResolution: 156543.0339,
>>                 maxExtent: new OpenLayers.Bounds(-20037508.34,
>> -20037508.34,
>>                                                  20037508.34,
>> 20037508.34),
>>                 numZoomLevels: 16,
>>                 controls: [
>>                         new OpenLayers.Control.Navigation(),
>>                         new OpenLayers.Control.PanZoomBar(),
>>                         new OpenLayers.Control.Permalink(),
>>                         new OpenLayers.Control.ScaleLine(),
>>                         new OpenLayers.Control.MousePosition(),
>>                         new OpenLayers.Control.KeyboardDefaults()
>>
>>                   ]
>>             };
>>         myFirstMap = new OpenLayers.Map("map",options);
>>         var newL = new OpenLayers.Layer.OSM("Default", "
>> http://localhost/osm_tiles3/${z}/${x}/${y}.png", {numZoomLevels: 19});
>>         map.addLayer(newL);
>>          if (!map.getCenter()) {
>>            var center = new OpenLayers.LonLat(116.97,-2.56);
>>             center.transform(options.displayProjection,
>> options.projection);
>>             map.setCenter(center, 5);
>>          }
>>
>>       }
>>
>>
>> But i stil l can't find map on it ?
>>
>>
>> What should i do to solve this ?
>>
>>
>> --
>> Regards,
>> M.Iftakhul Anwar
>>
>>
>>
>
>
> --
> Regards,
> M.Iftakhul Anwar
>
>
>
> _______________________________________________
> dev mailing list
> dev at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20111224/f3e8277f/attachment-0001.html>


More information about the dev mailing list