[OSM-dev] map disappear on YourS local installation
Anwar Azulfa
anwar at troyans.net
Thu Dec 22 15:36:53 GMT 2011
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 ?
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20111222/0d6de241/attachment.html>
More information about the dev
mailing list