×

Notice

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

TOPIC: Streetmap and other

Streetmap and other 9 years 6 months ago #28084

  • Erwin de Wolff
  • Erwin de Wolff's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 74
  • Thank you received: 0
Hi there,

Today I upgraded to Hotspots v4 and things look great!
I have some questions about some customization:
- is it possible to remove the automaticly generated streetmap picture, show on the right column?
- when I click on a marker/hotspot in the map, the bubble doesn't open, but it shows it contents in the column on the right. Is it still possible to show the content in the marker on the map?
- is it possible to remove the menu in the column on the right on top, which shows "Directions/Hotspots/Settings". For my usage it's a little bit too much for the end user which only needs a simple map with makers on it.

Thanks for your reaction,
Kind Regards,

Erwin

Streetmap and other 9 years 6 months ago #28089

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Erwin,
With Hotspots 4 you can use template overrides. Create a template override for default_hotspots.php (components/com_hotspots/views/hotspots/tmp/default_hotspot.php)
(more info on template overrides docs.joomla.org/How_to_override_the_outp...rom_the_Joomla!_core )
in that file find the lines
		<div class="js-hs-streetmap hs-streetmap" style="display: none;">
			<label><?php echo JText::_('COM_HOTSPOTS_STREET_VIEW'); ?></label>
		</div>
remove them and you shouldn't see any street view. Maybe I should create a setting for this in the backend.

infowindow - no. You are no longer able to show the infowindow and I won't ever add it again - for more info about this decision look here: compojoom.com/blog/entry/changes-coming-up-with-hotspots-4 .

- the menu - well it is hardcoded in the javascript files. But you could add this line of css to your template:_
 
.hs-tabs {
	display: none;
}
And it will hide it. Also make sure that you hide the "directions" button on each marker -> becuase it will move to the directions tab and then the user won't be able to switch back to the hotspots tab.

Regards,
Daniel

Streetmap and other 9 years 6 months ago #28090

  • Erwin de Wolff
  • Erwin de Wolff's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 74
  • Thank you received: 0

Daniel Dimitrov wrote: Hey Erwin,
With Hotspots 4 you can use template overrides. Create a template override for default_hotspots.php (components/com_hotspots/views/hotspots/tmp/default_hotspot.php)
(more info on template overrides docs.joomla.org/How_to_override_the_outp...rom_the_Joomla!_core )
in that file find the lines

		<div class="js-hs-streetmap hs-streetmap" style="display: none;">
			<label><?php echo JText::_('COM_HOTSPOTS_STREET_VIEW'); ?></label>
		</div>
remove them and you shouldn't see any street view. Maybe I should create a setting for this in the backend.

infowindow - no. You are no longer able to show the infowindow and I won't ever add it again - for more info about this decision look here: compojoom.com/blog/entry/changes-coming-up-with-hotspots-4 .

- the menu - well it is hardcoded in the javascript files. But you could add this line of css to your template:_
 
.hs-tabs {
	display: none;
}
And it will hide it. Also make sure that you hide the "directions" button on each marker -> becuase it will move to the directions tab and then the user won't be able to switch back to the hotspots tab.

Regards,
Daniel


Hi Daniel,

Thanks for your reaction, template override is very nice!! Makes upgrading to a next version a lot easier :)

I read your blog and it makes sense the decision why you removed the infowindow, it was my problem also that it wouldn't resize correctly...

Kind Regards,

Erwin
  • Page:
  • 1
Time to create page: 0.102 seconds