Use Styles for component

  • ThomasR
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
12 years 7 months ago - 12 years 7 months ago #481 by ThomasR
Use Styles for component was created by ThomasR
I'm using the component in a module at this page:

Here .

I want to give the map a predefined style from my template or use my own style that i want to insert in the styles ssection of the specific map.

The predefined style is called "boxed". Where must i insert the class name?

The second thing i tried is my own style. I inserted:
Code:
{ border-width: 1px; border-style: solid; border-color: rgb(113, 123, 135);}

I tried with {} and without it but i always get a blank module.

Could you please give a short instaruction what to do?
Last edit: 12 years 7 months ago by ThomasR. Reason: Correct link

Please Log in or Create an account to join the conversation.

More
12 years 7 months ago #482 by Dima
Replied by Dima on topic Re: Use Styles for component
Hi.

As I understand, you want apply stiles to div for map, not styled map.

In this case you have to set styles direct to map div by it ID. It doesn't have class style.

Ie in css file of your template you enter

#GMapsID {
here your styles}

And if you want, to set width = 100% for whole container, set width = 0 (read docs about that).

For full screen I'll add explainations into FAQ section tomorrow.

Don't forget support my developments: post review in JED , donate , help with translation ;)
The following user(s) said Thank You: ThomasR

Please Log in or Create an account to join the conversation.

More
12 years 7 months ago #483 by Dima
Replied by Dima on topic Re: Use Styles for component
Styles section in map details - it is for styled maps, ie - disabling POI, changing colours and etc

It is in docs

zhuk.cc/wiki/index.php/Zh_GoogleMap_Description#Map_Decoration

and in Google

gmaps-samples-v3.googlecode.com/svn/trun...ps/wizard/index.html

Don't forget support my developments: post review in JED , donate , help with translation ;)

Please Log in or Create an account to join the conversation.

  • ThomasR
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
12 years 7 months ago #485 by ThomasR
Replied by ThomasR on topic Re: Use Styles for component

Dima wrote: Hi,
As I understand, you want apply stiles to div for map, not styled map.

In this case you have to set styles direct to map div by it ID. It doesn't have class style.

Ie in css file of your template you enter

#GMapsID {
here your styles}

And if you want, to set width = 100% for whole container, set width = 0 (read docs about that).

For full screen I'll add explainations into FAQ section tomorrow.


This was exactly what I'm looking for. Thank you! :cheer:

Please Log in or Create an account to join the conversation.

Time to create page: 0.180 seconds
Powered by Kunena Forum