Yes, and be sure when you draw that HTML box that you don’t click inside it or enter any text within it. It’s getting the 1px font size from the map.css stylesheet. Did you create that sheet?
Walter
On Apr 25, 2014, at 11:21 AM, Richard Lowther wrote:
Changed to HTML5 and with a ‘republish everything’. But still the same little text. Should I try a whole new freeway document ?
OK will start over as advised. As for that map.css stylesheet - no idea where that came from. Certainly not me. Could it be in the template I used to build this on? Made By Joe Billings and bought by me out of curiosity. I can I not just throw it out ? And if yes - how ?
Look in the Page Inspector, in the first tab, and see which stylesheet is applied to the page (4th item down in that tab of the Inspector). Then look in the Styles palette for an item named #map. If you see it there, control-click on it and choose Edit Style. See if the 1px is deliberately set there, or in the Extended attributes.
I’m confused as to how you’re getting this behavior in a new document, so that’s another mystery we need to sort out. Try creating a brand new document, while no other documents are open. This should be the only document open at all in Freeway. Then draw an HTML box, apply the Leaflet Action to it, and publish somewhere. Let’s see what you get in that case.
Walter
On Apr 25, 2014, at 11:45 AM, Richard Lowther wrote:
OK will start over as advised. As for that map.css stylesheet - no idea where that came from. Certainly not me. Could it be in the template I used to build this on? Made By Joe Billings and bought by me out of curiosity. I can I not just throw it out ? And if yes - how ?
I see the style sheet in the resources folder. Could this be edited here ? This is stepping into new territory for me and I have read often here in this forum to not to go meddling with that folder. So … ?
I guess I should ask Joe Billings but why the 1px specification in there? If templates are to be used by non coders such as I who then go off piste as it were, are we likely to get caught in unseen webs of complications which we where trying to duck in the first place. Hohum.
You should never edit anything in the Resources folder. Freeway is the sole manager of any files therein. Ditto for the Site Folder.
Walter
On Apr 25, 2014, at 11:56 AM, Richard Lowther wrote:
I see the style sheet in the resources folder. Could this be edited here ? This is stepping into new territory for me and I have read often here in this forum to not to go meddling with that folder. So … ?
I guess I should ask Joe Billings but why the 1px specification in there? If templates are to be used by non coders such as I who then go off piste as it were, are we likely to get caught in unseen webs of complications which we where trying to duck in the first place. Hohum.
Meant Site Folder not Resources. Sorry my mistake. Have not touched it as only too aware that bad things will happen. However it is the only place I am seeing the map.css - Site Folder/CSS/map.css No sight of it in the Styles palette.
Will now close down Freeway and begin over , fingers crossed that I do not have to rebuild everything I have done on two other pages !
You are getting the 1px caption text on the map marker because the box you applied the map Action to is empty. As Thomas correctly pointed out Freeway applies a 1px style to boxes with no content so it can collapse them without the text styles getting in the way. You should be able to apply the Empty Box Helper Action to the item but it doesn’t work - I suspect because the Actions are running in the wrong publish order. Adding a single space character to the text box the map Action is applied to will correct the caption text issue but it messes the map up.
The solution I’d use is to apply a custom style to the page to tell the map to inherit the font size from the rest of the page.
Try this;
Edit > Styles
Create a new style
In the tag field enter div.leaflet-container
Leave the name field empty
Select Size from the Character section and leave the values at default/12px
Click on the Extended button and New…
Enter
name: font-size
value: inherit !important
Click OK 3 times to get back to the document and preview your map
With any luck the caption should now be displayed at the correct font size for the page.
Regards,
Tim.
I wonder why I can’t repeat that here, though. I do remember it in Freeway 5.5 and lower, but 6 doesn’t seem to do that any more, at least I can’t make it do that here in a new document.
Walter
On Apr 25, 2014, at 12:24 PM, email@hidden wrote:
As Thomas correctly pointed out Freeway applies a 1px style to boxes with no content so it can collapse them without the text styles getting in the way.
On Apr 25, 2014, at 12:35 PM, Walter Lee Davis wrote:
I wonder why I can’t repeat that here, though. I do remember it in Freeway 5.5 and lower, but 6 doesn’t seem to do that any more, at least I can’t make it do that here in a new document.
Walter
On Apr 25, 2014, at 12:24 PM, email@hidden wrote:
As Thomas correctly pointed out Freeway applies a 1px style to boxes with no content so it can collapse them without the text styles getting in the way.
I shut down Freeway. Reopened, new blank website, switched it to HTML5, inserted html item, added leaflet action to this item and entered lat/long coordinates. Inserted action item/marker/ entered coordinates and text - 21 rue Charles Mozin Trouville France. Published and uploaded.
Am I doing anything different to you Walter ? Presumably I am the only one getting this result or others would have commented by now. Should I trash the action and reinstall it ?
I have to go to my Yoga class soon - may be that will stop me getting into a tiz about this. Boff as they say over here. Can not abandon this as the client understandably want visitors to know where the bed and breakfast is! I will set it up with Google maps temporarily (assuming not the same glitch).
Hi Walter,
What version of Freeway are you using? Are you a friendly time traveller sent back from the future to help us?
My Freeway Pro 6.1.2 produces this;
I shut down Freeway. Reopened, new blank website, switched it to HTML5, inserted html item, added leaflet action to this item and entered lat/long coordinates. Inserted action item/marker/ entered coordinates and text - 21 rue Charles Mozin Trouville France. Published and uploaded.
Am I doing anything different to you Walter ? Presumably I am the only one getting this result or others would have commented by now. Should I trash the action and reinstall it ?
I have to go to my Yoga class soon - may be that will stop me getting into a tiz about this. Boff as they say over here. Can not abandon this as the client understandably want visitors to know where the bed and breakfast is! I will set it up with Google maps temporarily (assuming not the same glitch).
6.1.2 (build 6827). I wish I was from the future, but sadly no.
There is this guy here in a silver jumpsuit who says that a meteor will strike the Chepstow race track tomorrow, and you should invest heavily in pet food futures.
Walter
On Apr 25, 2014, at 12:54 PM, Tim Plumb wrote:
Hi Walter,
What version of Freeway are you using? Are you a friendly time traveller sent back from the future to help us?
My Freeway Pro 6.1.2 produces this;
Yes ! Tim it worked, yet more drinks I owe you . Will now try that on the actual site and hope that pesky map.css does not pull rank. Thanks to you and Walt for your time and knowhow.
I’m confused as to how you’re getting this behavior in a new document, so that’s another mystery we need to sort out. Try creating a brand new document, while no other documents are open. This should be the only document open at all in Freeway. Then draw an HTML box, apply the Leaflet Action to it, and publish somewhere. Let’s see what you get in that case.
Walter
FYI I’ve just tried a new document and I get 1px font size in the css too, and I haven’t used the marker action.
I can’t understand this. I just made a new version to fix this, so please update to 0.3 and let’s see if we can put this madness behind us.
I also fixed a bug reported by David McCallum: “items with hyphens in their name break Leaflet”. Names are now sanitized before they are used as variable name components.
Walter
On Apr 25, 2014, at 2:54 PM, Simon K wrote:
I’m confused as to how you’re getting this behavior in a new document, so that’s another mystery we need to sort out. Try creating a brand new document, while no other documents are open. This should be the only document open at all in Freeway. Then draw an HTML box, apply the Leaflet Action to it, and publish somewhere. Let’s see what you get in that case.
Walter
FYI I’ve just tried a new document and I get 1px font size in the css too, and I haven’t used the marker action.