Jump to content


Photo

Geo2Json-Map-Problem


  • Please log in to reply
15 replies to this topic

#1 @vid@vi

@vid@vi

    New Member

  • Members
  • Pip
  • 5 posts
  • Gender:Male
  • Location:Delhi (India)
  • Interests:Everything related to computers and technology plus chess plus being cool.!!!

Posted 08 September 2012 - 10:35 PM

Refer to page-113.I wrote everything well, the program is working good, but when i opened the map.html webpage, my coordinates aren't showin..,i just get the default coordinate (that is something with speed=21) i have placed my output.json file and the map.html page in the same folder, even the code and .exe file is also on the same folder.

Refer to page-135. Also the Bermuda tool piped with geo2json tool isn't showin up as expected, its the same output i am gettin.

i have attached the screen print of my gpsapp directory. (the concerned directory)

Attached Files


VENI VEDI VINCI
(I came, I saw, I conquered)

#2 rubenpgarcia

rubenpgarcia

    New Member

  • Members
  • Pip
  • 1 posts

Posted 20 September 2012 - 08:56 PM

Refer to page-113.I wrote everything well, the program is working good, but when i opened the map.html webpage, my coordinates aren't showin..,i just get the default coordinate (that is something with speed=21) i have placed my output.json file and the map.html page in the same folder, even the code and .exe file is also on the same folder.

Refer to page-135. Also the Bermuda tool piped with geo2json tool isn't showin up as expected, its the same output i am gettin.

i have attached the screen print of my gpsapp directory. (the concerned directory)



I had the same problem until I zoomed in. Try zooming in on it.

Edited by rubenpgarcia, 20 September 2012 - 08:58 PM.


#3 @vid@vi

@vid@vi

    New Member

  • Members
  • Pip
  • 5 posts
  • Gender:Male
  • Location:Delhi (India)
  • Interests:Everything related to computers and technology plus chess plus being cool.!!!

Posted 28 October 2012 - 05:42 AM

Its not working, even after zooming.
can you write the steps of what you did?

p.s- i am downloading the map application webpage by doing right click and save as.

Edited by @vid@vi, 28 October 2012 - 05:55 AM.

VENI VEDI VINCI
(I came, I saw, I conquered)

#4 kgashok

kgashok

    New Member

  • Members
  • Pip
  • 2 posts

Posted 30 October 2012 - 09:20 PM

Refer to page-113.I wrote everything well, the program is working good, but when i opened the map.html webpage, my coordinates aren't showin..,i just get the default coordinate (that is something with speed=21) i have placed my output.json file and the map.html page in the same folder, even the code and .exe file is also on the same folder.

Refer to page-135. Also the Bermuda tool piped with geo2json tool isn't showin up as expected, its the same output i am gettin.

i have attached the screen print of my gpsapp directory. (the concerned directory)


This works for me. Actually, all I have is the output.json file and map.html in the same directory.
I changed the last speed entry (to 55 or something) in my output.json file and it reflects correctly in map as well.
Make sure you are clicking on the LOCAL html file and loading it in your browser.

I have attached the html file for your reference.Attached File  map.html   5KB   94 downloads

Edited by kgashok, 30 October 2012 - 09:22 PM.


#5 @vid@vi

@vid@vi

    New Member

  • Members
  • Pip
  • 5 posts
  • Gender:Male
  • Location:Delhi (India)
  • Interests:Everything related to computers and technology plus chess plus being cool.!!!

Posted 08 November 2012 - 06:07 AM

This works for me. Actually, all I have is the output.json file and map.html in the same directory.
I changed the last speed entry (to 55 or something) in my output.json file and it reflects correctly in map as well.
Make sure you are clicking on the LOCAL html file and loading it in your browser.

I have attached the html file for your reference.Attached File  map.html   5KB   94 downloads



Can you please upload your concerned folder which contains the json file and map.html.
VENI VEDI VINCI
(I came, I saw, I conquered)

#6 kgashok

kgashok

    New Member

  • Members
  • Pip
  • 2 posts

Posted 08 November 2012 - 07:41 AM

I don't think I can upload or attach folders into the forum. Just download the map.html file I had attached in my previous email into any folder of your choice. Place your own output.json file in the same folder. Click on the map.html file in your folder and it should load in your browser with starting with "file://" in the address box. It should work. Cheers,

Edited by kgashok, 08 November 2012 - 07:46 AM.


#7 rattlerone

rattlerone

    New Member

  • Members
  • Pip
  • 1 posts

Posted 30 June 2013 - 11:47 PM

Hi, I've tried to get this to work with no success. When I download http://oreillyhfc.appspot.com/map.html it shows the coordinates even before I've put in my .json file. When I change the coordinates in the .json file to

{latitude: 59.362530, longitude: 17.087936, info: Speed = 16},
{latitude: 59.362457, longitude: 17.087059, info: Speed = 16},
{latitude: 59.362385, longitude: 17.086182, info: Speed = 21}

I still get the the old coordinates and markers.
Have saved the file, put it in the same folder as map.html and maps_files folder.

Have uploaded my .json but added txt.

What am I doing wrong?

Attached Files



#8 Adam Cheung

Adam Cheung

    New Member

  • Members
  • Pip
  • 1 posts

Posted 30 September 2013 - 01:58 AM

I had the same problem until I zoomed in. Try zooming in on it.

I had the same problem as well. God knows how long time I struggled on this!!!
Just now I did the zoom in, and it really worked. :-)

#9 durtreg

durtreg

    New Member

  • Members
  • Pip
  • 1 posts

Posted 08 December 2013 - 10:13 AM

This does not work on a local file system. I have tried basically anything that I can think of.

I tried downloading it with: chrome 31.0.1650.63, internet explorer 11, firefox 22 on windows 7 and Fedora 17 Linux.
Some create a folder with all sorts of files including output.json, some just map.html and output.json, some just map.html.

Now when I reload the file locally into the browser I get either: no image at all or just the world without any markers.
Zooming doesn't make any difference. I tried opening it in all the browsers above, none work.

If I upload the map.html and json file to a webserver, then open it in a none-local URL, then it works - just *not* locally in any browser.

If someone could paste a complete folder/file combination with the exact way of opening it and if possible browswer-version and operating system?

#10 Vesnog

Vesnog

    New Member

  • Members
  • Pip
  • 1 posts

Posted 01 March 2014 - 10:13 AM

I am having similar problems on Ubuntu 12.04.3 LTS with the latest edition of Chrome and Firefox web browsers. So far I have tried the two browsers while saving the webpage as complete and the command wget in the terminal with the option -mk. By the way I should mention that a blank page is displayed when I launch the html file of the complete webpage after saving. What may be the reason behind this?

Thanks in advance

#11 Adam Howard

Adam Howard

    New Member

  • Members
  • Pip
  • 1 posts

Posted 30 April 2014 - 01:03 PM

I am having similar problems on Ubuntu 12.04.3 LTS with the latest edition of Chrome and Firefox web browsers. So far I have tried the two browsers while saving the webpage as complete and the command wget in the terminal with the option -mk. By the way I should mention that a blank page is displayed when I launch the html file of the complete webpage after saving. What may be the reason behind this?

Thanks in advance


Here is how I got this working on Arch Linux, Firefox 29.0: by examining the dev console as map.html loaded, I noticed that it attempted to load a file located at file:///mapfiles/markers2/marker.png. My guess is that there is a relative path somewhere in the Maps API for loading the marker image that normally points to something like api.google.com/mapfiles/markers2/marker.png. Obviously, that isn't going to work so well for a local html file. Since I didn't really want to dig around too much in the API docs or mess around with the html, I just found a suitable icon for a marker, named it marker.png and put it in the right directory. Once that file was in place, reloading map.html caused the markers to pop up on the map (although I had to zoom way in to get them to not all be right on top of each other). Hope this helps someone else searching for this issue later!

#12 thornoff

thornoff

    New Member

  • Members
  • Pip
  • 1 posts

Posted 21 June 2014 - 06:17 AM

Here is how I got this working on Arch Linux, Firefox 29.0: by examining the dev console as map.html loaded, I noticed that it attempted to load a file located at file:///mapfiles/markers2/marker.png. My guess is that there is a relative path somewhere in the Maps API for loading the marker image that normally points to something like api.google.com/mapfiles/markers2/marker.png. Obviously, that isn't going to work so well for a local html file. Since I didn't really want to dig around too much in the API docs or mess around with the html, I just found a suitable icon for a marker, named it marker.png and put it in the right directory. Once that file was in place, reloading map.html caused the markers to pop up on the map (although I had to zoom way in to get them to not all be right on top of each other). Hope this helps someone else searching for this issue later!


Hi,

I have the same issue that the mapfiles/markers2/marker.png can't be loaded. I tried your suggestion but couldn't solve the issue. Where exactly is the 'right directory', in the same directory where you put the map.html? And did you change anything else? did you just download the map.html and added your own marker.png?

Thanks in advance!

#13 furkant

furkant

    New Member

  • Members
  • Pip
  • 1 posts

Posted 30 August 2014 - 02:18 PM

OS : Ubuntu 14.04
Browser : Mozilla
I had the same problem as you but now, I found the EXACT solution. So what I did :

1- I installed Apache Server. (Actually I already had)
2- Opened http://oreillyhfc.appspot.com/map.html and ctrl+s and saved as "All Files" (Not "Web Page, Completely") to my geo2json project folder.
3- I move geo2json project folder to localhost. (Made like that : /var/www/html/geo2json/)
---Don't forget to be root to be able to move file => sudo -i
---Move command => mv geo2jsonFolderLocation /var/www/html
4- Then opened my browser (Mozilla) and linked localhost/geo2json/map.html

And it worked ! I think there is a problem about localhost.

Posted Image

Edited by furkant, 30 August 2014 - 02:19 PM.


#14 lnwpen99

lnwpen99

    New Member

  • Members
  • Pip
  • 5 posts

Posted 06 February 2015 - 01:26 AM

I like this topic!

sbobet

Edited by lnwpen99, 06 February 2015 - 01:30 AM.


#15 new88

new88

    New Member

  • Members
  • Pip
  • 1 posts

Posted 29 March 2015 - 11:50 PM

Good Map, i like

 

 

 

Goldenslot online , Golden slot



#16 dcrawl

dcrawl

    New Member

  • Members
  • Pip
  • 2 posts

Posted 05 May 2015 - 12:36 PM

tl:dr - created free website on byethost.com, uploaded maps.html and output.json and it just works!

 

So I got this to work but it was a pain.

 

Following Howard's steps (and using the chrome browser) I was able to see the error when the file was hosted locally:

 

Attached File  chromemaperror.jpg   179.61KB   0 downloads

 

I couldn't find 'the right directory' he mentions that would make this work locally.

 

So I went and found a free website hosting service and put the maps.html and output.json files there (used a command line ftp to upload the files ) -and it works! (changed the last speed value to 99 to test it) - recommend byethost.com for free hosting.

 

Attached File  byethostmap.jpg   262.67KB   0 downloads
 

 






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users