Jump to content

Leaflet Map + Unigui


docjones

Recommended Posts

HTMLFRAME CODE.

<!DOCTYPE html>
<html>
<head>
	<title>Leaflet unigui example</title>

	<style>		
   	body {
       padding: 0;
       margin: 0;
            }
      html, body, #map {
       height: 100%;
      }

	</style>
</head>
<body>
	<div id="map"></div> 	
</body>
</html>
HTMLFRAME AfterScript
{
// create a map in the "map" div, set the view to a given place and zoom
var map = L.map('map').setView([51.505, -0.09], 13);

L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
    attribution: '© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
}).addTo(map);

}

Hi

I'm trying using  leaflet map with unigui, but it seems that do not work fine.

leaflet custom .css and custom file .js added to servermodule

The map loaded ok, but show cutted

htmlframe afterscript and HTML added to show map

 

what i'm doing bad?

 

test case added

Unigui 0.99.xxx pro

codegear xe2

 

LEAFLET.rar

post-454-0-02642700-1430299219_thumb.jpg

  • Upvote 1
Link to comment
Share on other sites

  • 2 years later...
  • 9 months later...
  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...