Consul: City map bug

Created on 17 Mar 2019  路  6Comments  路  Source: consul/consul

Updating map at URL: admin/site_customization/images doesn't update it at: proposals/map

Most helpful comment

@decabeza Ty, that works 馃挴 ... only forget close the ("map.jpg") in the second file 馃憤 .

@PierreMesure Ty for let me see your demo, I check a fault that had with the coordinates, should insert only the coordinates and not the entire label 馃憤 .

All 6 comments

Hey Piotr, I don't see any setting to update the map at the address you mention. You can change the map by adding the file named map.jpg at app/assets/images/custom.

This is what is recommended in the docs.

If you want to use a PNG (which makes more sense sometimes), you'll need to modify the reference to the map directly on the page templates.

Hi, I did the same step than ppeczek and have the same issue ( The map appears in /proposals but in /proposals/map still is the default).

  • I added an image in the file app/assets/images/custom/map.jpg , no works.
  • I modify the file map.jpg in app/assets/images/ and nothing too.

Not sure what to tell you besides making sure that you deployed the code and restarted the server. It might be that the assets haven't been precompiled correctly.

See our demo instance and our source code for comparison.

First of all, i only install the Production Server. I did the step in the other post and compile the assets using :

  1. RAILS_ENV=production bundle exec rake assets:clobber
  2. RAILS_ENV=production bundle exec rake assets:precompile

All the files that I touch, they modified in public/assets, while the map (districts) disappears and does not show any.

Hi @ppeczek @PierreMesure @Dr4u95!

Admin users can change map image on /admin/site_customization/images:
site_customization_images

But this custom image is not rendering in all pages with the map 馃槄.

I create a PR https://github.com/consul/consul/pull/3472 to fix it! 馃檹

@decabeza Ty, that works 馃挴 ... only forget close the ("map.jpg") in the second file 馃憤 .

@PierreMesure Ty for let me see your demo, I check a fault that had with the coordinates, should insert only the coordinates and not the entire label 馃憤 .

Was this page helpful?
0 / 5 - 0 ratings

Related issues

periflo90 picture periflo90  路  5Comments

voodoorai2000 picture voodoorai2000  路  7Comments

decabeza picture decabeza  路  4Comments

voodoorai2000 picture voodoorai2000  路  6Comments

MariaCheca picture MariaCheca  路  4Comments