Tuesday, April 12, 2016

Running GB Maps with local web server

localhost1
Did you know that GB Maps can be run using a local web server, i.e. localhost? With this you can now use Google Chrome because there is no more restriction of local cache.
You can use any web server engine, e.g. Apache, Nginx, MS IIS, and etc. You can also use a small web server, such as BabyWeb.
Choose any web server :

A) XAMPP (Apache Web Server + MySQL + PHP + etc)

xampp-firefox
Download size : 108MB~118MB [https://www.apachefriends.org/download.html]
Installation is required.
Usage : very easy
Issue running GB Maps : none

B) Nginx Web Server

No installation required and small download size, about 1.3Mb. [http://nginx.org/en/download.html]
Usage : Running application might a bit difficult for novice. Other solution is WTServer, a XAMPP like package for Nginx.
Issue running GB Maps : none
nginx-chrome1

C) WTServer (Nginx + PHP + MariaDB + etc)

Download size : 82.4MB [http://wtserver.wtriple.com/ | https://sourceforge.net/projects/wtnmp/files/latest/download]
Installation is required.
Usage : very easy
Issue running GB Maps : none
wtserver-nginx-chrome1

D) MS IIS (Internet Information Server)

iis_chrome1
Pre built with Windows 10/8.
Just enable the feature, might a bit difficult for novice.
Usage : startup might a bit difficult for novice
Issue running GB Maps : URL encoding, + symbol in file name was invalid. Need to rename some of files name and update link in script file.
iis_issue

E) Babyweb Server (IIS like web server)

babyweb_firefox1
Download size : 90 KB (very small) [http://www.pablosoftwaresolutions.com/html/baby_web_server.html]
Installation not required.
Usage : very easy
Issue running GB Maps : URL encoding, + symbol in file name was invalid. Need to rename some of files name and update link in script file.
babyweb_issue

How to Run local web Server?

1 download Download web server application
2 gnome_app_install Install or unzip
3 window_enter Run web server application
4 stock_folder_copy Copy GB Maps files to the appropriate folder.
5 service_manager Configure GB Maps as a new installation.
6 camera_test Test and Run GB Maps.

Setting up GB Maps

XAMPP

  • copy GB Maps folder to [DRIVE]:\XAMPP\htdocs, and rename GB Maps folder if necessary.
xampp-copy3
  • run XAMPP Control panel and run Apache web server (Start).
xampp-start
  • Open your web browser and browse to http://localhost/<your gb maps folder>, for example:
xampp-firefox2
Additional reading :

Nginx

  • copy GB Maps files to “html” folder in Nginx folder, and replace original index.html with GB Maps index.html.
nginx-copy
  • run Nginx web server via Command Prompt.
nginx-start
  • Open your web browser and browse to http://localhost/.
  • To stop nginx, type nginx –s stop at command prompt and enter
nginx-stop
nginx/Windows runs as a standard console application (not a service), and it can be managed using the following commands:
nginx -s stop
fast shutdown
nginx -s quit
graceful shutdown
nginx -s reload
changing configuration, starting new worker processes with a new configuration, graceful shutdown of old worker processes
nginx -s reopen
re-opening log files



Additional reading

IIS

  • click Search and enter “turn Windows features on or off” in search box.
iis-1
  • select Internet Information Services, additional option as below and then tap or click OK.
iis-2
  • run IIS Manager (Start > All Apps > W > Windows Administrative Tools > Internet Information Services(IIS) Manager).
iis-3
  • change Default website basic setting as below.
iis-4
  • Start or Restart web server.
iis-5
  • Open your web browser and browse to http://localhost/

Additional reading:

Babyweb Server

  • Run BabyWeb Server
  • Click setting, set Web Pages to your GB Maps folder. Click OK and then Start.
babyweb_start
Additional reading

How to fix broken URL due to encoding issue in IIS or Baby Web Server?

  1. Open “images” folder in your gb maps folder.
  2. Rename image file “+ paralel line.png” to “add_parallel_line.png”, and “line+point.png” to “lineAddpoint.png”.
  3. Open index.html, script\gbm-base-v1.js, and script\gbm-func-v1.js with your Text editor. i.e : Notepad++
  4. Find and replace, “+ paralel line.png” with “add_parallel_line.png”, and “line+point.png” with “lineAddpoint.png” (Replace All). For example:
replacetxt

Don’t forget to configure your GB Maps! ^_^


menu_op
kdevelop_down
image
Suggestion for Default Values
Default for Conventional Line
gauge default cant default offset/ track gap
1067 mm gauge (japan) 105mm 3.8 m
1435 mm gauge (japan) 105mm 3.8 m

Default for High Speed Line/Shinkansen
gauge default cant default offset/ track gap
1435 mm gauge (japan) 200mm 4.5 m
 
hs-gauge
hs-cant
Note : To use the built-in or custom objects, you must set the data file to be used (BVE structure list).

BVE structure list

  • Set default values and your ID.
konfig
  • Set the data file to be used in the BVE structure list.
bve str list setup
Please reload page to activate the changes. After reload, please check "BVE Structures" side menu on the right.

How to Use?

Please refer to the user guide in GB Maps. Help > Manual. [English]
manual

Good luck!
thankyou

GB Maps ギビマップ - © Karya IT 2012-2014. All rights reserved. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.Creative Commons LicenseGB Maps ギビマップ by Karya IT is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. Based on a work athttps://code.google.com/p/gbmaps/. Permissions beyond the scope of this license may be available athttps://developers.google.com/readme/terms. Google Maps - ©2014 Google.





2 comments:

  1. Bad news, Google once again make drastic changes in the latest version Google Maps Javascript API v3.x and cause code previously stable, is now defunct. >_<

    The cause of the problem has been identified ...

    var e = new google.maps.LatLng (LatLngDataType) [no longer valid >_< ]

    replaced with a new constructor ..

    var e = new google.maps.LatLng (LatLngDataType.lat () as a numeric value, LatLngDataType.lng () as numeric value) [o_o]

    However, to correct this program, I may not be able to complete in the near future. I am really sorry! m(-_-)m

    New features proposed for BVE5
    - Vertical curve
    - And correcting code generation for "Ground"
    - subway

    ReplyDelete
  2. Video poker appears virtually the identical whether it is performed online or offline. The game has simple guidelines and is extremely straightforward to play. It is important, however, to 카지노사이트.online know the that means of each element and have. To help you get a greater grasp of the game, we've prepared an example of a typical user interface and the elements that it features. Playing whereas using video poker technique is remarkably simple. All you have to to|you must} do is obtain one of our poker technique charts and comply with it to find out|to search out} the most effective hands to play.

    ReplyDelete