[ANN] Leaflet Action for Open Street Map

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 ?

R


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

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 ?

R


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

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 ?

R


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

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.

Richard


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

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.

Richard


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

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 !

Thanks for guidance so far Walter

R


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

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;

  1. Edit > Styles
  2. Create a new style
  3. In the tag field enter div.leaflet-container
  4. Leave the name field empty
  5. Select Size from the Character section and leave the values at default/12px
  6. Click on the Extended button and New…
  7. Enter
    name: font-size
    value: inherit !important
  8. 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.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

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.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Here’s the relevant CSS from a new blank document with a single empty HTML box on it:

#item1 { position:absolute; left:220px; top:141px; width:434px; min-height:271px; z-index:1 }

Walter

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.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

OK done but no joy.

http://www.richard-lowther.com/leaflet/

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).

R

R


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I wonder why I can’t repeat that here, though

I have just tried this on a new blank 6.1.2 HTML5 doc using external stylesheets and get the same behaviour ie 1px Font declaration

David


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Walter,
What version of Freeway are you using? Are you a friendly time traveller sent back from the future to help us? :slight_smile:
My Freeway Pro 6.1.2 produces this;

#item1 { position:relative; width:100px; min-height:100px; z-index:0; overflow:hidden; font-size:1px }

Regards,
Tim.
PS. If you are from the future can you tell me who wins the 2.30 at Chepstow tomorrow please?

On 25 Apr 2014, at 17:37, Walter Lee Davis wrote:

Here’s the relevant CSS from a new blank document with a single empty HTML box on it:

#item1 { position:absolute; left:220px; top:141px; width:434px; min-height:271px; z-index:1 }

Walter


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

This is baffling me. That 1px thing is there again, and I have just tried the same thing over a few times and cannot make it happen at all.

Walter

On Apr 25, 2014, at 12:51 PM, Richard Lowther wrote:

OK done but no joy.

http://www.richard-lowther.com/leaflet/

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).

R

R


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

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? :slight_smile:
My Freeway Pro 6.1.2 produces this;

#item1 { position:relative; width:100px; min-height:100px; z-index:0; overflow:hidden; font-size:1px }

Regards,
Tim.
PS. If you are from the future can you tell me who wins the 2.30 at Chepstow tomorrow please?

On 25 Apr 2014, at 17:37, Walter Lee Davis wrote:

Here’s the relevant CSS from a new blank document with a single empty HTML box on it:

#item1 { position:absolute; left:220px; top:141px; width:434px; min-height:271px; z-index:1 }

Walter


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

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.

Richard


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

And here too! :slight_smile:

http://www.lachambre-du21.com/plan.php

Thanks again guys - I can go to yoga in the correct frame of mind now ! Have a good weekend.

Richard


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

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.


#item1 { position:absolute; left:54px; top:105px; width:691px; min-height:300px; z-index:1; font-size:1px }

6.1.2 build 6827

Simon


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

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.


#item1 { position:absolute; left:54px; top:105px; width:691px; min-height:300px; z-index:1; font-size:1px }

6.1.2 build 6827

Simon


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Great Walter, this worked for me, merci beaucoup . Madness ? No not at all just a glitch sorted.

Warm wishes

Richard


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

sorry Walt this doesn’t fix it here

#item1 { position:absolute; left:49px; top:98px; width:335px; min-height:308px; z-index:1; font-size:1px }

brand new doc nothing else on the page.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options