×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: REF: Adding text to the "add hotspot" slide (page)

REF: Adding text to the "add hotspot" slide (page) 13 years 11 months ago #10938

  • Kate Fisher
  • Kate Fisher's Avatar Topic Author
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 82
  • Karma: 1
  • Thank you received: 0
Hi Ive been wondering whether its possible to add additional text around the add hotspot form. Ive not been able to find the code which allows addition of text / or modification of the size of the map to match the "hotspot map" Ive created.

Could you point me in the direction of the code which sets the size of the "add hotspot map" and possibly where I could edit this slide.

Im assuming: addspot.php is the right lines to look along having read through some more code. Would this give me access to control the size of the google map which appears on this page?

Kate

REF: Adding text to the "add hotspot" slide (page) 13 years 11 months ago #10939

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
You can change the size of the add map by editing
components/com_hotspots/views/showaddhotspot/tmpl/default.php
line 21
var mapadd = new GMap2(document.getElementById("map_add"),{size:new GSize(460,300)});

If you want to add some text in the add hotspots view you have to edit:
components/com_hotspots/views/all/addspot.php

cheers,
Daniel

REF: Adding text to the "add hotspot" slide (page) 13 years 11 months ago #10940

  • Kate Fisher
  • Kate Fisher's Avatar Topic Author
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 82
  • Karma: 1
  • Thank you received: 0
Daniel, thank you that is absolutely perfect! Your help is very much appreciated.
*biggest hug* for all of your help

Kate

REF: Adding text to the "add hotspot" slide (page) 13 years 11 months ago #10963

  • rezan
  • rezan's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
How can i set the map on "add hotspot" to Satellite by default?

REF: Adding text to the "add hotspot" slide (page) 13 years 11 months ago #10967

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Rezan,
please next time start your own thread - it is then much easier for the user to find the needed information.
To change the map in add hotspot to satelite go to
components/com_hotspots/views/showaddhotspot/tmpl/default.php
after this line of code:
var mapadd = new GMap2(document.getElementById("map_add"),{size:new GSize(460,300)});
add
mapadd.setMapType(G_SATELLITE_MAP);

Cheers,
Daniel
  • Page:
  • 1
Time to create page: 0.111 seconds