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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...