Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
343 commits
Select commit Hold shift + click to select a range
e842827
Merge pull request #11 from giladgo/gh-pages
niryariv Jun 19, 2013
f050302
move default map center, zoom to constants
niryariv Jun 19, 2013
70fdbf2
Adding Jerusalem as the default city
giladgo Jun 19, 2013
2eb996b
hide scrobber when request ends ; cleanup identation etc
niryariv Jun 19, 2013
0f77c70
fix merge conflicts
niryariv Jun 19, 2013
be9ebae
add city if missing
niryariv Jun 19, 2013
ad262ce
cleanups
niryariv Jun 19, 2013
042572f
remove left padding from map
niryariv Jul 9, 2013
6555cac
add more intro text to homepage
niryariv Aug 19, 2013
7afda63
add commit button
niryariv Aug 19, 2013
af3d436
fix text above input box
niryariv Aug 19, 2013
57e3c7a
add link rel to the feed
niryariv Aug 19, 2013
8274e1d
share buttons, take 1
niryariv Aug 19, 2013
eba86ee
fix extra quote
niryariv Aug 19, 2013
b555638
fix homepage text per maayan's suggestion
niryariv Aug 22, 2013
dc31dca
only one i in maayan
niryariv Aug 24, 2013
601d8ed
add alon nisser to credits
niryariv Sep 6, 2013
11e4f98
seperating inline style from index.html
alonisser Sep 7, 2013
8719570
removing inline style, solving the missing social icons problem
alonisser Sep 7, 2013
b7767a4
added TODO
alonisser Sep 8, 2013
92994ca
Testing gameplan
alonisser Sep 8, 2013
63cd593
basic testing suite for index.html before clicking and moving
alonisser Sep 8, 2013
902d710
add TODO
alonisser Sep 9, 2013
b7bdf07
added more basic tests
alonisser Sep 9, 2013
0676e63
try the gushim Mor scraped
niryariv Sep 10, 2013
0d231b6
add BSD license
niryariv Sep 10, 2013
640fc1e
add new scrape (still need to fix coords)
niryariv Sep 10, 2013
3f23b6c
Converted coords from ITM to WGS84 + added altitude
florpor Sep 11, 2013
63b048f
Merge pull request #21 from florpor/master
niryariv Sep 12, 2013
d15044b
Added Jerusalem's 'gush border' layer data, removed altitude and redu…
florpor Sep 12, 2013
2e4ebce
preparing for travis ci integration
alonisser Sep 12, 2013
2e632a3
minor linting changes: var, semicolon etc
alonisser Sep 12, 2013
5b50aa2
moved into the tests program
alonisser Sep 12, 2013
0ad97cf
an npm/grunt configuration
alonisser Sep 12, 2013
9eb27eb
added a gruntfile
alonisser Sep 12, 2013
45d4f27
making the package.json a single source of truth for jshint
alonisser Sep 13, 2013
84dad92
minor changes, semicolons and vice versa
alonisser Sep 13, 2013
3fbf38d
Merge pull request #23 from florpor/master
niryariv Sep 13, 2013
ddd9d38
deleted and tried again - seperating the testing of the api and addi…
alonisser Sep 13, 2013
74ddf06
removed type
alonisser Sep 13, 2013
e12e631
basics test workflow working
alonisser Sep 13, 2013
4525f2f
stubs for further testings
alonisser Sep 13, 2013
62f8f92
fixed .travis.yml and testing to reflect tests
alonisser Sep 13, 2013
466268f
typo
alonisser Sep 13, 2013
01c8ed9
fixed jshint dependency
alonisser Sep 13, 2013
1f688be
removed explict jshint dependency to fix travis
alonisser Sep 13, 2013
b1200eb
trying to fix the npm installs all problem
alonisser Sep 13, 2013
e0f3d53
fixing npm dependency hell
alonisser Sep 13, 2013
7f069c5
a helper script to extract img for testing and a map image for testin…
alonisser Sep 13, 2013
c92d18a
removed sudo from .travis.yml
alonisser Sep 13, 2013
0c00e64
yet another travis check
alonisser Sep 13, 2013
fd435ce
add build status and reference to testing
alonisser Sep 13, 2013
e068407
added phantomcss for image regression testing
alonisser Sep 13, 2013
0af6336
moved phantomcss testing to a seperate file
alonisser Sep 13, 2013
57ba84d
prepared for phantomcss testing
alonisser Sep 13, 2013
da58c13
added map regression test
alonisser Sep 13, 2013
b93c254
added phantomcss and removed binaries
alonisser Sep 13, 2013
eacd833
added phantomcss and removed binaries
alonisser Sep 13, 2013
a423642
removed unneeded folder creation
alonisser Sep 13, 2013
95924ef
removed --dev from npm install
alonisser Sep 13, 2013
b3b65ac
added my phantomcss fork as submodule, didn't remove casperserver yet
alonisser Sep 13, 2013
ec877ac
added submodule update to travis workflow
alonisser Sep 13, 2013
5859a36
with submodules
alonisser Sep 13, 2013
02cf1aa
changed travis.yml yet again, to work with phantomcss
alonisser Sep 13, 2013
f4b0f5c
changed to https to enable travis installation
alonisser Sep 13, 2013
2c7e60c
whitespace to trigget travis
alonisser Sep 13, 2013
69d6430
triggering travis after playing with the images
alonisser Sep 13, 2013
305b0f6
Merge branch 'master' of github.com:niryariv/opentaba-client
alonisser Sep 13, 2013
3b4828e
updated with our progress
alonisser Sep 14, 2013
ade6d55
added explict waituntil option
alonisser Sep 14, 2013
5a67798
typo
alonisser Sep 14, 2013
f6419bc
again
alonisser Sep 14, 2013
ff0c0e0
phantomcss
alonisser Sep 14, 2013
e780f44
updated readme
alonisser Sep 14, 2013
1bc2ec8
fixed sinon dependency to browser version and added specifc plan test
alonisser Sep 14, 2013
100e7d2
more details in testing.md and added stubs for further testing
alonisser Sep 14, 2013
c94258b
33 new municipalities' data added
florpor Sep 27, 2013
d92eb60
Merge pull request #27 from florpor/master
niryariv Sep 27, 2013
02d29d1
Merge pull request #24 from alonisser/master
niryariv Sep 30, 2013
2ca1b3e
added more tests to get gush
alonisser Sep 30, 2013
e84e789
added engine option
alonisser Sep 30, 2013
b138da4
more advanced testing, still not finished
alonisser Sep 30, 2013
dd2045f
added baseline pictures
alonisser Sep 30, 2013
4c2cd1a
initial commit
alonisser Sep 30, 2013
046c314
Merge branch 'master' of github.com:niryariv/opentaba-client
alonisser Sep 30, 2013
2a6aaff
adding a gitignore
alonisser Oct 1, 2013
9031b7d
added fontawesome icons for twitter and facebook, removed the other s…
alonisser Oct 1, 2013
c38d682
removed underline css for icons
alonisser Oct 1, 2013
601d813
fixing phantomcss test
alonisser Oct 4, 2013
503f088
added specific threshold
alonisser Oct 4, 2013
9ab98c8
seperating different image test
alonisser Oct 4, 2013
a9b40e0
removed not working phantomcss test and added some others
alonisser Oct 7, 2013
0abe27d
remove space
niryariv Oct 7, 2013
25597f7
fix conflict
niryariv Oct 7, 2013
578a71c
style share icons
niryariv Oct 7, 2013
5fab336
stylin
niryariv Oct 7, 2013
3ed15c5
open attachments in new tab instead of modal
niryariv Oct 7, 2013
eb8549f
add a little space above share icons
niryariv Oct 7, 2013
88b8d4a
subdomain cities and combo picker
florpor Oct 7, 2013
d3602ad
fix first load bug and combo style
florpor Oct 7, 2013
6b58eb3
fixed api error
florpor Oct 7, 2013
03c1827
use https instead of http in heroku calls, solve #31
niryariv Oct 8, 2013
7be8f3c
Merge branch 'master' into gh-pages
niryariv Oct 8, 2013
7470d49
fixed cities order and changed heroku url to https
florpor Oct 8, 2013
6c99fde
fixed index.html test
florpor Oct 8, 2013
c8e6002
forgot the cities definition js
florpor Oct 8, 2013
7cc8968
Added faradis, zichron, jaser and givat ada
florpor Oct 21, 2013
23446d1
fix access to a certain gush through the #/gush/ path
florpor Oct 28, 2013
6ec5b63
forgot to fix the tests again before commiting. changed number of cit…
florpor Nov 4, 2013
52209d0
switch to google api for address search
florpor Nov 5, 2013
cff52ed
remove the weird array comparison for a simple one
florpor Nov 5, 2013
0474feb
fix number of tests
florpor Nov 5, 2013
e5610c8
remove need for heroku address-db, use google api for geocoding. Merg…
niryariv Nov 6, 2013
523e2b0
add mor, shahar to credits
niryariv Nov 6, 2013
cf7f92e
add nir weissman to credits
niryariv Nov 6, 2013
d8fdef8
reduced decimal digits to 6
florpor Nov 22, 2013
671e740
tel aviv gushim names were numbers instead of strings
florpor Dec 13, 2013
77c7c99
no need for pdfobject.js
niryariv Dec 21, 2013
9324089
remove attribution
niryariv Dec 21, 2013
c2ca411
update to leaflet 0.7.1
niryariv Dec 21, 2013
e7463f4
Adding .json suffix to gush plans URL to support new opentaba-server API
shevron Dec 22, 2013
5768b4a
Changing URL of atom feed to comply with new server API
shevron Dec 22, 2013
04e8ba5
Fixing client-side tests to support new URL scheme
shevron Dec 22, 2013
1c62d88
Merge pull request #44 from shevron/feature/server-type-suffix
niryariv Dec 22, 2013
7ee05aa
Merge branch 'master' of https://github.com/niryariv/opentaba-client
niryariv Dec 22, 2013
bf086c8
kiryat ono gush-helka
niryariv Dec 28, 2013
e12b7bd
link to the new mmi plan details page
florpor Jan 20, 2014
41b2712
add contact email
niryariv Jan 20, 2014
de51ff3
Merge branch 'new-scraper' of https://github.com/florpor/opentaba-cli…
niryariv Jan 23, 2014
9cc38d4
remove ADDR_DB, change API_URL to use dev while updating the new scra…
niryariv Jan 25, 2014
9aed345
back to the live server, with the new scraper
niryariv Jan 25, 2014
e631fb6
update feed address to the new format
niryariv Jan 26, 2014
267ff59
use OSM tiles until a better cloudmade alt is found
niryariv Mar 6, 2014
1f3536f
reinstate cloudmade tiles
niryariv Mar 6, 2014
5a7317e
Update .travis.yml
alonisser Mar 25, 2014
e6063b3
add yuval admon to project contributors
niryariv May 2, 2014
fdcf862
use mapbox tiles
niryariv May 8, 2014
4923018
Merge branch 'master' of https://github.com/niryariv/opentaba-client
niryariv May 8, 2014
2e7b2e2
use clean mapbox tiles
niryariv May 8, 2014
4a63d5c
use israel_tiles
niryariv May 10, 2014
2bf1404
add some meta description, canonnical URL
niryariv Jun 11, 2014
60cbf68
add link to Shahar's website
niryariv Jun 15, 2014
a97c635
fixed test - docModal does not exist since commit #3ed15c5. fixed tra…
florpor Jun 15, 2014
0bfd50c
pdfobject.js not loaded since commit #77c7c99
florpor Jun 15, 2014
e1d0cec
fix phantomcss test
florpor Jun 16, 2014
1bf173a
forgot to change travis link in README.md
florpor Jun 16, 2014
fe3b27d
fixed mapon_gush test
florpor Jun 16, 2014
74850ea
my resolution was wrong. travis please?
florpor Jun 16, 2014
5244c31
add link to questionnaire
niryariv Jun 18, 2014
8c88725
Merge branch 'gh-pages'
niryariv Jun 18, 2014
9fce41c
reduced geojson accuracy to 6 decimal digits for all gush maps
florpor Jun 19, 2014
64eb795
Merge branch 'master' of https://github.com/niryariv/opentaba-client
florpor Jun 19, 2014
677d463
async load of gushim map which is pure json
florpor Jun 19, 2014
7362c99
pretty colors are back. fixed phatomcss test images
florpor Jun 19, 2014
b8c20b5
added search by #gush and tests. fixed gush address mapping
florpor Jun 19, 2014
62f27a0
add givataiim
niryariv Jun 22, 2014
c4e39f7
Merge branch 'master' of https://github.com/niryariv/opentaba-client
niryariv Jun 22, 2014
e25bbd3
upgrade to bootstrap 3
florpor Jun 22, 2014
4c66127
Merge branch 'master' of https://github.com/niryariv/opentaba-client
florpor Jun 22, 2014
37aecfb
work with dev server until the changes settle
florpor Jul 2, 2014
e357dd4
back to normal server
florpor Jul 2, 2014
9c75be3
organized contributed gushim maps and formatted givataiim
florpor Jul 3, 2014
ca3abad
make only right div scroll down and map div static
florpor Jul 3, 2014
ee90290
make search-box fill the div. will help with names longer than jerusalem
florpor Jul 3, 2014
6f85bd5
converted jerusalem to topojson
florpor Jul 3, 2014
0956664
turned gush files into pure json
florpor Jul 3, 2014
a2eade9
converted all gushim files to topojson
florpor Jul 3, 2014
6580fa0
no need for (old) static gush data
florpor Jul 13, 2014
5df8678
givataiim gushim map should be pure json like the others
florpor Jul 13, 2014
4de2a8b
organized client data, deleted irrelevant files
florpor Jul 13, 2014
1a5b8de
multi municipality is alive. currently housing jerusalem and givataiim
florpor Jul 13, 2014
3b999d7
seems there is trouble with bower@1.3.8, even though their issue is c…
florpor Jul 14, 2014
936bb67
added server test file editing. better commenting
florpor Jul 16, 2014
fdebda0
add_muni script documentation
florpor Jul 16, 2014
cb1a0ff
minor tools/README.md changes
florpor Jul 16, 2014
6178a2b
make fb and twitter links link to pages instead of share window and a…
florpor Jul 27, 2014
a096948
seems there is trouble with bower@1.3.8, even though their issue is c…
florpor Jul 14, 2014
6c702af
add_muni modifications for better city support on server
florpor Jul 28, 2014
29c85ae
merged cherry-pick from mobile branch
florpor Jul 22, 2014
85ed1e2
stop search button from appearing under the search input on really na…
florpor Jul 28, 2014
57e422d
added sidebar toggle tests
florpor Jul 28, 2014
27cfcda
added locate-me button
florpor Jul 31, 2014
dd52536
something happened with travis not supporting non-text nodejs version?
florpor Jul 31, 2014
963b8cd
add body margin for Mavericks right margin issue
niryariv Jul 31, 2014
71d7dd8
fix phantomcss tests and tweaked right-margin in 'mobile-mode'
florpor Jul 31, 2014
c1ac46a
hide multi-muni gui for now
florpor Jul 31, 2014
b5121eb
Merge branch 'multi_muni'
florpor Jul 31, 2014
6160ca8
added jerusalem subdomain to CNAME
florpor Jul 31, 2014
c3ae4cc
Merge branch 'mobile_merge'
florpor Jul 31, 2014
51a282e
fixed subdomain-recognition so we can work with framed-subdomains
florpor Aug 3, 2014
a8b381f
attempt to bypass cross-site validation by using the referer property
florpor Aug 3, 2014
f0261ce
make links in the upper right corner be valid for every municipality …
florpor Aug 7, 2014
6f671f0
added mavat links
florpor Aug 18, 2014
29cbdfe
no need for https when communication with server
florpor Aug 18, 2014
a94bbd6
fabfile for managing multiple gh-pages sites for different municipali…
florpor Aug 18, 2014
11da933
fabfile for managing multiple gh-pages sites for different municipali…
florpor Aug 18, 2014
05f17e6
fabfile fixes and support for per-muni servers
florpor Aug 18, 2014
f45c6a7
fabfile fixes and support for per-muni servers
florpor Aug 18, 2014
47a7dd1
fixed typo in fabfile
florpor Aug 18, 2014
5f633c7
fixed typo in fabfile
florpor Aug 18, 2014
61c659c
test commit for push tests
florpor Aug 18, 2014
e9303f8
test commit for push tests
florpor Aug 18, 2014
fed700f
fabfile will force push and update CNAME on every deploy to make this…
florpor Aug 19, 2014
96a1f96
fabfile will force push and update CNAME on every deploy to make this…
florpor Aug 19, 2014
546ca0e
fabfile fixes. divided add_muni script between client and server fabf…
florpor Aug 20, 2014
ca189b4
fabfile fixes. divided add_muni script between client and server fabf…
florpor Aug 20, 2014
a55e323
fixed exisiting topojsons to work with app.js change
florpor Aug 20, 2014
ec2379c
fixed exisiting topojsons to work with app.js change
florpor Aug 20, 2014
82ae2cf
added tveria. fabfile testing
florpor Aug 20, 2014
8113d25
added tveria. fabfile testing
florpor Aug 20, 2014
bd15640
added tveria. fabfile testing
florpor Aug 20, 2014
7bd734c
added tveria. fabfile testing
florpor Aug 20, 2014
dc0abf4
removed givataiim and tveria. finished fabfile testing
florpor Aug 20, 2014
676ad1e
removed givataiim and tveria. finished fabfile testing
florpor Aug 20, 2014
5c0d88e
fabfile and readme fixes
florpor Aug 20, 2014
9715445
fabfile and readme fixes
florpor Aug 20, 2014
009b07a
seperated deployment documentation from main readme
florpor Aug 20, 2014
49a1db6
seperated deployment documentation from main readme
florpor Aug 20, 2014
f4b5bd7
doc fixes. github mardown, why don't you like me
florpor Aug 20, 2014
69f7861
doc fixes. github mardown, why don't you like me
florpor Aug 20, 2014
87599d5
gush maps are now downloaded from github's api, so no local copy need…
florpor Aug 20, 2014
7819815
gush maps are now downloaded from github's api, so no local copy need…
florpor Aug 20, 2014
01963f0
search note shouldn't appear when searching by gush number. fixed and…
florpor Aug 20, 2014
07bd662
search note shouldn't appear when searching by gush number. fixed and…
florpor Aug 20, 2014
ec88a81
removed gush maps now that they are in a central repo
florpor Aug 20, 2014
80c6cef
fix comment
niryariv Aug 21, 2014
a1903f7
fix comment
niryariv Aug 21, 2014
45263ea
Merge branch 'master' of https://github.com/niryariv/opentaba-client
niryariv Aug 21, 2014
c1f2a06
Merge branch 'master' of https://github.com/niryariv/opentaba-client
niryariv Aug 21, 2014
b85588e
add givataiim
niryariv Aug 24, 2014
4602dfa
add givataiim
niryariv Aug 24, 2014
f0bea30
moved fabfile to server repo. edited docs
florpor Aug 25, 2014
4d4545e
moved fabfile to server repo. edited docs
florpor Aug 25, 2014
ab542a4
added haifa to index.js
florpor Aug 25, 2014
4b86a48
added haifa to index.js
florpor Aug 25, 2014
a0bf174
haifa index.js
florpor Aug 25, 2014
a692c48
haifa index.js
florpor Aug 25, 2014
d14a031
removed haifa and holon? fabfile test data
florpor Aug 25, 2014
94efd46
removed haifa and holon? fabfile test data
florpor Aug 25, 2014
4cc5799
overrode all fork changes, got all changes from niryariv/opentaba-client
florpor Sep 2, 2014
f99193c
merge leftovers
florpor Sep 2, 2014
c19232c
changed relative resource paths to absolute ones and replaced some fo…
florpor Sep 2, 2014
28e1517
added arabe for dummy test
florpor Sep 2, 2014
3a961f3
added boundaries to map and auto calculation for them and center if t…
florpor Sep 4, 2014
070aca3
no need to save converted versions of contributed gush maps
florpor Sep 10, 2014
c6b7cd3
added rishon to index.js
florpor Sep 10, 2014
57f31f4
updated DEPLOYMENT.md with new index.js field
florpor Sep 10, 2014
4c06f00
added petach.tikva to index.js
florpor Sep 10, 2014
e7f25a7
merged changes from niryariv/opentaba-client
florpor Sep 10, 2014
346e9c7
test for per-muni css
florpor Sep 10, 2014
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions CNAME

This file was deleted.

22 changes: 22 additions & 0 deletions DEPLOYMENT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
##Municipality Index File
The municipality index file resides in "data/index.js", and has some needed
information about each municipality.

Mandatory fields:
+ "display" - the Hebrew (or whatever) display name for the municipality

Optional fields:
+ "server" - the base url for the server that hosts this municipality's plans.
If not defined it is "http://opentaba-server-<muni-name>.herokuapp.com/"
+ "center" - the center point of the municipality's gush map
+ "bounds" - the boundaries to the municipality. the user will not be able
to go past these.
+ "file" - path in the repository to the municipality's gush map.
If not defined it is "https://api.github.com/repos/niryariv/israel_gushim/contents/<muni_name>.topojson"
This file will be downloaded using Github's contents API, so it must not
exceed 1MB in size. Files from other static hosts will probably be loaded fine
as long as the "Accept" header is ignored.
+ "fb_link" - link to the municipality's facebook page.
If not defined the facebook icon will open a "share on facebook" window
+ "twitter_link" - link to the municipality's twitter page.
If not defined the twitter icon will open a "tweet" window
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[![Build Status](https://travis-ci.org/niryariv/opentaba-client.png?branch=master)](https://travis-ci.org/niryariv/opentaba-client)Client code for OpenTaba - details will arrive soon, but the code is pretty simple to understand.If you came looking for the server side of opentaba It's [here](https://github.com/niryariv/opentaba-server).##Testing:see [what's needed](tests/testing.md) with testing.##Want to help?look at the issues. Lots of work here
[![Build Status](https://travis-ci.org/niryariv/opentaba-client.png?branch=master)](https://travis-ci.org/niryariv/opentaba-client)Client code for OpenTaba - details will arrive soon, but the code is pretty simple to understand.If you came looking for the server side of opentaba It's [here](https://github.com/niryariv/opentaba-server).##Testingsee [what's needed](tests/testing.md) with testing.##Production###ArchitectureThe production environment is made up of a github pages site per municipality, all being updated from onemain repository's master branch: [niryariv/opentaba-client](http://github.com/niryariv/opentaba-client/).This is done mainly to support different subdomains for different municipalities, but also to providethe ability to modify certain municipalities' sites without modifying all of them.###MaintenanceMaintenance is done using [fabric](http://fabfile.org), by activating different tasks defined in fabfile.py (for a list of all tasks, run `fab -l`, and for details about a specific task run `fab -d <task-name>`)To execute a task, run: `fab task-name:arg1,arg2...` or `fab task-name:arg1=val1,arg2=val2...`For step-by-step instructions on how to add a new municipality, check out [opentaba-server's Deployment Readme](http://github.com/niryariv/opentaba-server/blob/master/DEPLOYMENT.md#deploy-a-new-municipality)For information about the municipality index file's syntax, check out [The Deployment Readme](DEPLOYMENT.md)Main tasks:+ create_site (site_name) : create a new github repo, add a new remote to the local git repository for the new repo, push (deploy) only to gh_pages branch, and edit the new repository's CNAME file for subdomain attaching.+ delete_site (site_name) : delete a github repository and remove it from the local git repository's remotes.+ deploy_client_all () : push all changes done in the local repository to all remote repositories defined in the remote "all_sites".##Want to help?look at the issues. Lots of work here
Expand Down
20 changes: 15 additions & 5 deletions app.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// deprecating, replacing with serverless mode
var RUNNING_LOCAL = (document.location.host.indexOf('localhost') > -1 || document.location.host.indexOf('127.0.0.1') > -1 || document.location.protocol == 'file:');
var API_URL = RUNNING_LOCAL ? 'http://0.0.0.0:5000/' : 'http://opentaba-server.herokuapp.com/';

// get the requested url. we do this because the subdomains will just be frames redirecting to the main domain, and since we
// can't do cross-site with them we can't just use parent.location
Expand All @@ -16,6 +15,8 @@ if (muni == undefined) {
muni = municipalities['jerusalem'];
}

var API_URL = RUNNING_LOCAL ? 'http://0.0.0.0:5000/' : (muni.server == undefined) ? 'http://opentaba-server-' + muni_name + '.herokuapp.com/' : muni.server;

var gushim;
var gushimLayer;
leafletPip.bassackwards = true;
Expand Down Expand Up @@ -176,6 +177,9 @@ function get_gush_by_addr(addr) {
if (gid && gid.length > 0) {
get_gush(gid[0].gushid);
var pp = L.popup().setLatLng([lat, lon]).setContent('<b>' + addr + '</b>').openOn(map);

// show search note after a successful search
$('#search-note-p').show();
} else {
$('#search-error-p').html('לא נמצא גוש התואם לכתובת'); // TODO: when enabling multiple cities change the message to point users to try a differenct city
}
Expand Down Expand Up @@ -272,6 +276,7 @@ $(document).ready(function(){
function() {
$('#scrobber').show();
$('#search-error-p').html('');
$('#search-note-p').hide();

var search_val = $('#search-text').val();

Expand All @@ -281,7 +286,7 @@ $(document).ready(function(){
var result = find_gush(parseInt(search_val));
if (result)
get_gush(parseInt(search_val));
else
else
$('#search-error-p').html('גוש מספר ' + search_val + ' לא נמצא במפה');

$('#scrobber').hide();
Expand Down Expand Up @@ -318,7 +323,7 @@ $(document).ready(function(){
});


var map = L.map('map', { scrollWheelZoom: true, attributionControl: false }).setView(muni.center, DEFAULT_ZOOM);
var map = L.map('map', { scrollWheelZoom: true, attributionControl: false });

// tile_url = 'http://{s}.tile.cloudmade.com/424caca899ea4a53b055c5e3078524ca/997/256/{z}/{x}/{y}.png';
// tile_url = 'http://{s}.tile.osm.org/{z}/{x}/{y}.png';
Expand All @@ -334,10 +339,11 @@ L.tileLayer(tile_url, {
L.control.locate({position: 'topleft', keepCurrentZoomLevel: true}).addTo(map);

$.ajax({
url: muni.file,
url: (muni.file == undefined) ? 'https://api.github.com/repos/niryariv/israel_gushim/contents/' + muni_name + '.topojson' : muni.file,
headers: { Accept: 'application/vnd.github.raw' },
dataType: 'json'
}).done(function(res) {
gushim = topojson.feature(res, res.objects.gushim).features;
gushim = topojson.feature(res, res.objects[muni_name]).features;

gushimLayer = L.geoJson(gushim,
{
Expand All @@ -349,6 +355,10 @@ $.ajax({
}
}
).addTo(map);

// set center and boundaries as defined in the index.js file or according to the gushimLayer
map.setView((muni.center == undefined) ? gushimLayer.getBounds().getCenter() : muni.center, DEFAULT_ZOOM);
map.setMaxBounds((muni.bounds == undefined) ? gushimLayer.getBounds() : muni.bounds);

// if the direct gush address mapping was used go ahead and jump to the wanted gush
if (got_gushim_delegate) {
Expand Down
20 changes: 10 additions & 10 deletions css/stylesheet.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,23 +26,23 @@ body{

@font-face {
font-family: 'Alef';
src: url('font/Alef-bold.eot');
src: url('font/Alef-bold.eot?#iefix') format('embedded-opentype'),
url('font/Alef-bold.woff') format('woff'),
url('font/Alef-bold.ttf') format('truetype'),
url('font/Alef-bold.svg#alefbold') format('svg');
src: url('//fonts.gstatic.com/ea/alefhebrew/v4/Alef-Bold.eot');
src: url('//fonts.gstatic.com/ea/alefhebrew/v4/Alef-Bold.eot?#iefix') format('embedded-opentype'),
url('//fonts.gstatic.com/ea/alefhebrew/v4/Alef-Bold.woff2') format('woff2'),
url('//fonts.gstatic.com/ea/alefhebrew/v4/Alef-Bold.woff') format('woff'),
url('//fonts.gstatic.com/ea/alefhebrew/v4/Alef-Bold.ttf') format('truetype');
font-weight: bold;
font-style: normal;

}

@font-face {
font-family: 'Alef';
src: url('font/Alef-regular.eot');
src: url('font/Alef-regular.eot?#iefix') format('embedded-opentype'),
url('font/Alef-regular.woff') format('woff'),
url('font/Alef-regular.ttf') format('truetype'),
url('font/Alef-regular.svg#alefregular') format('svg');
src: url('//fonts.gstatic.com/ea/alefhebrew/v4/Alef-Regular.eot');
src: url('//fonts.gstatic.com/ea/alefhebrew/v4/Alef-Regular.eot?#iefix') format('embedded-opentype'),
url('//fonts.gstatic.com/ea/alefhebrew/v4/Alef-Regular.woff2') format('woff2'),
url('//fonts.gstatic.com/ea/alefhebrew/v4/Alef-Regular.woff') format('woff'),
url('//fonts.gstatic.com/ea/alefhebrew/v4/Alef-Regular.ttf') format('truetype');
font-weight: normal;
font-style: normal;

Expand Down
1 change: 1 addition & 0 deletions data/cities.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion data/contrib/README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
###Contributed gushim mapsThese are gushim maps contributed to the project by various sources.Original versions are in original directory.
###Contributed gushim mapsThese are gushim maps contributed to the project by various sources.Only original versions are kept here.
Expand Down
1 change: 1 addition & 0 deletions data/contrib/givataiim.gush.js

Large diffs are not rendered by default.

Binary file added data/contrib/givataiim.zip
Binary file not shown.
Binary file added data/contrib/kiryat_ono.dwg
Binary file not shown.
1 change: 0 additions & 1 deletion data/givataiim.json

This file was deleted.

1 change: 1 addition & 0 deletions data/gushim/faradis.gush.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions data/gushim/givat.ada.gush.js

Large diffs are not rendered by default.

Loading