Hello, I am trying to display a map created in MapTiler.

MapTiler following settings:

http://s2.ipicture.ru/uploads/20130320/SqFNiBTL.png

And setting in Openlayers

http://s2.ipicture.ru/uploads/20130320/DSMm4rex.png

http://s2.ipicture.ru/uploads/20130320/1QU1fTsS.png

http://s2.ipicture.ru/uploads/20130320/RQsJ5ihn.png

http://s2.ipicture.ru/uploads/20130320/wUrG3J1v.png

http://s2.ipicture.ru/uploads/20130320/OsdxWbaV.png

If I uncheck ZAVOD layer, then map showing (but empty rectangle -this normal, because my server haven't Internet connection)

If check ZAVOD layer - nothing.

What is my the problem?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Pol’s picture

Status: Active » Postponed (maintainer needs more info)

hello,

I never had the possibility to test that layer type and so, I'm unable to debug it. It's cool to have someone who use this layer type, so we can improve it !

Could you try to give us more informations ?

For example, loading the map and having Firebug open in Firefox or the F12 Console in Chrome.

Screenshots are fine, thanks !

MichelEnezy’s picture

MapTiler is a tool for online map puplishing and generation of raster overlay mashups
And generate openlayers.html sample

http://www.maptiler.org/

andreystrelkov’s picture

FileSize
145.86 KB

Now I try at home repeat this, in another map (GTA IV =) ),
at home I have Internet, but similar

here screenshots (reduced scale)

andreystrelkov’s picture

As I understang Openlayers module need only tiles of map, and HTML and XML created by Maptiler are not needed

Pol’s picture

Could you put the result of maptiler somewhere online so I can download it and test @ home ?

Thanks !

andreystrelkov’s picture

Pol’s picture

Assigned: andreystrelkov » augustus.kling
Status: Postponed (maintainer needs more info) » Needs work

Got it working.

Screenshot: https://docs.google.com/file/d/0B7ugUjBv1lqHOVlwVHpaMUhoQjQ/edit

Check out the dev version, I just committed some changes that might get them working as it should.

http://drupalcode.org/project/openlayers.git/commit/0d93a7a

For the projection handling in those layers, I think we should ask @Augustus Kling what is the best way to handle them.

andreystrelkov’s picture

FileSize
117.42 KB
48.55 KB
103.53 KB

=) It looks like you will do it, COOL!!! But my English is weak, and I probably did not quite understand what I need to do...

I install fresh Drupal 7.21, then install 7.x-2.0-beta3+148-dev - Openlayers,
then in additional: Libraries, cTools and Proj4JS.

Now, I copy to sites/default/files/map - archive content with the map

sites/default/files/map/0
sites/default/files/map/1
sites/default/files/map/2
...

And create a Layer with default parametres

Then create a Map, where check GTA IV layers creating before

But map did'nt displaying, and rightly so, because what you said "Make sure that 'resolutions' and 'maxExtent' are float value instead of strings."

But my english is bad, and I do not quite understand. If not hard to please where I write that has yet to change, or make a screenshot of the parameters

Big thanks!

augustus.kling’s picture

For the projection handling in those layers, I think we should ask @Augustus Kling what is the best way to handle them.

From looking at the screenshots in http://s2.ipicture.ru/uploads/20130320/SqFNiBTL.png is seems MapTiler is only able to generate EPSG:3857/EPSG:900913 and EPSG:4326 tiles. Thus I suggest replacing the projection selection box with a box that contains only 2 entries – named to match the respective options in MapTiler's “Selection of the tile profile” screen. Choosing “Google Maps compatible (Spherical Mercator)” would set up the layer for both EPSG:3857 and EPSG:900913.

The screenshots also show that “Image Based Tiles (Raster)” was selected. I expect that this option is only to be used when MapTiler should create an image viewer because there is no option to locate the input image on the globe. Don't use this option for non-fictive maps. For the fictive map in question here the option should be okay though when EPSG:3857 or EPSG:900913 is choosen.

Pol’s picture

Status: Needs work » Fixed

Thanks Augustus !

I committed some changes into 7.x-2.x and 7.x-3.x.

@andreystrelkov, I suggest you to use the TMS layer type, just like shown in this screenshot.

The MapTiler type is just an extension of the TMS Layer Type which is more complete.
Some changes has been done in the TMS Layer Type to work with MapTiler maps.
In the future the MapTiler Layer Type will be removed and you will have to use the TMS Layer Type.

Commit: http://drupalcode.org/project/openlayers.git/commit/138b0a3

andreystrelkov’s picture

Big thanks!
Now I try to make this! =)

But, one problem..... =)

At the moment, I'm at work, where there is no Internet conection, I install the module, and went to set it parametres - specify the path to OPENLAYERS.JS, but there is only one item - EXTERNAL
As I understand it, there should be INTERNAL, but this is written module must be installed LIBRARIES - but it is already install and the item absent. Hmmm... =)

andreystrelkov’s picture

FileSize
56.24 KB

Try at home, with Internet connection, all good, map is SHOWING! =)))

but when specifying a relative link does not work :/

Pol’s picture

Indeed, using a relative link might cause problem, I never use them.

andreystrelkov’s picture

Pol, how to make the local placements OPENLAYERS.JS file? (internal library url)

Pol’s picture

By downloading the libraries module and by downloading the OpenLayers library and place it in sites/all/libraries.

Documentation on this is not yet done, it would be nice if you could provide steps for newcomers !

Thanks

andreystrelkov’s picture

FileSize
114.34 KB
86.48 KB

The fact is that I do not understand - what is meant by the library? One file OPENLAYERS.JS or something another... :(

And if it is a single file, and I copied to the folder, where the path to it? =)

Pol’s picture

You have to have enabled the 'libraries' module and download the OpenLayers (JS library) in sites/all/libraries/openlayers.
Or you can use the drush command 'dl-openlayers' to download it automatically.

Please, try to read a bit more, these are not OpenLayers related questions but 'how to install a library in Drupal ?'.

Thanks for understanding now.

andreystrelkov’s picture

Aaa...understang, I must say the location of the file is not a Openlayers, but the LibrariesAPI - by HOOKs
like:

<?php

hook_libraries_info()

?>

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

rgb55’s picture

Category: bug » support
FileSize
724.33 KB

Hi,

I'm having same issue for myself. I generated map with Maptiler and add a layer with TMS as layer type and put http://maptest:8082/sites/default/hazymap-new/ as base URL. I'm running the drupal in local.
I think I follow all steps as I supposed to but my map isn't displaying.

Only difference on my end is I generated my map from Maptiler free version vs. upgraded one.
I attached maptiler maps here.

I appreciate any input you may advice.

Thanks!

rgb55’s picture

Issue summary: View changes

image link - local

jillh68’s picture

I am having the exact same problem as rgb55. Did you find a solution?

klokantech’s picture

Issue summary: View changes

Hi everybody,

I recommend to follow the the tutorial for using MapTiler tiles in Drupal made by Paul Vreede, see the PDF attached to: https://www.drupal.org/node/2384877

Petr Pridal
(author of MapTiler, GDAL2Tiles, EPSG.io, ...)